Vector objects are used to store 1-dimensional data. More...
#include <eVision/Easy/EBW16PathVector.h>
Public Member Functions | |
| EBW16PathVector () | |
| Constructs a vector. | |
| EBW16PathVector (uint32_t maxNumberOfElements) | |
| Constructs a vector. | |
| EBW16PathVector (const eVision::EBW16PathVector &other) | |
| Constructs a vector. | |
| virtual | ~EBW16PathVector () throw () |
| eVision::EBW16Path & | operator[] (uint32_t index) const |
| Gives access to the vector element at the given index. | |
| eVision::EBW16PathVector & | operator= (const eVision::EBW16PathVector &other) |
| Copies all the data from another EBW16PathVector object into the current EBW16PathVector object. | |
| void * | GetRawDataPtr () const |
| Pointer to the vector data. | |
| void | AddElement (eVision::EBW16Path element) |
| Appends (adds at the tail) an element to the vector. | |
| eVision::EBW16Path | GetElement (int32_t index) const |
| Returns the vector element at the given index. | |
| void | SetElement (int32_t index, eVision::EBW16Path 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. | |
| EBW16PathVector (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_ |
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.
License(s): BasicTypes
| eVision::EBW16PathVector::EBW16PathVector | ( | ) |
Constructs a vector.
| eVision::EBW16PathVector::EBW16PathVector | ( | uint32_t | maxNumberOfElements | ) |
Constructs a vector.
| maxNumberOfElements | Optionally, memory can be pre-allocated to accommodate a given number of elements. |
| eVision::EBW16PathVector::EBW16PathVector | ( | const eVision::EBW16PathVector & | other | ) |
Constructs a vector.
| other | EBW16PathVector object to be copied |
|
virtual | ||||||||||||
| eVision::EBW16PathVector::EBW16PathVector | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EBW16PathVector::AddElement | ( | eVision::EBW16Path | element | ) |
Appends (adds at the tail) an element to the vector.
| element | The element to be added. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| drawOption | Option for how to draw the path vector |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| drawOption | Option for how to draw the path vector |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| drawOption | Option for how to draw the path vector |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| drawOption | Option for how to draw the path vector |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| drawOption | Option for how to draw the path vector |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| originY | Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| originY | Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| originY | Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| originY | Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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.
| graphicContext | Handle of the device context on which to draw. |
| contourMode | Contour mode used to get this path vector used to draw the external boundary of the contour. |
| void eVision::EBW16PathVector::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.
| graphicContext | Handle of the device context on which to draw. |
| contourMode | Contour mode used to get this path vector used to draw the external boundary of the contour. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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.
| graphicContext | Handle of the device context on which to draw. |
| contourMode | Contour mode used to get this path vector used to draw the external boundary of the contour. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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.
| graphicContext | Handle of the device context on which to draw. |
| contourMode | Contour mode used to get this path vector used to draw the external boundary of the contour. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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.
| graphicContext | Handle of the device context on which to draw. |
| contourMode | Contour mode used to get this path vector used to draw the external boundary of the contour. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| originY | Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| void eVision::EBW16PathVector::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).
| graphicContext | Handle of the device context on which to draw. |
| zoomX | Zooming factor along the X axis (1.0f means no zoom). |
| zoomY | Zooming factor along the Y axis (1.0f means no zoom). |
| originX | Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| originY | Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used. |
| bool eVision::EBW16PathVector::GetClosed | ( | ) | const |
Flag indicating whether the shape built with EasyImage::Contour must be closed or not.
| eVision::EBW16Path eVision::EBW16PathVector::GetElement | ( | int32_t | index | ) | const |
Returns the vector element at the given index.
| index | Index, 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.
| void * eVision::EBW16PathVector::GetRawDataPtr | ( | ) | const |
Pointer to the vector data.
| eVision::EBW16PathVector & eVision::EBW16PathVector::operator= | ( | const eVision::EBW16PathVector & | other | ) |
Copies all the data from another EBW16PathVector object into the current EBW16PathVector object.
| other | EBW16PathVector object to be copied |
| eVision::EBW16Path & eVision::EBW16PathVector::operator[] | ( | uint32_t | index | ) | const |
Gives access to the vector element at the given index.
| index | Index, between 0 and EVector::GetNumElements (excluded) of the element to be accessed. |
| void eVision::EBW16PathVector::SetClosed | ( | bool | bClosed | ) |
Flag indicating whether the shape built with EasyImage::Contour must be closed or not.
| void eVision::EBW16PathVector::SetElement | ( | int32_t | index, |
| eVision::EBW16Path | value ) |
Modifies the vector element at the given index by the given value.
| index | Index, between 0 and EVector::GetNumElements (excluded), of the element to be modified. |
| value | The new value for the element. |
If the given index is outside the bounds of the vector, the error code EError::EError_Parameter1OutOfRange is set.