Hosted by: BerliOS Developer Logo

OpenMBV C++ Interface

BerliOS Project Page
Public Member Functions | Protected Member Functions | Protected Attributes
OpenMBV::Path Class Reference

Draw a path of a reference point. More...

#include <path.h>

Inheritance diagram for OpenMBV::Path:
OpenMBV::Body OpenMBV::Object

List of all members.

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 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 (xercesc::DOMElement *element)
 Initializes the time invariant part of the object using a XML node.
xercesc::DOMElement * writeXMLFile (xercesc::DOMNode *parent)

Protected Member Functions

void createHDF5File ()
void openHDF5File ()
virtual ~Path ()
 Destructor.

Protected Attributes

H5::VectorSerie< double > * data
std::vector< double > color

Detailed Description

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


Member Function Documentation

std::vector<double> OpenMBV::Path::getRow ( int  i) [inline, virtual]

Get row number i of the default data.

NOTE: see also append()

Implements OpenMBV::Body.

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 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).


The documentation for this class was generated from the following file: