eVision Python API
Loading...
Searching...
No Matches
eVision.ECodeGrid Class Reference

Represents a grid of Codes. More...

Inheritance diagram for eVision.ECodeGrid:
Collaboration diagram for eVision.ECodeGrid:

Public Member Functions

None __init__ (self)
 Creates an eVision.ECodeGrid object.
None __init__ (self, eVision.ECodeGrid other)
 Creates an eVision.ECodeGrid object.
None __init__ (self, int numCols, int numRows)
 Creates an eVision.ECodeGrid object.
None __init__ (self, int numCols, int numRows, eVision.ERectangle area, float extension)
 Creates an eVision.ECodeGrid object.
list[eVision._eVision.ECode] GetResults (self, int column, int row)
 Returns the detected codes.
list[eVision._eVision.ECode] GetResults (self)
 Returns the detected codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, eVision.EFrame frame, float zoomX)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, eVision.EFrame frame)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, float zoomX, float zoomY, float panX, float panY)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, float zoomX, float zoomY, float panX)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, float zoomX, float zoomY)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options, float zoomX)
 Draws the codes.
None DrawGridCodes (self, eVision.EDrawAdapter|None drawAdapter, eVision.ECodeGridDrawOptions options)
 Draws the codes.
Public Member Functions inherited from eVision.EGrid
None __init__ (self)
 Constructs a eVision.EGrid object.
None __init__ (self, int numCellsX, int numCellsY, eVision.ERectangle area, float extension)
 Constructs a eVision.EGrid object.
None __init__ (self, eVision.EGrid other)
 Constructs a eVision.EGrid object.
None SetEnableRow (self, int row, bool enable)
 Enable/Disable Row.
None SetEnableColumn (self, int column, bool enable)
 Enable/Disable Column.
None SetEnableCell (self, int column, int row, bool enable)
 Enable/Disable Cell.
bool GetCellEnabled (self, int column, int row)
 Returns true if Cell is enabled and false otherwise.
eVision.ERegion GetCellRegion (self, int column, int row)
 Returns the region of a grid cell given its indices in an eVision.EGrid object.
None DrawGrid (self, eVision.EDrawAdapter|None drawAdapter, eVision.EGridDrawOptions options, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the grid.
None DrawGrid (self, eVision.EDrawAdapter|None drawAdapter, eVision.EGridDrawOptions options, float zoomX, float zoomY, float panX, float panY)
 Draws the grid.
eVision.EEditionMode HitTest (self, 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 (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
None Drag (self, int x, int y, 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.
None Drag (self, int x, int y, 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.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
None Drag (self, int x, int y, eVision.EFrame frame)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
None Drag (self, int x, int 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.
None Drag (self, int x, int y, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
None Drag (self, int x, int y, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
None Drag (self, int x, int y, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
None Drag (self, int x, int y)
 Moves the specified handle to a new position and updates all placement parameters of the grid.
None Load (self, str path)
 Load the eVision.EGrid configuration.
None Load (self, eVision.ESerializer|None serializer)
 Load the eVision.EGrid configuration.
None Save (self, str path)
 Save the eVision.EGrid configuration.
None Save (self, eVision.ESerializer|None serializer)
 Save the eVision.EGrid configuration.
int NumRows (self)
 Returns the number of rows in the grid.
int NumCols (self)
 Returns the number of columns in the grid.
eVision.ERectangle Area (self)
 Returns the area of an eVision.EGrid object.
 Area (self, eVision.ERectangle value)
 Returns the area of an eVision.EGrid object.
float Extension (self)
 Returns the extension of an eVision.EGrid object.
 Extension (self, float value)
 Returns the extension of an eVision.EGrid object.
eVision.EEditionMode EditionMode (self)
 Graphical edition mode.
 EditionMode (self, eVision.EEditionMode value)
 Graphical edition mode.

Additional Inherited Members

Protected Member Functions inherited from eVision.EGrid
 _EnableAll__setter (self, bool value)
 Enable/Disable all cells.
Properties inherited from eVision.EGrid
 EnableAll

Detailed Description

Represents a grid of Codes.

Remarks:

License(s): EasyMatrixCode and EasyQRCode and EasyBarCode

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.ECodeGrid.__init__ ( self)

Creates an eVision.ECodeGrid object.

◆ __init__() [2/4]

None eVision.ECodeGrid.__init__ ( self,
eVision.ECodeGrid other )

Creates an eVision.ECodeGrid object.

Parameters
otherThe reference eVision.ECodeGrid instance to copy this one from.

◆ __init__() [3/4]

None eVision.ECodeGrid.__init__ ( self,
int numCols,
int numRows )

Creates an eVision.ECodeGrid object.

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

◆ __init__() [4/4]

None eVision.ECodeGrid.__init__ ( self,
int numCols,
int numRows,
eVision.ERectangle area,
float extension )

Creates an eVision.ECodeGrid 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.

Member Function Documentation

◆ DrawGridCodes() [1/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options )

Draws the codes.

Remarks:

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

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

◆ DrawGridCodes() [2/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
eVision.EFrame frame )

Draws the codes.

Remarks:

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

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

◆ DrawGridCodes() [3/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
eVision.EFrame frame,
float zoomX )

Draws the codes.

Remarks:

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

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

◆ DrawGridCodes() [4/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the codes.

Remarks:

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

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.

◆ DrawGridCodes() [5/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the codes.

Remarks:

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

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.

◆ DrawGridCodes() [6/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the codes.

Remarks:

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

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.

◆ DrawGridCodes() [7/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
float zoomX )

Draws the codes.

Remarks:

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

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

◆ DrawGridCodes() [8/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
float zoomX,
float zoomY )

Draws the codes.

Remarks:

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

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.

◆ DrawGridCodes() [9/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
float zoomX,
float zoomY,
float panX )

Draws the codes.

Remarks:

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

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.

◆ DrawGridCodes() [10/10]

None eVision.ECodeGrid.DrawGridCodes ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ECodeGridDrawOptions options,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the codes.

Remarks:

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

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.

◆ GetResults() [1/2]

list[eVision._eVision.ECode] eVision.ECodeGrid.GetResults ( self)

Returns the detected codes.

◆ GetResults() [2/2]

list[eVision._eVision.ECode] eVision.ECodeGrid.GetResults ( self,
int column,
int row )

Returns the detected codes.

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