| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
Draw a path of a reference point. More...
#include <path.h>
Public Member Functions | |
| Path () | |
| Default constructor. | |
| std::string | getClassName () |
| Retrun the class name. | |
| void | append (const std::vector< double > &row) |
| Append a data vector the to hf dataset. | |
| int | getRows () |
| Get the number of rows of the default data. | |
| std::vector< double > | getRow (int i) |
| Get row number i of the default data. | |
| void | setColor (const VectorParameter &hsv) |
| Set the color of the path (HSV values from 0 to 1). | |
| void | setColor (const std::vector< double > &hsv) |
| Set the color of the path (HSV values from 0 to 1). | |
| std::vector< double > | getColor () |
| void | setColor (double h, double s, double v) |
| Set the color of the path (HSV values from 0 to 1). | |
| virtual void | initializeUsingXML (MBXMLUtils::TiXmlElement *element) |
| Initializes the time invariant part of the object using a XML node. | |
| MBXMLUtils::TiXmlElement * | writeXMLFile (MBXMLUtils::TiXmlNode *parent) |
Protected Member Functions | |
| void | createHDF5File () |
| void | openHDF5File () |
| virtual | ~Path () |
| Destructor. | |
Protected Attributes | |
| H5::VectorSerie< double > * | data |
| VectorParameter | color |
Draw a path of a reference point.
HDF5-Dataset: The HDF5 dataset of this object is a 2D array of double precision values. Each row represents one dataset in time. A row consists of the following columns in order given in world frame: time, x, y, z
| std::vector<double> OpenMBV::Path::getRow | ( | int | i | ) | [inline, virtual] |
| int OpenMBV::Path::getRows | ( | ) | [inline, virtual] |
Get the number of rows of the default data.
Returns -1, if no default data is avaliable. NOTE: see also append()
Implements OpenMBV::Body.
| void OpenMBV::Path::setColor | ( | const VectorParameter & | hsv | ) | [inline] |
Set the color of the path (HSV values from 0 to 1).
| void OpenMBV::Path::setColor | ( | const std::vector< double > & | hsv | ) | [inline] |
Set the color of the path (HSV values from 0 to 1).
| void OpenMBV::Path::setColor | ( | double | h, |
| double | s, | ||
| double | v | ||
| ) | [inline] |
Set the color of the path (HSV values from 0 to 1).
1.8.0