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

Vector objects are used to store 1-dimensional data. More...

#include <eVision/Easy/EC24PathVector.h>

Inheritance diagram for eVision::EC24PathVector:
Collaboration diagram for eVision::EC24PathVector:

Public Member Functions

 EC24PathVector ()
 Constructs a vector.
 EC24PathVector (const eVision::EC24PathVector &other)
 Constructs a vector.
 EC24PathVector (uint32_t maxNumberOfElements)
 Constructs a vector.
virtual ~EC24PathVector () throw ()
eVision::EC24Path & operator[] (uint32_t index) const
 Gives access to the vector element at the given index.
eVision::EC24PathVector & operator= (const eVision::EC24PathVector &other)
 Copies all the data from another EC24PathVector object into the current EC24PathVector object.
void * GetRawDataPtr () const
 Pointer to the vector data.
void AddElement (eVision::EC24Path element)
 Appends (adds at the tail) an element to the vector.
eVision::EC24Path GetElement (int32_t index) const
 Returns the vector element at the given index.
void SetElement (int32_t index, eVision::EC24Path value)
 Modifies the vector element at the given index by the given value.
bool GetClosed () const
 Flag indicating whether the shape built with EasyImage::Contour must be closed or not.
void SetClosed (bool bClosed)
 Flag indicating whether the shape built with EasyImage::Contour must be closed or not.
void Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float originX, float originY) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float originX) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, float zoomX) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, eVision::EPathVectorDrawOption drawOption, float zoomX, float zoomY, float originX, float originY) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, eVision::EPathVectorDrawOption drawOption, float zoomX, float zoomY, float originX) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, eVision::EPathVectorDrawOption drawOption, float zoomX, float zoomY) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, eVision::EPathVectorDrawOption drawOption, float zoomX) const
 Draws the path.
void Draw (eVision::EDrawAdapter *graphicContext, eVision::EPathVectorDrawOption drawOption) const
 Draws the path.
void Draw (HDC graphicContext, float zoomX, float zoomY, float originX, float originY) const
 Draws the path.
void Draw (HDC graphicContext, float zoomX, float zoomY, float originX) const
 Draws the path.
void Draw (HDC graphicContext, float zoomX, float zoomY) const
 Draws the path.
void Draw (HDC graphicContext, float zoomX) const
 Draws the path.
void Draw (HDC graphicContext) const
 Draws the path.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float originX, float originY) const
 Draws the path.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float originX) const
 Draws the path.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY) const
 Draws the path.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX) const
 Draws the path.
void Draw (HDC graphicContext, const eVision::ERGBColor &color) const
 Draws the path.
void DrawWithCurrentPen (HDC graphicContext, float zoomX, float zoomY, float originX, float originY) const
 Draws the path.
void DrawWithCurrentPen (HDC graphicContext, float zoomX, float zoomY, float originX) const
 Draws the path.
void DrawWithCurrentPen (HDC graphicContext, float zoomX, float zoomY) const
 Draws the path.
void DrawWithCurrentPen (HDC graphicContext, float zoomX) const
 Draws the path.
void DrawWithCurrentPen (HDC graphicContext) const
 Draws the path.
void DrawClosedContour (eVision::EDrawAdapter *graphicContext, eVision::EContourMode contourMode, float zoomX, float zoomY, float originX, float originY) const
 Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.
void DrawClosedContour (eVision::EDrawAdapter *graphicContext, eVision::EContourMode contourMode, float zoomX, float zoomY, float originX) const
 Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.
void DrawClosedContour (eVision::EDrawAdapter *graphicContext, eVision::EContourMode contourMode, float zoomX, float zoomY) const
 Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.
void DrawClosedContour (eVision::EDrawAdapter *graphicContext, eVision::EContourMode contourMode, float zoomX) const
 Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.
void DrawClosedContour (eVision::EDrawAdapter *graphicContext, eVision::EContourMode contourMode) const
 Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.
 EC24PathVector (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::EVector
virtual ~EVector () throw ()
uint32_t GetNumElements () const
 Number of elements in the vector.
void SetNumElements (uint32_t un32NumElements)
 Number of elements in the vector.
void Empty ()
 Resets the number of elements to 0.
virtual void RemoveElement (uint32_t index)
 Removes the element at the specified position.
void Save (const std::string &path)
 Saves the EVector object with all its attributes.
void Save (eVision::ESerializer *serializer)
 Saves the EVector object with all its attributes.
void Save (const std::string &path, uint32_t un32Version)
 Saves the EVector object with all its attributes.
void Save (eVision::ESerializer *serializer, uint32_t un32Version)
 Saves the EVector object with all its attributes.
void Load (const std::string &path)
 Loads the EVector object with all its attributes.
void Load (eVision::ESerializer *serializer)
 Loads the EVector object with all its attributes.
void Load (const std::string &path, uint32_t un32Version)
 Loads the EVector object with all its attributes.
void Load (eVision::ESerializer *serializer, uint32_t un32Version)
 Loads the EVector object with all its attributes.
 EVector (CppWrapperInternal::InternalConstructor)

Additional Inherited Members

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

Detailed Description

Vector objects are used to store 1-dimensional data.

Using vectors is very similar to using 1-dimensional arrays, except that the size can vary at runtime. Memory allocation is handled internally.

  • To create a vector, use its constructor.
  • To fill a vector with values, first empty it, using the EVector::Empty member, and then add elements one at time at the tail by calling the EC24PathVector::AddElement member.
  • To access a vector element, either for reading or writing, use the [] operator.
  • To inquire for the current number of elements, use member EVector::GetNumElements.

License(s): BasicTypes

Constructor & Destructor Documentation

◆ EC24PathVector() [1/4]

eVision::EC24PathVector::EC24PathVector ( )

Constructs a vector.

◆ EC24PathVector() [2/4]

eVision::EC24PathVector::EC24PathVector ( const eVision::EC24PathVector & other)

Constructs a vector.

Parameters
otherEC24PathVector object to be copied

◆ EC24PathVector() [3/4]

eVision::EC24PathVector::EC24PathVector ( uint32_t maxNumberOfElements)

Constructs a vector.

Parameters
maxNumberOfElementsOptionally, memory can be pre-allocated to accommodate a given number of elements.

◆ ~EC24PathVector()

eVision::EC24PathVector::~EC24PathVector ( )
throw ( )
virtual

◆ EC24PathVector() [4/4]

eVision::EC24PathVector::EC24PathVector ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ AddElement()

void eVision::EC24PathVector::AddElement ( eVision::EC24Path element)

Appends (adds at the tail) an element to the vector.

Parameters
elementThe element to be added.

◆ Draw() [1/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.

◆ Draw() [2/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
eVision::EPathVectorDrawOption drawOption ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
drawOptionOption for how to draw the path vector

◆ Draw() [3/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
eVision::EPathVectorDrawOption drawOption,
float zoomX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
drawOptionOption for how to draw the path vector
zoomXZooming factor along the X axis (1.0f means no zoom).

◆ Draw() [4/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
eVision::EPathVectorDrawOption drawOption,
float zoomX,
float zoomY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
drawOptionOption for how to draw the path vector
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).

◆ Draw() [5/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
eVision::EPathVectorDrawOption drawOption,
float zoomX,
float zoomY,
float originX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
drawOptionOption for how to draw the path vector
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

◆ Draw() [6/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
eVision::EPathVectorDrawOption drawOption,
float zoomX,
float zoomY,
float originX,
float originY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
drawOptionOption for how to draw the path vector
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
originYOrdinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

◆ Draw() [7/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
float zoomX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).

◆ Draw() [8/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
float zoomX,
float zoomY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).

◆ Draw() [9/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
float zoomX,
float zoomY,
float originX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

◆ Draw() [10/20]

void eVision::EC24PathVector::Draw ( eVision::EDrawAdapter * graphicContext,
float zoomX,
float zoomY,
float originX,
float originY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
originYOrdinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

◆ Draw() [11/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [12/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
const eVision::ERGBColor & color ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [13/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
zoomXZooming factor along the X axis (1.0f means no zoom).
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [14/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX,
float zoomY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [15/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float originX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [16/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float originX,
float originY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
originYOrdinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [17/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
float zoomX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [18/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
float zoomX,
float zoomY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [19/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
float zoomX,
float zoomY,
float originX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [20/20]

void eVision::EC24PathVector::Draw ( HDC graphicContext,
float zoomX,
float zoomY,
float originX,
float originY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
originYOrdinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawClosedContour() [1/5]

void eVision::EC24PathVector::DrawClosedContour ( eVision::EDrawAdapter * graphicContext,
eVision::EContourMode contourMode ) const

Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.

Parameters
graphicContextHandle of the device context on which to draw.
contourModeContour mode used to get this path vector used to draw the external boundary of the contour.

◆ DrawClosedContour() [2/5]

void eVision::EC24PathVector::DrawClosedContour ( eVision::EDrawAdapter * graphicContext,
eVision::EContourMode contourMode,
float zoomX ) const

Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.

Parameters
graphicContextHandle of the device context on which to draw.
contourModeContour mode used to get this path vector used to draw the external boundary of the contour.
zoomXZooming factor along the X axis (1.0f means no zoom).

◆ DrawClosedContour() [3/5]

void eVision::EC24PathVector::DrawClosedContour ( eVision::EDrawAdapter * graphicContext,
eVision::EContourMode contourMode,
float zoomX,
float zoomY ) const

Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.

Parameters
graphicContextHandle of the device context on which to draw.
contourModeContour mode used to get this path vector used to draw the external boundary of the contour.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).

◆ DrawClosedContour() [4/5]

void eVision::EC24PathVector::DrawClosedContour ( eVision::EDrawAdapter * graphicContext,
eVision::EContourMode contourMode,
float zoomX,
float zoomY,
float originX ) const

Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.

Parameters
graphicContextHandle of the device context on which to draw.
contourModeContour mode used to get this path vector used to draw the external boundary of the contour.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

◆ DrawClosedContour() [5/5]

void eVision::EC24PathVector::DrawClosedContour ( eVision::EDrawAdapter * graphicContext,
eVision::EContourMode contourMode,
float zoomX,
float zoomY,
float originX,
float originY ) const

Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode::EContourMode_ClockwiseAlwaysClosed and EContourMode::EContourMode_AnticlockwiseAlwaysClosed.

Parameters
graphicContextHandle of the device context on which to draw.
contourModeContour mode used to get this path vector used to draw the external boundary of the contour.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
originYOrdinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

◆ DrawWithCurrentPen() [1/5]

void eVision::EC24PathVector::DrawWithCurrentPen ( HDC graphicContext) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [2/5]

void eVision::EC24PathVector::DrawWithCurrentPen ( HDC graphicContext,
float zoomX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [3/5]

void eVision::EC24PathVector::DrawWithCurrentPen ( HDC graphicContext,
float zoomX,
float zoomY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [4/5]

void eVision::EC24PathVector::DrawWithCurrentPen ( HDC graphicContext,
float zoomX,
float zoomY,
float originX ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [5/5]

void eVision::EC24PathVector::DrawWithCurrentPen ( HDC graphicContext,
float zoomX,
float zoomY,
float originX,
float originY ) const

Draws the path.

By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).

Parameters
graphicContextHandle of the device context on which to draw.
zoomXZooming factor along the X axis (1.0f means no zoom).
zoomYZooming factor along the Y axis (1.0f means no zoom).
originXAbscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
originYOrdinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.
Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ GetClosed()

bool eVision::EC24PathVector::GetClosed ( ) const

Flag indicating whether the shape built with EasyImage::Contour must be closed or not.

◆ GetElement()

eVision::EC24Path eVision::EC24PathVector::GetElement ( int32_t index) const

Returns the vector element at the given index.

Parameters
indexIndex, between 0 and EVector::GetNumElements (excluded) of the element to be accessed.

If the given index is outside the bounds of the vector, the error code EError::EError_Parameter1OutOfRange is set.

◆ GetRawDataPtr()

void * eVision::EC24PathVector::GetRawDataPtr ( ) const

Pointer to the vector data.

◆ operator=()

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

Copies all the data from another EC24PathVector object into the current EC24PathVector object.

Parameters
otherEC24PathVector object to be copied

◆ operator[]()

eVision::EC24Path & eVision::EC24PathVector::operator[] ( uint32_t index) const

Gives access to the vector element at the given index.

Parameters
indexIndex, between 0 and EVector::GetNumElements (excluded) of the element to be accessed.

◆ SetClosed()

void eVision::EC24PathVector::SetClosed ( bool bClosed)

Flag indicating whether the shape built with EasyImage::Contour must be closed or not.

◆ SetElement()

void eVision::EC24PathVector::SetElement ( int32_t index,
eVision::EC24Path value )

Modifies the vector element at the given index by the given value.

Parameters
indexIndex, between 0 and EVector::GetNumElements (excluded), of the element to be modified.
valueThe new value for the element.

If the given index is outside the bounds of the vector, the error code EError::EError_Parameter1OutOfRange is set.