eVision Python API
Loading...
Searching...
No Matches
eVision.EC24PathVector Class Reference

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

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

Public Member Functions

None __init__ (self)
 Constructs a vector.
None __init__ (self, eVision.EC24PathVector other)
 Constructs a vector.
None __init__ (self, int maxNumberOfElements)
 Constructs a vector.
None AddElement (self, eVision.EC24Path element)
 Appends (adds at the tail) an element to the vector.
eVision.EC24Path GetElement (self, int index)
 Returns the vector element at the given index.
None SetElement (self, int index, eVision.EC24Path value)
 Modifies the vector element at the given index by the given value.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float originX, float originY)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float originX)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPathVectorDrawOption drawOption, float zoomX, float zoomY, float originX, float originY)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPathVectorDrawOption drawOption, float zoomX, float zoomY, float originX)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPathVectorDrawOption drawOption, float zoomX, float zoomY)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPathVectorDrawOption drawOption, float zoomX)
 Draws the path.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPathVectorDrawOption drawOption)
 Draws the path.
None DrawClosedContour (self, eVision.EDrawAdapter|None graphicContext, eVision.EContourMode contourMode, float zoomX, float zoomY, float originX, float originY)
 Draws the path vector as the closed contour of an object or a blob.
None DrawClosedContour (self, eVision.EDrawAdapter|None graphicContext, eVision.EContourMode contourMode, float zoomX, float zoomY, float originX)
 Draws the path vector as the closed contour of an object or a blob.
None DrawClosedContour (self, eVision.EDrawAdapter|None graphicContext, eVision.EContourMode contourMode, float zoomX, float zoomY)
 Draws the path vector as the closed contour of an object or a blob.
None DrawClosedContour (self, eVision.EDrawAdapter|None graphicContext, eVision.EContourMode contourMode, float zoomX)
 Draws the path vector as the closed contour of an object or a blob.
None DrawClosedContour (self, eVision.EDrawAdapter|None graphicContext, eVision.EContourMode contourMode)
 Draws the path vector as the closed contour of an object or a blob.
eVision.EC24Path IndexOperator_Getter (self, int index)
None IndexOperator_Setter (self, int index, eVision.EC24Path value)
ctypes.c_void_p RawDataPtr (self)
 Pointer to the vector data.
bool Closed (self)
 Flag indicating whether the shape built with eVision.EasyImage.Contour must be closed or not.
 Closed (self, bool value)
 Flag indicating whether the shape built with eVision.EasyImage.Contour must be closed or not.
Public Member Functions inherited from eVision.EVector
None Empty (self)
 Resets the number of elements to 0.
None RemoveElement (self, int index)
 Removes the element at the specified position.
None Save (self, str path)
 Saves the eVision.EVector object with all its attributes.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.EVector object with all its attributes.
None Save (self, str path, int un32Version)
 Saves the eVision.EVector object with all its attributes.
None Save (self, eVision.ESerializer|None serializer, int un32Version)
 Saves the eVision.EVector object with all its attributes.
None Load (self, str path)
 Loads the eVision.EVector object with all its attributes.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.EVector object with all its attributes.
None Load (self, str path, int un32Version)
 Loads the eVision.EVector object with all its attributes.
None Load (self, eVision.ESerializer|None serializer, int un32Version)
 Loads the eVision.EVector object with all its attributes.
int NumElements (self)
 Number of elements in the vector.
 NumElements (self, int value)
 Number of elements in the vector.

Detailed Description

Vector objects are used to store 1-dimensional data.

Remarks:

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

Constructor & Destructor Documentation

◆ __init__() [1/3]

None eVision.EC24PathVector.__init__ ( self)

Constructs a vector.

◆ __init__() [2/3]

None eVision.EC24PathVector.__init__ ( self,
eVision.EC24PathVector other )

Constructs a vector.

Parameters
othereVision.EC24PathVector object to be copied

◆ __init__() [3/3]

None eVision.EC24PathVector.__init__ ( self,
int maxNumberOfElements )

Constructs a vector.

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

Member Function Documentation

◆ AddElement()

None eVision.EC24PathVector.AddElement ( self,
eVision.EC24Path element )

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

Parameters
elementThe element to be added.

◆ Closed() [1/2]

bool eVision.EC24PathVector.Closed ( self)

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

◆ Closed() [2/2]

eVision.EC24PathVector.Closed ( self,
bool value )

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

◆ Draw() [1/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPathVectorDrawOption drawOption )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPathVectorDrawOption drawOption,
float zoomX )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPathVectorDrawOption drawOption,
float zoomX,
float zoomY )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPathVectorDrawOption drawOption,
float zoomX,
float zoomY,
float originX )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPathVectorDrawOption drawOption,
float zoomX,
float zoomY,
float originX,
float originY )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float originX )

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/10]

None eVision.EC24PathVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float originX,
float originY )

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.

◆ DrawClosedContour() [1/5]

None eVision.EC24PathVector.DrawClosedContour ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EContourMode contourMode )

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 eVision.EContourMode.ClockwiseAlwaysClosed and eVision.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]

None eVision.EC24PathVector.DrawClosedContour ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EContourMode contourMode,
float zoomX )

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 eVision.EContourMode.ClockwiseAlwaysClosed and eVision.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]

None eVision.EC24PathVector.DrawClosedContour ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EContourMode contourMode,
float zoomX,
float zoomY )

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 eVision.EContourMode.ClockwiseAlwaysClosed and eVision.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]

None eVision.EC24PathVector.DrawClosedContour ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EContourMode contourMode,
float zoomX,
float zoomY,
float originX )

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 eVision.EContourMode.ClockwiseAlwaysClosed and eVision.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]

None eVision.EC24PathVector.DrawClosedContour ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EContourMode contourMode,
float zoomX,
float zoomY,
float originX,
float originY )

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 eVision.EContourMode.ClockwiseAlwaysClosed and eVision.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.

◆ GetElement()

eVision.EC24Path eVision.EC24PathVector.GetElement ( self,
int index )

Returns the vector element at the given index.

Remarks:

If the given index is outside the bounds of the vector, the error code eVision.EError.Parameter1OutOfRange is set.

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

◆ IndexOperator_Getter()

eVision.EC24Path eVision.EC24PathVector.IndexOperator_Getter ( self,
int index )

◆ IndexOperator_Setter()

None eVision.EC24PathVector.IndexOperator_Setter ( self,
int index,
eVision.EC24Path value )

◆ RawDataPtr()

ctypes.c_void_p eVision.EC24PathVector.RawDataPtr ( self)

Pointer to the vector data.

◆ SetElement()

None eVision.EC24PathVector.SetElement ( self,
int index,
eVision.EC24Path value )

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

Remarks:

If the given index is outside the bounds of the vector, the error code eVision.EError.Parameter1OutOfRange is set.

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