Package io.scanbot.sdk.ui.view.edit
Class EditPolygonViewModel
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.utils.Router,io.scanbot.sdk.ui.view.edit.IEditPolygonView.ViewModel
public final class EditPolygonViewModel implements IEditPolygonView.ViewModel, Router
ViewModel for EditPolygonView
-
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class><List<PointF>>polygonprivate final <Error class: unknown class><Bitmap>imageprivate final <Error class: unknown class><List<LineSegmentFloat>>horizontalprivate final <Error class: unknown class><List<LineSegmentFloat>>verticalprivate final <Error class: unknown class><Boolean>fullPolygonSelectedprivate final <Error class: unknown class><Boolean>isProcessingprivate final <Error class: unknown class><RotationType>rotation
-
Constructor Summary
Constructors Constructor Description EditPolygonViewModel(Page page, CropAndRotateUseCase cropAndRotateUseCase, DetectPolygonOnPageUseCase detectPolygonOnPageUseCase, IDispatchersProvider dispatchersProvider)
-
Method Summary
Modifier and Type Method Description <Error class: unknown class><List<PointF>>getPolygon()<Error class: unknown class><Bitmap>getImage()<Error class: unknown class><List<LineSegmentFloat>>getHorizontal()<Error class: unknown class><List<LineSegmentFloat>>getVertical()<Error class: unknown class><Boolean>getFullPolygonSelected()<Error class: unknown class><Boolean>isProcessing()<Error class: unknown class><RotationType>getRotation()UnitonSaveClick()UnitonRotateClick()UnitonResetClick()UnitonDetectClick()UnitonCancelClick()UnitonLicenseInvalid()UnitonSelectedPolygonStateChanged(Boolean isFullPolygonSelected)UnitonPolygonUpdated(List<PointF> polygon)-
-
Constructor Detail
-
EditPolygonViewModel
EditPolygonViewModel(Page page, CropAndRotateUseCase cropAndRotateUseCase, DetectPolygonOnPageUseCase detectPolygonOnPageUseCase, IDispatchersProvider dispatchersProvider)
-
-
Method Detail
-
getPolygon
<Error class: unknown class><List<PointF>> getPolygon()
-
getHorizontal
<Error class: unknown class><List<LineSegmentFloat>> getHorizontal()
-
getVertical
<Error class: unknown class><List<LineSegmentFloat>> getVertical()
-
getFullPolygonSelected
<Error class: unknown class><Boolean> getFullPolygonSelected()
-
isProcessing
<Error class: unknown class><Boolean> isProcessing()
-
getRotation
<Error class: unknown class><RotationType> getRotation()
-
onSaveClick
Unit onSaveClick()
-
onRotateClick
Unit onRotateClick()
-
onResetClick
Unit onResetClick()
-
onDetectClick
Unit onDetectClick()
-
onCancelClick
Unit onCancelClick()
-
onLicenseInvalid
Unit onLicenseInvalid()
-
onSelectedPolygonStateChanged
Unit onSelectedPolygonStateChanged(Boolean isFullPolygonSelected)
-
onPolygonUpdated
Unit onPolygonUpdated(List<PointF> polygon)
-
-
-
-