SimpleMatrixScanOverlay Class Referenceabstract
Inherits MatrixScanOverlay.
Classes | |
interface | ISimpleMatrixScanOverlayListener |
Public Member Functions | |
SimpleMatrixScanOverlay (Context context, MatrixScan matrixScan, ISimpleMatrixScanOverlayListener listener) | |
void | SetColor (int color, long barcodeId) |
void | SetAllAugmentationColors (int color) |
abstract void | RemoveAllAugmentations () |
abstract void | Add (TrackedBarcode code, long id) |
abstract void | Update (TrackedBarcode code, long id) |
abstract void | Remove (long id) |
Detailed Description
A simple implementation of the abstract MatrixScanOverlay class, that draws colorful, rectangle overlays on top of tracked barcodes.
- Since
- 5.9.0
Constructor & Destructor Documentation
SimpleMatrixScanOverlay | ( | Context | context, |
MatrixScan | matrixScan, | ||
ISimpleMatrixScanOverlayListener | listener | ||
) |
A SimpleMatrixScanOverlay constructor.
- Parameters
-
context Context. matrixScan A reference to a MatrixScan instance that the overlay will be added to. listener Instance of the ISimpleMatrixScanOverlayListener class.
- Since
- 5.9.0
Member Function Documentation
void SetColor | ( | int | color, |
long | barcodeId | ||
) |
Change the color of the augmentation corresponding to the given identifier.
- Parameters
-
color Color for the augmentation. barcodeId Barcode identifier.
- Since
- 5.9.0
void SetAllAugmentationColors | ( | int | color | ) |
Change the color of all augmentations.
- Parameters
-
color Color for the augmentations.
- Since
- 5.9.0
|
pure virtualinherited |
Remove augmentations that are part of the MatrixScanOverlay.
- Since
- 5.9.0
|
pure virtualinherited |
Add a new augmentation to the MatrixScanOverlay for the given code.
The new augmentation should have an identifier equal to the given id.
- Parameters
-
code TrackedBarcode to be used to generate the new augmentation. id Identifier for the new augmentation.
- Since
- 5.9.0
|
pure virtualinherited |
Update (recreate) an existing augmentation with given id for the given code.
- Parameters
-
code TrackedBarcode to be used to recreate the augmentation. id Identifier of an augmentation that should be updated.
- Since
- 5.9.0
|
pure virtualinherited |
Remove an existing augmentation with the given id from the MatrixScanOverlay.
- Parameters
-
id Identifier of an augmentation that should be removed.
- Since
- 5.9.0