Represents a Code. More...
#include <eVision/EasyID/ECode.h>
Public Member Functions | |
| ECode () | |
| Creates an ECode object. | |
| ECode (const eVision::ECode &other) | |
| Creates an ECode object. | |
| virtual | ~ECode () throw () |
| eVision::ECode & | operator= (const eVision::ECode &other) |
| Assignment operator. | |
| std::string | GetDecodedString () const |
| Decoded code string. | |
| bool | GetIsGS1 () const |
| Returns whether the decoded string uses the GS1 standard. | |
| eVision::EQuadrangle | GetPosition () const |
| Code position. | |
| eVision::ERegion | ToRegion () const |
| Creates an ERegion from the ECode. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling) const |
| Creates an EFrame from the ECode. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling, const eVision::EFrame &frame) const |
| Creates an EFrame from the ECode. | |
| eVision::EPoint | GetCenter () const |
| Returns the center of the ECode. | |
| float | GetSizeX () const |
| Returns the size of the ECode on its X axis. This corresponds to the mean between the sizes of the top and bottom sides of the ECode. | |
| float | GetSizeY () const |
| Returns the size of the ECode on its Y axis. This corresponds to the mean between the sizes of the left and right sides of the ECode. | |
| float | GetAngle () const |
| Returns the angle of the ECode as if it was an ERectangle. | |
| eVision::ECodeType | GetCodeType () const |
| Code type. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, float zoomX, float zoomY, float panX) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, float zoomX, float zoomY) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, float zoomX) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, const eVision::EFrame &frame, float zoomX) const |
| Draws the Position of the Code. | |
| void | DrawPosition (eVision::EDrawAdapter *graphicsContext, const eVision::EFrame &frame) const |
| Draws the Position of the Code. | |
| void | DrawPosition (HDC graphicsContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the Position of the Code. | |
| void | DrawPosition (HDC graphicsContext, float zoomX, float zoomY, float panX) const |
| Draws the Position of the Code. | |
| void | DrawPosition (HDC graphicsContext, float zoomX, float zoomY) const |
| Draws the Position of the Code. | |
| void | DrawPosition (HDC graphicsContext, float zoomX) const |
| Draws the Position of the Code. | |
| void | DrawPosition (HDC graphicsContext) const |
| Draws the Position of the Code. | |
| void | DrawPositionWithCurrentPen (HDC hDC, float zoomX, float zoomY, float panX, float panY) const |
| Draws the Position of the Code using the pen currently set in the graphical context. | |
| void | DrawPositionWithCurrentPen (HDC hDC, float zoomX, float zoomY, float panX) const |
| Draws the Position of the Code using the pen currently set in the graphical context. | |
| void | DrawPositionWithCurrentPen (HDC hDC, float zoomX, float zoomY) const |
| Draws the Position of the Code using the pen currently set in the graphical context. | |
| void | DrawPositionWithCurrentPen (HDC hDC, float zoomX) const |
| Draws the Position of the Code using the pen currently set in the graphical context. | |
| void | DrawPositionWithCurrentPen (HDC hDC) const |
| Draws the Position of the Code using the pen currently set in the graphical context. | |
| const eVision::EasyMatrixCode2::EMatrixCode & | GetMatrixCode () const |
| Returns the EMatrixCode contained in the ECode. Throws an exception if there is none. | |
| const eVision::EasyBarCode2::EBarCode & | GetBarCode () const |
| Returns the EBarCode contained in the ECode. Throws an exception if there is none. | |
| const eVision::EQRCode & | GetQRCode () const |
| Returns the EQRCode contained in the ECode. Throws an exception if there is none. | |
| ECode (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a Code.
License(s): EasyMatrixCode and EasyBarCode and EasyQRCode
| eVision::ECode::ECode | ( | ) |
Creates an ECode object.
| eVision::ECode::ECode | ( | const eVision::ECode & | other | ) |
|
virtual | ||||||||||||
| eVision::ECode::ECode | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext | ) | const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| const eVision::EFrame & | frame ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| frame | Frame associated with the bar code. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| frame | Frame associated with the bar code. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| frame | Frame associated with the bar code. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| frame | Frame associated with the bar code. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| frame | Frame associated with the bar code. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| float | zoomX ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| void eVision::ECode::DrawPosition | ( | eVision::EDrawAdapter * | graphicsContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| void eVision::ECode::DrawPosition | ( | HDC | graphicsContext | ) | const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPosition | ( | HDC | graphicsContext, |
| float | zoomX ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPosition | ( | HDC | graphicsContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPosition | ( | HDC | graphicsContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPosition | ( | HDC | graphicsContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the Position of the Code.
| graphicsContext | Handle of the graphics context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPositionWithCurrentPen | ( | HDC | hDC | ) | const |
Draws the Position of the Code using the pen currently set in the graphical context.
| hDC | Handle of the device context on which to draw. |
Use the overload of ECode::DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPositionWithCurrentPen | ( | HDC | hDC, |
| float | zoomX ) const |
Draws the Position of the Code using the pen currently set in the graphical context.
| hDC | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
Use the overload of ECode::DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPositionWithCurrentPen | ( | HDC | hDC, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the Position of the Code using the pen currently set in the graphical context.
| hDC | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
Use the overload of ECode::DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPositionWithCurrentPen | ( | HDC | hDC, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the Position of the Code using the pen currently set in the graphical context.
| hDC | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
Use the overload of ECode::DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::ECode::DrawPositionWithCurrentPen | ( | HDC | hDC, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the Position of the Code using the pen currently set in the graphical context.
| hDC | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
Use the overload of ECode::DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| float eVision::ECode::GetAngle | ( | ) | const |
Returns the angle of the ECode as if it was an ERectangle.
| const eVision::EasyBarCode2::EBarCode & eVision::ECode::GetBarCode | ( | ) | const |
| eVision::EPoint eVision::ECode::GetCenter | ( | ) | const |
Returns the center of the ECode.
| eVision::ECodeType eVision::ECode::GetCodeType | ( | ) | const |
Code type.
| std::string eVision::ECode::GetDecodedString | ( | ) | const |
Decoded code string.
| bool eVision::ECode::GetIsGS1 | ( | ) | const |
Returns whether the decoded string uses the GS1 standard.
| const eVision::EasyMatrixCode2::EMatrixCode & eVision::ECode::GetMatrixCode | ( | ) | const |
Returns the EMatrixCode contained in the ECode. Throws an exception if there is none.
| eVision::EQuadrangle eVision::ECode::GetPosition | ( | ) | const |
Code position.
If the ECode represents an EQRCode object, the EQuadrangle's corners are in the following order: top right, top left, bottom left, bottom right. If the ECode represents an EBarCode or EMatrixCode object, the EQuadrangle's corners are in the following order: top left, top right, bottom right, bottom left.
| const eVision::EQRCode & eVision::ECode::GetQRCode | ( | ) | const |
| float eVision::ECode::GetSizeX | ( | ) | const |
| float eVision::ECode::GetSizeY | ( | ) | const |
| eVision::ECode & eVision::ECode::operator= | ( | const eVision::ECode & | other | ) |
Assignment operator.
| other | ECode object to be copied. |
| eVision::EFrame eVision::ECode::ToFrame | ( | bool | useAngle, |
| eVision::EFrameScaling | frameScaling ) const |
Creates an EFrame from the ECode.
| useAngle | Whether to use the angle of the ECode in the frame. |
| frameScaling | How to handle the scale of the frame. EFrameScaling::EFrameScaling_UseScaling is not supported. |
| eVision::EFrame eVision::ECode::ToFrame | ( | bool | useAngle, |
| eVision::EFrameScaling | frameScaling, | ||
| const eVision::EFrame & | frame ) const |
Creates an EFrame from the ECode.
| useAngle | Whether to use the angle of the ECode in the frame. |
| frameScaling | How to handle the scale of the frame. EFrameScaling::EFrameScaling_UseScaling is not supported. |
| frame | Parent frame. Used when the ECode was read using a frame. |
| eVision::ERegion eVision::ECode::ToRegion | ( | ) | const |
| CppWrapperInternal::WrappedClass eVision::ECode::wrappedClass_ |