eVision .NET API
Loading...
Searching...
No Matches
eVision.EBW32Vector Class Reference

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

Inheritance diagram for eVision.EBW32Vector:
Collaboration diagram for eVision.EBW32Vector:

Public Member Functions

 EBW32Vector ()
 Constructs a vector.
 EBW32Vector (uint maxNumberOfElements)
 Constructs a vector.
 EBW32Vector (eVision.EBW32Vector other)
 Constructs a vector.
void AddElement (eVision.EBW32 element)
 Appends (adds at the tail) an element to the vector.
eVision.EBW32 GetElement (int index)
 Returns the vector element at the given index.
void SetElement (int index, eVision.EBW32 value)
 Modifies the vector element at the given index by the given value.
void SetYRange (int n32YMin, uint un32YMax)
void SetYRange (int n32YMin)
void SetYRange ()
void Draw (eVision.EDrawAdapter graphicContext, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
void Draw (eVision.EDrawAdapter graphicContext, float width, float height, float originX)
 Draws a plot of the vector element values.
void Draw (eVision.EDrawAdapter graphicContext, float width, float height)
 Draws a plot of the vector element values.
void Draw (IntPtr graphicContext, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
void Draw (IntPtr graphicContext, float width, float height, float originX)
 Draws a plot of the vector element values.
void Draw (IntPtr graphicContext, float width, float height)
 Draws a plot of the vector element values.
void Draw (IntPtr graphicContext, eVision.ERGBColor color, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
void Draw (IntPtr graphicContext, eVision.ERGBColor color, float width, float height, float originX)
 Draws a plot of the vector element values.
void Draw (IntPtr graphicContext, eVision.ERGBColor color, float width, float height)
 Draws a plot of the vector element values.
void DrawWithCurrentPen (IntPtr graphicContext, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
void DrawWithCurrentPen (IntPtr graphicContext, float width, float height, float originX)
 Draws a plot of the vector element values.
void DrawWithCurrentPen (IntPtr graphicContext, float width, float height)
 Draws a plot of the vector element values.
float WeightedMoment (uint from, uint to)
 Returns the first order geometric moment (weighted gravity center).
float WeightedMoment (uint from)
 Returns the first order geometric moment (weighted gravity center).
float WeightedMoment ()
 Returns the first order geometric moment (weighted gravity center).
void Draw (System.Drawing.Graphics graphicContext, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
void Draw (System.Drawing.Graphics graphicContext, float width, float height, float originX)
 Draws a plot of the vector element values.
void Draw (System.Drawing.Graphics graphicContext, float width, float height)
 Draws a plot of the vector element values.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color, float width, float height, float originX, float originY)
 Draws a plot of the vector element values.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color, float width, float height, float originX)
 Draws a plot of the vector element values.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color, float width, float height)
 Draws a plot of the vector element values.
Public Member Functions inherited from eVision.EVector
void Empty ()
 Resets the number of elements to 0.
virtual void RemoveElement (uint index)
 Removes the element at the specified position.
void Save (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 (string path, uint un32Version)
 Saves the EVector object with all its attributes.
void Save (eVision.ESerializer serializer, uint un32Version)
 Saves the EVector object with all its attributes.
void Load (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 (string path, uint un32Version)
 Loads the EVector object with all its attributes.
void Load (eVision.ESerializer serializer, uint un32Version)
 Loads the EVector object with all its attributes.

Properties

eVision.EBW32 this[uint index] [get, set]
 Gives access to the vector element at the given index.
IntPtr RawDataPtr [get]
 Pointer to the vector data.
Properties inherited from eVision.EVector
uint NumElements [get, set]
 Number of elements in the vector.

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 EBW32Vector.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.NumElements.

License(s): BasicTypes

Constructor & Destructor Documentation

◆ EBW32Vector() [1/3]

eVision.EBW32Vector.EBW32Vector ( )

Constructs a vector.

◆ EBW32Vector() [2/3]

eVision.EBW32Vector.EBW32Vector ( uint maxNumberOfElements)

Constructs a vector.

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

◆ EBW32Vector() [3/3]

eVision.EBW32Vector.EBW32Vector ( eVision.EBW32Vector other)

Constructs a vector.

Parameters
otherEBW32Vector object to be copied

Member Function Documentation

◆ AddElement()

void eVision.EBW32Vector.AddElement ( eVision.EBW32 element)

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

Parameters
elementThe element to be added.

◆ Draw() [1/15]

void eVision.EBW32Vector.Draw ( eVision.EDrawAdapter graphicContext,
float width,
float height )

Draws a plot of the vector element values.

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

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.

◆ Draw() [2/15]

void eVision.EBW32Vector.Draw ( eVision.EDrawAdapter graphicContext,
float width,
float height,
float originX )

Draws a plot of the vector element values.

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.

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.

◆ Draw() [3/15]

void eVision.EBW32Vector.Draw ( eVision.EDrawAdapter graphicContext,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

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.

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.

◆ Draw() [4/15]

void eVision.EBW32Vector.Draw ( IntPtr graphicContext,
eVision.ERGBColor color,
float width,
float height )

Draws a plot of the vector element values.

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

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [5/15]

void eVision.EBW32Vector.Draw ( IntPtr graphicContext,
eVision.ERGBColor color,
float width,
float height,
float originX )

Draws a plot of the vector element values.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [6/15]

void eVision.EBW32Vector.Draw ( IntPtr graphicContext,
eVision.ERGBColor color,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [7/15]

void eVision.EBW32Vector.Draw ( IntPtr graphicContext,
float width,
float height )

Draws a plot of the vector element values.

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

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [8/15]

void eVision.EBW32Vector.Draw ( IntPtr graphicContext,
float width,
float height,
float originX )

Draws a plot of the vector element values.

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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [9/15]

void eVision.EBW32Vector.Draw ( IntPtr graphicContext,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [10/15]

void eVision.EBW32Vector.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color,
float width,
float height )

Draws a plot of the vector element values.

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

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [11/15]

void eVision.EBW32Vector.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color,
float width,
float height,
float originX )

Draws a plot of the vector element values.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [12/15]

void eVision.EBW32Vector.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [13/15]

void eVision.EBW32Vector.Draw ( System.Drawing.Graphics graphicContext,
float width,
float height )

Draws a plot of the vector element values.

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

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [14/15]

void eVision.EBW32Vector.Draw ( System.Drawing.Graphics graphicContext,
float width,
float height,
float originX )

Draws a plot of the vector element values.

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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [15/15]

void eVision.EBW32Vector.Draw ( System.Drawing.Graphics graphicContext,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [1/3]

void eVision.EBW32Vector.DrawWithCurrentPen ( IntPtr graphicContext,
float width,
float height )

Draws a plot of the vector element values.

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

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [2/3]

void eVision.EBW32Vector.DrawWithCurrentPen ( IntPtr graphicContext,
float width,
float height,
float originX )

Draws a plot of the vector element values.

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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [3/3]

void eVision.EBW32Vector.DrawWithCurrentPen ( IntPtr graphicContext,
float width,
float height,
float originX,
float originY )

Draws a plot of the vector element values.

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.

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.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ GetElement()

eVision.EBW32 eVision.EBW32Vector.GetElement ( int index)

Returns the vector element at the given index.

Parameters
indexIndex, between 0 and EVector.NumElements (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.

◆ SetElement()

void eVision.EBW32Vector.SetElement ( int index,
eVision.EBW32 value )

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

Parameters
indexIndex, between 0 and EVector.NumElements (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.

◆ SetYRange() [1/3]

void eVision.EBW32Vector.SetYRange ( )

◆ SetYRange() [2/3]

void eVision.EBW32Vector.SetYRange ( int n32YMin)

◆ SetYRange() [3/3]

void eVision.EBW32Vector.SetYRange ( int n32YMin,
uint un32YMax )

◆ WeightedMoment() [1/3]

float eVision.EBW32Vector.WeightedMoment ( )

Returns the first order geometric moment (weighted gravity center).

◆ WeightedMoment() [2/3]

float eVision.EBW32Vector.WeightedMoment ( uint from)

Returns the first order geometric moment (weighted gravity center).

Parameters
fromFirst element of the vector portion for which the weighted moment will be calculated. By default, this is the first element of the vector.

◆ WeightedMoment() [3/3]

float eVision.EBW32Vector.WeightedMoment ( uint from,
uint to )

Returns the first order geometric moment (weighted gravity center).

Parameters
fromFirst element of the vector portion for which the weighted moment will be calculated. By default, this is the first element of the vector.
toLast element of the vector portion for which the weighted moment will be calculated. By default, this is the last element of the vector.

Property Documentation

◆ RawDataPtr

IntPtr eVision.EBW32Vector.RawDataPtr
get

Pointer to the vector data.

◆ this[uint index]

eVision.EBW32 eVision.EBW32Vector.this[uint index]
getset

Gives access to the vector element at the given index.

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