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

Represents the geometry of a QR code. More...

#include <eVision/EasyQRCode/EQRCodeGeometry.h>

Collaboration diagram for eVision::EQRCodeGeometry:

Public Member Functions

 EQRCodeGeometry ()
 Constructs an EQRCodeGeometry::EQRCodeGeometry object.
 EQRCodeGeometry (const eVision::EQRCodeGeometry &other)
 Constructs an EQRCodeGeometry::EQRCodeGeometry object.
 EQRCodeGeometry (const eVision::EQuadrangle &position, const std::vector< eVision::EPoint > &finderPatternCenters)
 Constructs an EQRCodeGeometry::EQRCodeGeometry object.
virtual ~EQRCodeGeometry () throw ()
eVision::EQRCodeGeometry & operator= (const eVision::EQRCodeGeometry &other)
 Assignment operator.
eVision::EQuadrangle GetPosition () const
 Position of the QR code returned as an EQuadrangle object.
eVision::ERegion ToRegion () const
 Creates an ERegion from the EQRCodeGeometry.
std::vector< eVision::EPoint > GetFinderPatternCenters () const
 Finder patterns centers.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry.
void Draw (HDC hdc, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry.
void DrawWithCurrentPen (HDC hDC, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry using the pen currently set in the graphical context.
 EQRCodeGeometry (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Represents the geometry of a QR code.

This geometry is composed of the position of the QR code and the finder pattern centers.

License(s): EasyQRCode

Constructor & Destructor Documentation

◆ EQRCodeGeometry() [1/4]

eVision::EQRCodeGeometry::EQRCodeGeometry ( )

Constructs an EQRCodeGeometry::EQRCodeGeometry object.

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

◆ EQRCodeGeometry() [2/4]

eVision::EQRCodeGeometry::EQRCodeGeometry ( const eVision::EQRCodeGeometry & other)

Constructs an EQRCodeGeometry::EQRCodeGeometry object.

Parameters
otherAnother EQRCodeGeometry::EQRCodeGeometry.

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

◆ EQRCodeGeometry() [3/4]

eVision::EQRCodeGeometry::EQRCodeGeometry ( const eVision::EQuadrangle & position,
const std::vector< eVision::EPoint > & finderPatternCenters )

Constructs an EQRCodeGeometry::EQRCodeGeometry object.

Parameters
positionThe position of the QR code represented as an EQuadrangle object.
finderPatternCentersThe vector of Finder Pattern centers.

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

◆ ~EQRCodeGeometry()

eVision::EQRCodeGeometry::~EQRCodeGeometry ( )
throw ( )
virtual

◆ EQRCodeGeometry() [4/4]

eVision::EQRCodeGeometry::EQRCodeGeometry ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Draw() [1/2]

void eVision::EQRCodeGeometry::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry.

Parameters
drawAdapterDraw adapter.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

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

◆ Draw() [2/2]

void eVision::EQRCodeGeometry::Draw ( HDC hdc,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry.

Parameters
hdcGraphics context.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

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

Deprecated

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.

◆ DrawWithCurrentPen()

void eVision::EQRCodeGeometry::DrawWithCurrentPen ( HDC hDC,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry using the pen currently set in the graphical context.

Parameters
hDCHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

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

Deprecated

Use the overload of EQRCodeGeometry::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ GetFinderPatternCenters()

std::vector< eVision::EPoint > eVision::EQRCodeGeometry::GetFinderPatternCenters ( ) const

Finder patterns centers.

In case of a Micro QR code, there is only one finder pattern center. In case of another QR code, there are three finder pattern centers, returned in the following order: top right, top left, bottom left.

◆ GetPosition()

eVision::EQuadrangle eVision::EQRCodeGeometry::GetPosition ( ) const

Position of the QR code returned as an EQuadrangle object.

The EQuadrangle's corners are in the following order: top right, top left, bottom left, bottom right.

◆ operator=()

eVision::EQRCodeGeometry & eVision::EQRCodeGeometry::operator= ( const eVision::EQRCodeGeometry & other)

Assignment operator.

Parameters
otherAnother EQRCodeGeometry.

◆ ToRegion()

eVision::ERegion eVision::EQRCodeGeometry::ToRegion ( ) const

Creates an ERegion from the EQRCodeGeometry.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EQRCodeGeometry::wrappedClass_