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>>
polygon
private final <Error class: unknown class><Bitmap>
image
private final <Error class: unknown class><List<Line2D>>
horizontal
private final <Error class: unknown class><List<Line2D>>
vertical
private final <Error class: unknown class><Boolean>
fullPolygonSelected
private final <Error class: unknown class><Boolean>
isProcessing
private 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<Line2D>>
getHorizontal()
<Error class: unknown class><List<Line2D>>
getVertical()
<Error class: unknown class><Boolean>
getFullPolygonSelected()
<Error class: unknown class><Boolean>
isProcessing()
<Error class: unknown class><RotationType>
getRotation()
Unit
onSaveClick()
Unit
onRotateClick()
Unit
onResetClick()
Unit
onDetectClick()
Unit
onCancelClick()
Unit
onLicenseInvalid()
Unit
onSelectedPolygonStateChanged(Boolean isFullPolygonSelected)
Unit
onPolygonUpdated(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<Line2D>> getHorizontal()
-
getVertical
<Error class: unknown class><List<Line2D>> 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)
-
-
-
-