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

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

Inheritance diagram for eVision.EBWHistogramVector:
Collaboration diagram for eVision.EBWHistogramVector:

Public Member Functions

None __init__ (self)
 Constructs a vector.
None __init__ (self, eVision.EBWHistogramVector other)
 Constructs a vector.
None __init__ (self, int maxNumberOfElements)
 Constructs a vector.
None AddElement (self, int element)
 Appends (adds at the tail) an element to the vector.
int GetElement (self, int index)
 Returns the vector element at the given index.
None SetElement (self, int index, int value)
 Modifies the vector element at the given index by the given value.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPlotDecorationOptions options, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPlotDecorationOptions options, float width, float height, float originX)
 Draws a plot of the vector element values.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EPlotDecorationOptions options, float width, float height)
 Draws a plot of the vector element values.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float width, float height, float originX)
 Draws a plot of the vector element values.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float width, float height)
 Draws a plot of the vector element values.
int IndexOperator_Getter (self, int index)
None IndexOperator_Setter (self, int index, int value)
ctypes.c_void_p RawDataPtr (self)
 Pointer to the vector data.
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.EBWHistogramVector.__init__ ( self)

Constructs a vector.

◆ __init__() [2/3]

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

Constructs a vector.

Parameters
othereVision.EBWHistogramVector object to be copied

◆ __init__() [3/3]

None eVision.EBWHistogramVector.__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.EBWHistogramVector.AddElement ( self,
int element )

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

Parameters
elementThe element to be added.

◆ Draw() [1/6]

None eVision.EBWHistogramVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPlotDecorationOptions options,
float width,
float height )

Draws a plot of the vector element values.

Remarks:

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background.

Parameters
graphicContextHandle of the device context on which to draw.
optionsOptions for drawing the decoration of a plot (axes, ticks, etc.).
widthOutermost horizontal size, in pixels.
heightOutermost vertical size, in pixels.

◆ Draw() [2/6]

None eVision.EBWHistogramVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPlotDecorationOptions options,
float width,
float height,
float originX )

Draws a plot of the vector element values.

Remarks:

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background.

Parameters
graphicContextHandle of the device context on which to draw.
optionsOptions for drawing the decoration of a plot (axes, ticks, etc.).
widthOutermost horizontal size, in pixels.
heightOutermost vertical size, in pixels.
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() [3/6]

None eVision.EBWHistogramVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPlotDecorationOptions options,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

Remarks:

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background.

Parameters
graphicContextHandle of the device context on which to draw.
optionsOptions for drawing the decoration of a plot (axes, ticks, etc.).
widthOutermost horizontal size, in pixels.
heightOutermost vertical size, in pixels.
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() [4/6]

None eVision.EBWHistogramVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float width,
float height )

Draws a plot of the vector element values.

Remarks:

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background.

Parameters
graphicContextHandle of the device context on which to draw.
widthOutermost horizontal size, in pixels.
heightOutermost vertical size, in pixels.

◆ Draw() [5/6]

None eVision.EBWHistogramVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float width,
float height,
float originX )

Draws a plot of the vector element values.

Remarks:

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background.

Parameters
graphicContextHandle of the device context on which to draw.
widthOutermost horizontal size, in pixels.
heightOutermost vertical size, in pixels.
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/6]

None eVision.EBWHistogramVector.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

Remarks:

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background.

Parameters
graphicContextHandle of the device context on which to draw.
widthOutermost horizontal size, in pixels.
heightOutermost vertical size, in pixels.
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()

int eVision.EBWHistogramVector.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()

int eVision.EBWHistogramVector.IndexOperator_Getter ( self,
int index )

◆ IndexOperator_Setter()

None eVision.EBWHistogramVector.IndexOperator_Setter ( self,
int index,
int value )

◆ RawDataPtr()

ctypes.c_void_p eVision.EBWHistogramVector.RawDataPtr ( self)

Pointer to the vector data.

◆ SetElement()

None eVision.EBWHistogramVector.SetElement ( self,
int index,
int 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.