Vector objects are used to store 1-dimensional data. More...
#include <eVision/Easy/EBWHistogramVector.h>
Public Member Functions | |
| EBWHistogramVector () | |
| Constructs a vector. | |
| EBWHistogramVector (const eVision::EBWHistogramVector &other) | |
| Constructs a vector. | |
| EBWHistogramVector (uint32_t maxNumberOfElements) | |
| Constructs a vector. | |
| virtual | ~EBWHistogramVector () throw () |
| uint32_t & | operator[] (uint32_t index) const |
| Gives access to the vector element at the given index. | |
| eVision::EBWHistogramVector & | operator= (const eVision::EBWHistogramVector &other) |
| Copies all the data from another EBWHistogramVector object into the current EBWHistogramVector object. | |
| void * | GetRawDataPtr () const |
| Pointer to the vector data. | |
| void | AddElement (uint32_t element) |
| Appends (adds at the tail) an element to the vector. | |
| uint32_t | GetElement (int32_t index) const |
| Returns the vector element at the given index. | |
| void | SetElement (int32_t index, uint32_t value) |
| Modifies the vector element at the given index by the given value. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EPlotDecorationOptions &options, float width, float height, float originX, float originY) const |
| Draws a plot of the vector element values. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EPlotDecorationOptions &options, float width, float height, float originX) const |
| Draws a plot of the vector element values. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EPlotDecorationOptions &options, float width, float height) const |
| Draws a plot of the vector element values. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float width, float height, float originX, float originY) const |
| Draws a plot of the vector element values. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float width, float height, float originX) const |
| Draws a plot of the vector element values. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float width, float height) const |
| Draws a plot of the vector element values. | |
| void | Draw (HDC graphicContext, float width, float height, float originX, float originY) const |
| Draws a plot of the vector element values. | |
| void | Draw (HDC graphicContext, float width, float height, float originX) const |
| Draws a plot of the vector element values. | |
| void | Draw (HDC graphicContext, float width, float height) const |
| Draws a plot of the vector element values. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float width, float height, float originX, float originY) const |
| Draws a plot of the vector element values. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float width, float height, float originX) const |
| Draws a plot of the vector element values. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float width, float height) const |
| Draws a plot of the vector element values. | |
| void | DrawWithCurrentPen (HDC graphicContext, float width, float height, float originX, float originY) const |
| Draws a plot of the vector element values. | |
| void | DrawWithCurrentPen (HDC graphicContext, float width, float height, float originX) const |
| Draws a plot of the vector element values. | |
| void | DrawWithCurrentPen (HDC graphicContext, float width, float height) const |
| Draws a plot of the vector element values. | |
| EBWHistogramVector (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::EBWHistogramVector::EBWHistogramVector | ( | ) |
Constructs a vector.
| eVision::EBWHistogramVector::EBWHistogramVector | ( | const eVision::EBWHistogramVector & | other | ) |
Constructs a vector.
| other | EBWHistogramVector object to be copied |
| eVision::EBWHistogramVector::EBWHistogramVector | ( | uint32_t | maxNumberOfElements | ) |
Constructs a vector.
| maxNumberOfElements | Optionally, memory can be pre-allocated to accommodate a given number of elements. |
|
virtual | ||||||||||||
| eVision::EBWHistogramVector::EBWHistogramVector | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EBWHistogramVector::AddElement | ( | uint32_t | element | ) |
Appends (adds at the tail) an element to the vector.
| element | The element to be added. |
| void eVision::EBWHistogramVector::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EPlotDecorationOptions & | options, | ||
| float | width, | ||
| float | height ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| options | Options for drawing the decoration of a plot (axes, ticks, etc.). |
| width | Outermost horizontal size, in pixels. |
| height | Outermost 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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EPlotDecorationOptions & | options, | ||
| float | width, | ||
| float | height, | ||
| float | originX ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| options | Options for drawing the decoration of a plot (axes, ticks, etc.). |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EPlotDecorationOptions & | options, | ||
| float | width, | ||
| float | height, | ||
| float | originX, | ||
| float | originY ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| options | Options for drawing the decoration of a plot (axes, ticks, etc.). |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | width, | ||
| float | height ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost 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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | width, | ||
| float | height, | ||
| float | originX ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | width, | ||
| float | height, | ||
| float | originX, | ||
| float | originY ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | width, | ||
| float | height ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost 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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | width, | ||
| float | height, | ||
| float | originX ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | width, | ||
| float | height, | ||
| float | originX, | ||
| float | originY ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| color | The color in which to draw the overlay. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | HDC | graphicContext, |
| float | width, | ||
| float | height ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost 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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | HDC | graphicContext, |
| float | width, | ||
| float | height, | ||
| float | originX ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::Draw | ( | HDC | graphicContext, |
| float | width, | ||
| float | height, | ||
| float | originX, | ||
| float | originY ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | width, | ||
| float | height ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost 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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | width, | ||
| float | height, | ||
| float | originX ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| void eVision::EBWHistogramVector::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | width, | ||
| float | height, | ||
| float | originX, | ||
| float | originY ) const |
Draws a plot of the vector element values.
| graphicContext | Handle of the device context on which to draw. |
| width | Outermost horizontal size, in pixels. |
| height | Outermost vertical size, in pixels. |
| 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. |
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. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead.
| uint32_t eVision::EBWHistogramVector::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::EBWHistogramVector::GetRawDataPtr | ( | ) | const |
Pointer to the vector data.
| eVision::EBWHistogramVector & eVision::EBWHistogramVector::operator= | ( | const eVision::EBWHistogramVector & | other | ) |
Copies all the data from another EBWHistogramVector object into the current EBWHistogramVector object.
| other | EBWHistogramVector object to be copied |
| uint32_t & eVision::EBWHistogramVector::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::EBWHistogramVector::SetElement | ( | int32_t | index, |
| uint32_t | 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.