eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EasyMatrixCode2::EMatrixCodeGrid Class Reference

Represents a grid of Data Matrix Codes. More...

#include <eVision/EasyMatrixCode/EasyMatrixCode2/EMatrixCodeGrid.h>

Inheritance diagram for eVision::EasyMatrixCode2::EMatrixCodeGrid:
Collaboration diagram for eVision::EasyMatrixCode2::EMatrixCodeGrid:

Public Member Functions

 EMatrixCodeGrid ()
 Creates an EMatrixCodeGrid object.
 EMatrixCodeGrid (const eVision::EasyMatrixCode2::EMatrixCodeGrid &other)
 Creates an EMatrixCodeGrid object.
 EMatrixCodeGrid (uint32_t numCols, uint32_t numRows)
 Creates an EMatrixCodeGrid object.
 EMatrixCodeGrid (uint32_t numCols, uint32_t numRows, const eVision::ERectangle &area, float extension)
 Creates an EMatrixCodeGrid object.
virtual ~EMatrixCodeGrid () throw ()
eVision::EasyMatrixCode2::EMatrixCodeGrid & operator= (const eVision::EasyMatrixCode2::EMatrixCodeGrid &other)
 Assignment operator.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, const eVision::EFrame &frame, float zoomX, float zoomY) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, const eVision::EFrame &frame, float zoomX) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, const eVision::EFrame &frame) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, float zoomX, float zoomY, float panX, float panY) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, float zoomX, float zoomY, float panX) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, float zoomX, float zoomY) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options, float zoomX) const
 Draws the codes.
void DrawGridCodes (eVision::EDrawAdapter *drawAdapter, const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions &options) const
 Draws the codes.
std::vector< eVision::EasyMatrixCode2::EMatrixCode > GetResults (uint32_t column, uint32_t row) const
 Returns the MatrixCodes.
std::vector< eVision::EasyMatrixCode2::EMatrixCode > GetResults () const
 Returns the MatrixCodes.
 EMatrixCodeGrid (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::EGrid
 EGrid ()
 Constructs a EGrid object.
 EGrid (uint32_t numCellsX, uint32_t numCellsY, const eVision::ERectangle &area, float extension)
 Constructs a EGrid object.
 EGrid (const eVision::EGrid &other)
 Constructs a EGrid object.
virtual ~EGrid () throw ()
eVision::EGrid & operator= (const eVision::EGrid &other)
 Copies all the data from another EGrid object into the current EGrid object.
uint32_t GetNumRows () const
 Returns the number of rows in the grid.
uint32_t GetNumCols () const
 Returns the number of columns in the grid.
void SetEnableRow (uint32_t row, bool enable)
 Enable/Disable Row.
void SetEnableColumn (uint32_t column, bool enable)
 Enable/Disable Column.
void SetEnableCell (uint32_t column, uint32_t row, bool enable)
 Enable/Disable Cell.
void SetEnableAll (bool enable)
 Enable/Disable all cells.
bool GetCellEnabled (uint32_t column, uint32_t row) const
 Returns true if Cell is enabled and false otherwise.
eVision::ERegion GetCellRegion (uint32_t column, uint32_t row)
 Returns the region of a grid cell given its indices in an EGrid object.
void SetArea (const eVision::ERectangle &area)
 Set the area of an EGrid object.
eVision::ERectangle GetArea () const
 Returns the area of an EGrid object.
void SetExtension (float extension)
 Set the extension of an EGrid object.
float GetExtension () const
 Returns the extension of an EGrid object.
void DrawGrid (eVision::EDrawAdapter *drawAdapter, const eVision::EGridDrawOptions &options, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Draws the grid.
void DrawGrid (eVision::EDrawAdapter *drawAdapter, const eVision::EGridDrawOptions &options, float zoomX, float zoomY, float panX, float panY) const
 Draws the grid.
eVision::EEditionMode HitTest (int x, int y, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int x, int y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
void Drag (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
void Drag (int32_t x, int32_t y, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
void Drag (int32_t x, int32_t y, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
void Drag (int32_t x, int32_t y, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
void Drag (int32_t x, int32_t y)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
void SetEditionMode (eVision::EEditionMode editionMode)
 Graphical edition mode.
eVision::EEditionMode GetEditionMode () const
 Graphical edition mode.
void Load (const std::string &path)
 Load the EGrid configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Load the EGrid configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Save the EGrid configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Save the EGrid configuration. The given ESerializer must have been created for writing.
 EGrid (CppWrapperInternal::InternalConstructor)

Additional Inherited Members

Public Attributes inherited from eVision::EGrid
CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Represents a grid of Data Matrix Codes.

License(s): EasyMatrixCode

Constructor & Destructor Documentation

◆ EMatrixCodeGrid() [1/5]

eVision::EasyMatrixCode2::EMatrixCodeGrid::EMatrixCodeGrid ( )

Creates an EMatrixCodeGrid object.

◆ EMatrixCodeGrid() [2/5]

eVision::EasyMatrixCode2::EMatrixCodeGrid::EMatrixCodeGrid ( const eVision::EasyMatrixCode2::EMatrixCodeGrid & other)

Creates an EMatrixCodeGrid object.

Parameters
otherThe reference EMatrixCodeGrid instance to copy this one from.

◆ EMatrixCodeGrid() [3/5]

eVision::EasyMatrixCode2::EMatrixCodeGrid::EMatrixCodeGrid ( uint32_t numCols,
uint32_t numRows )

Creates an EMatrixCodeGrid object.

Parameters
numColsThe number of columns in the grid.
numRowsThe number of rows in the grid.

◆ EMatrixCodeGrid() [4/5]

eVision::EasyMatrixCode2::EMatrixCodeGrid::EMatrixCodeGrid ( uint32_t numCols,
uint32_t numRows,
const eVision::ERectangle & area,
float extension )

Creates an EMatrixCodeGrid object.

Parameters
numColsThe number of columns in the grid.
numRowsThe number of rows in the grid.
areaThe area of the grid.
extensionThe extension of the grid.

◆ ~EMatrixCodeGrid()

eVision::EasyMatrixCode2::EMatrixCodeGrid::~EMatrixCodeGrid ( )
throw ( )
virtual

◆ EMatrixCodeGrid() [5/5]

eVision::EasyMatrixCode2::EMatrixCodeGrid::EMatrixCodeGrid ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ DrawGridCodes() [1/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [2/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
const eVision::EFrame & frame ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
frameFrame associated with the grid.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [3/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
const eVision::EFrame & frame,
float zoomX ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
frameFrame associated with the grid.
zoomXHorizontal zooming factor.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [4/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
const eVision::EFrame & frame,
float zoomX,
float zoomY ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
frameFrame associated with the grid.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [5/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
frameFrame associated with the grid.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [6/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
frameFrame associated with the grid.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [7/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
float zoomX ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
zoomXHorizontal zooming factor.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [8/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
float zoomX,
float zoomY ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [9/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
float zoomX,
float zoomY,
float panX ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ DrawGridCodes() [10/10]

void eVision::EasyMatrixCode2::EMatrixCodeGrid::DrawGridCodes ( eVision::EDrawAdapter * drawAdapter,
const eVision::EasyMatrixCode2::EMatrixCodeGridDrawOptions & options,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the codes.

Parameters
drawAdapterHandle to the device context of the destination window.
optionsOptions for codes drawing.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ GetResults() [1/2]

std::vector< eVision::EasyMatrixCode2::EMatrixCode > eVision::EasyMatrixCode2::EMatrixCodeGrid::GetResults ( ) const

Returns the MatrixCodes.

◆ GetResults() [2/2]

std::vector< eVision::EasyMatrixCode2::EMatrixCode > eVision::EasyMatrixCode2::EMatrixCodeGrid::GetResults ( uint32_t column,
uint32_t row ) const

Returns the MatrixCodes.

Parameters
columnThe column of a cell.
rowThe row of a cell.

◆ operator=()

eVision::EasyMatrixCode2::EMatrixCodeGrid & eVision::EasyMatrixCode2::EMatrixCodeGrid::operator= ( const eVision::EasyMatrixCode2::EMatrixCodeGrid & other)

Assignment operator.

Parameters
otherThe EMatrixCodeGrid instance to assign.