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

Represents a Code. More...

Public Member Functions

None __init__ (self)
 Creates an eVision.ECode object.
None __init__ (self, eVision.ECode other)
 Creates an eVision.ECode object.
eVision.ERegion ToRegion (self)
 Creates an eVision.ERegion from the eVision.ECode.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling)
 Creates an eVision.EFrame from the eVision.ECode.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame frame)
 Creates an eVision.EFrame from the eVision.ECode.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX, float zoomY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame)
 Draws the Position of the Code.

Properties

 DecodedString = property(_DecodedString__getter, None)
 Decoded code string.
 IsGS1 = property(_IsGS1__getter, None)
 Returns whether the decoded string uses the GS1 standard.
 Position = property(_Position__getter, None)
 Code position.
 Center = property(_Center__getter, None)
 Returns the center of the eVision.ECode.
 SizeX = property(_SizeX__getter, None)
 Returns the size of the eVision.ECode on its X axis.
 SizeY = property(_SizeY__getter, None)
 Returns the size of the eVision.ECode on its Y axis.
 Angle = property(_Angle__getter, None)
 Returns the angle of the eVision.ECode as if it was an eVision.ERectangle.
 CodeType = property(_CodeType__getter, None)
 Code type.
 MatrixCode = property(_MatrixCode__getter, None)
 Returns the eVision.EasyMatrixCode2.EMatrixCode contained in the eVision.ECode.
 BarCode = property(_BarCode__getter, None)
 Returns the eVision.EasyBarCode2.EBarCode contained in the eVision.ECode.
 QRCode = property(_QRCode__getter, None)
 Returns the eVision.EQRCode contained in the eVision.ECode.

Detailed Description

Represents a Code.

Remarks:

License(s): EasyMatrixCode and EasyBarCode and EasyQRCode

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.ECode.__init__ ( self)

Creates an eVision.ECode object.

◆ __init__() [2/2]

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

Creates an eVision.ECode object.

Parameters
otherAnother eVision.ECode object to be copied in the new eVision.ECode object.

Member Function Documentation

◆ DrawPosition() [1/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.

◆ DrawPosition() [2/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.

◆ DrawPosition() [3/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawPosition() [4/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawPosition() [5/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [6/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [7/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawPosition() [8/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawPosition() [9/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [10/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ ToFrame() [1/2]

eVision.EFrame eVision.ECode.ToFrame ( self,
bool useAngle,
eVision.EFrameScaling frameScaling )

Creates an eVision.EFrame from the eVision.ECode.

Parameters
useAngleWhether to use the angle of the eVision.ECode in the frame.
frameScalingHow to handle the scale of the frame. eVision.EFrameScaling.UseScaling is not supported.

◆ ToFrame() [2/2]

eVision.EFrame eVision.ECode.ToFrame ( self,
bool useAngle,
eVision.EFrameScaling frameScaling,
eVision.EFrame frame )

Creates an eVision.EFrame from the eVision.ECode.

Parameters
useAngleWhether to use the angle of the eVision.ECode in the frame.
frameScalingHow to handle the scale of the frame. eVision.EFrameScaling.UseScaling is not supported.
frameParent frame. Used when the eVision.ECode was read using a frame.

◆ ToRegion()

eVision.ERegion eVision.ECode.ToRegion ( self)

Creates an eVision.ERegion from the eVision.ECode.

Property Documentation

◆ Angle

eVision.ECode.Angle = property(_Angle__getter, None)
static

Returns the angle of the eVision.ECode as if it was an eVision.ERectangle.

◆ BarCode

eVision.ECode.BarCode = property(_BarCode__getter, None)
static

Returns the eVision.EasyBarCode2.EBarCode contained in the eVision.ECode.

Throws an exception if there is none.

◆ Center

eVision.ECode.Center = property(_Center__getter, None)
static

Returns the center of the eVision.ECode.

◆ CodeType

eVision.ECode.CodeType = property(_CodeType__getter, None)
static

Code type.

◆ DecodedString

eVision.ECode.DecodedString = property(_DecodedString__getter, None)
static

Decoded code string.

◆ IsGS1

eVision.ECode.IsGS1 = property(_IsGS1__getter, None)
static

Returns whether the decoded string uses the GS1 standard.

◆ MatrixCode

eVision.ECode.MatrixCode = property(_MatrixCode__getter, None)
static

Returns the eVision.EasyMatrixCode2.EMatrixCode contained in the eVision.ECode.

Throws an exception if there is none.

◆ Position

eVision.ECode.Position = property(_Position__getter, None)
static

Code position.

If the eVision.ECode represents an eVision.EQRCode object, the eVision.EQuadrangle's corners are in the following order: top right, top left, bottom left, bottom right. If the eVision.ECode represents an eVision.EasyBarCode2.EBarCode or eVision.EasyMatrixCode2.EMatrixCode object, the eVision.EQuadrangle's corners are in the following order: top left, top right, bottom right, bottom left.

◆ QRCode

eVision.ECode.QRCode = property(_QRCode__getter, None)
static

Returns the eVision.EQRCode contained in the eVision.ECode.

Throws an exception if there is none.

◆ SizeX

eVision.ECode.SizeX = property(_SizeX__getter, None)
static

Returns the size of the eVision.ECode on its X axis.

This corresponds to the mean between the sizes of the top and bottom sides of the eVision.ECode.

◆ SizeY

eVision.ECode.SizeY = property(_SizeY__getter, None)
static

Returns the size of the eVision.ECode on its Y axis.

This corresponds to the mean between the sizes of the left and right sides of the eVision.ECode.