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

Set of points found by a EPointGauge. More...

#include <eVision/Easy/EPointSet.h>

Inheritance diagram for eVision::EPointSet:
Collaboration diagram for eVision::EPointSet:

Public Member Functions

 EPointSet ()
 Constructs a EPointSet object.
 EPointSet (const std::vector< eVision::EPoint > &points, const std::vector< eVision::EPeak > &peaks)
 Constructs a EPointSet object.
 EPointSet (const eVision::EPointSet &other)
 Copy constructor.
virtual ~EPointSet () throw ()
eVision::EPointSet & operator= (const eVision::EPointSet &other)
 Assignment operator.
void CopyTo (eVision::EPointSet &other) const
 Copy the object to the other one.
std::vector< eVision::EPoint > GetPoints () const
 Points located on the line.
eVision::EPoint GetPoint (int idx) const
 Gets a point from the point set.
std::vector< eVision::EPeak > GetPeaks () const
 Peaks corresponding to the points.
eVision::EPeak GetPeak (int idx) const
 Gets a peak from the point set.
int32_t GetNumPoints () const
 Number of points in the point set.
virtual std::string GetDescription () const
 Textual description of the shape and its parameters.
void DrawPoint (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, int pointIdx, float zoomX, float zoomY, float panX, float panY) const
 Draws a point from the point set.
void DrawPoint (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, int pointIdx, float zoomX, float zoomY, float panX) const
 Draws a point from the point set.
void DrawPoint (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, int pointIdx, float zoomX, float zoomY) const
 Draws a point from the point set.
void DrawPoint (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, int pointIdx, float zoomX) const
 Draws a point from the point set.
void DrawPoint (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, int pointIdx) const
 Draws a point from the point set.
virtual eVision::EEditionMode GetAvailableEditionModes () const
 Available edition modes for the shape.
 EPointSet (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::EShape
virtual ~EShape () throw ()
void Load (const std::string &path)
 Load the EShape configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Load the EShape configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Save the EShape configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Save the EShape configuration. The given ESerializer must have been created for writing.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const
 Draws the EShape shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const
 Draws the EShape shape.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX, float zoomY)
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX)
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t 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.
eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY)
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX)
 Detects if the cursor is placed over one of the dragging handles.
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 region.
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 region.
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 region.
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 region.
void Drag (int32_t x, int32_t y)
 Moves the specified handle to a new position and updates all placement parameters of the region.
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 region.
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 region.
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 region.
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 region.
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 region.
void SetEditionMode (eVision::EEditionMode modes)
 Current edition mode for the shape. Default: EEditionMode_None.
eVision::EEditionMode GetEditionMode () const
 Current edition mode for the shape. Default: EEditionMode_None.
eVision::EFrame ToFrame (bool useAngle, eVision::EFrameScaling frameScaling) const
 Converts the shape to a frame.
eVision::EFrame ToFrame (bool useAngle, eVision::EFrameScaling frameScaling, const eVision::EFrame &shapeFrame) const
 Converts the shape to a frame.
 EShape (CppWrapperInternal::InternalConstructor)

Additional Inherited Members

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

Detailed Description

Set of points found by a EPointGauge.

License(s): BasicTypes

Constructor & Destructor Documentation

◆ EPointSet() [1/4]

eVision::EPointSet::EPointSet ( )

Constructs a EPointSet object.

◆ EPointSet() [2/4]

eVision::EPointSet::EPointSet ( const std::vector< eVision::EPoint > & points,
const std::vector< eVision::EPeak > & peaks )

Constructs a EPointSet object.

Parameters
pointsThe poinst in the point set.
peaksThe peak associated with each point.

◆ EPointSet() [3/4]

eVision::EPointSet::EPointSet ( const eVision::EPointSet & other)

Copy constructor.

Parameters
otherOther EPointSet oject.

◆ ~EPointSet()

eVision::EPointSet::~EPointSet ( )
throw ( )
virtual

◆ EPointSet() [4/4]

eVision::EPointSet::EPointSet ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ CopyTo()

void eVision::EPointSet::CopyTo ( eVision::EPointSet & other) const

Copy the object to the other one.

Parameters
otherOther EPointSet oject in which to copy the object.

◆ DrawPoint() [1/5]

void eVision::EPointSet::DrawPoint ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
int pointIdx ) const

Draws a point from the point set.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the shape is defined.
pointIdxIndex of the point to draw.

◆ DrawPoint() [2/5]

void eVision::EPointSet::DrawPoint ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
int pointIdx,
float zoomX ) const

Draws a point from the point set.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the shape is defined.
pointIdxIndex of the point to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawPoint() [3/5]

void eVision::EPointSet::DrawPoint ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
int pointIdx,
float zoomX,
float zoomY ) const

Draws a point from the point set.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the shape is defined.
pointIdxIndex of the point 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.

◆ DrawPoint() [4/5]

void eVision::EPointSet::DrawPoint ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
int pointIdx,
float zoomX,
float zoomY,
float panX ) const

Draws a point from the point set.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the shape is defined.
pointIdxIndex of the point 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.

◆ DrawPoint() [5/5]

void eVision::EPointSet::DrawPoint ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
int pointIdx,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws a point from the point set.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the shape is defined.
pointIdxIndex of the point 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.

◆ GetAvailableEditionModes()

eVision::EEditionMode eVision::EPointSet::GetAvailableEditionModes ( ) const
virtual

Available edition modes for the shape.

Implements eVision::EShape.

◆ GetDescription()

std::string eVision::EPointSet::GetDescription ( ) const
virtual

Textual description of the shape and its parameters.

Implements eVision::EShape.

◆ GetNumPoints()

int32_t eVision::EPointSet::GetNumPoints ( ) const

Number of points in the point set.

◆ GetPeak()

eVision::EPeak eVision::EPointSet::GetPeak ( int idx) const

Gets a peak from the point set.

Parameters
idxIndex of the point, between 0 and EPointSet::GetNumPoints - 1.

◆ GetPeaks()

std::vector< eVision::EPeak > eVision::EPointSet::GetPeaks ( ) const

Peaks corresponding to the points.

◆ GetPoint()

eVision::EPoint eVision::EPointSet::GetPoint ( int idx) const

Gets a point from the point set.

Parameters
idxIndex of the point, between 0 and EPointSet::GetNumPoints - 1.

◆ GetPoints()

std::vector< eVision::EPoint > eVision::EPointSet::GetPoints ( ) const

Points located on the line.

◆ operator=()

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

Assignment operator.

Parameters
otherOther EPointSet oject.