| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
A arrow with zero, one or two heads. More...
#include <arrow.h>
Public Types | |
| enum | Type { line, fromHead, toHead, bothHeads, fromDoubleHead, toDoubleHead, bothDoubleHeads } |
| enum | ReferencePoint { toPoint, fromPoint, midPoint } |
Public Member Functions | |
| std::string | getClassName () |
| Retrun the class name. | |
| void | setPath (bool p) |
| Draw path of this object in the viewer if true (the default) | |
| bool | getPath () |
| void | append (const std::vector< double > &row) |
Append the data row to the end of the 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 | setArrowHead (double diameter, double length) |
| Convenience; see setHeadDiameter and setHeadLength. | |
| void | setHeadDiameter (double diameter) |
| Set the diameter of the arrow head (which is a cone) | |
| double | getHeadDiameter () |
| void | setHeadLength (double length) |
| Set the length of the arrow head (which is a cone) | |
| double | getHeadLength () |
| void | setDiameter (double diameter_) |
| Set the diameter of the arrow (which is a cylinder) | |
| double | getDiameter () |
| void | setType (Type type_) |
| Set the type of the arrow. | |
| Type | getType () |
| void | setReferencePoint (ReferencePoint referencePoint_) |
| Set the reference point of the arrow. | |
| ReferencePoint | getReferencePoint () |
| void | setScaleLength (double scale) |
| Scale the length of the arrow. | |
| double | getScaleLength () |
| 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 () |
Protected Attributes | |
| std::string | pathStr |
| H5::VectorSerie< double > * | data |
| double | headDiameter |
| double | headLength |
| double | diameter |
| double | scaleLength |
| Type | type |
| ReferencePoint | referencePoint |
Friends | |
| class | ObjectFactory |
A arrow with zero, one or two heads.
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, "to" point x, "to" point y, "to" point z, delta x, delta y, delta z, color
| std::vector<double> OpenMBV::Arrow::getRow | ( | int | i | ) | [inline, virtual] |
| int OpenMBV::Arrow::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::Arrow::setReferencePoint | ( | ReferencePoint | referencePoint_ | ) | [inline] |
Set the reference point of the arrow.
The reference point is the point being stored in the HDF5 file. Use "toPoint" (the default) if the 'to' point is store in the HDF5 file; Use "fromPoint" if the 'from' point is store in the HDF5 file; Use "midPoint" if the 'mid' point is store in the HDF5 file;
| void OpenMBV::Arrow::setType | ( | Type | type_ | ) | [inline] |
Set the type of the arrow.
Use "line" to draw the arrow as a simple line; Use "fromHead" to draw the arrow with a head at the 'from' point; Use "toHead" to draw the arrow with a head at the 'to' point; Use "bothHeads" to draw the arrow with a head at the 'from' and 'to' point; Use "fromDoubleHead" to draw the arrow with a double head at the 'from' point; Use "toDoubleHead" to draw the arrow with a double head at the 'to' point; Use "bothDoubleHeads" to draw the arrow with a double head at the 'from' and 'to' point;
1.8.0