| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
Class for all bodies extruded along a curve. More...
#include <spineextrusion.h>
Public Member Functions | |
| SpineExtrusion () | |
| constructor | |
| std::string | getClassName () |
| Retrun the class name. | |
| void | setNumberOfSpinePoints (const int num) |
| Set the number of spine points used for extrusion along a path. | |
| int | getNumberOfSpinePoints () |
| Get the number of spine points used for extrusion along a path. | |
| void | setContour (std::vector< PolygonPoint * > *contour_) |
| Set the 2D contour (cross-section) of the extrusion. | |
| std::vector< PolygonPoint * > * | getContour () |
| void | setScaleFactor (const double scale) |
| Set the scale factor of the body. | |
| double | getScaleFactor () |
| void | setInitialRotation (const std::vector< double > &initRot) |
| Set the initial rotation of the body. | |
| void | setInitialRotation (double a, double b, double g) |
| Set the initial rotation of the body. | |
| std::vector< double > | getInitialRotation () |
| Get the initial rotation of the body. | |
| void | append (const std::vector< double > &row) |
| Append a data vector to the h5 datsset. | |
| 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. | |
| virtual void | initializeUsingXML (xercesc::DOMElement *element) |
| Initializes the time invariant part of the object using a XML node. | |
| xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *parent) |
| Write XML file for not time-dependent data. | |
Protected Member Functions | |
| virtual | ~SpineExtrusion () |
| destructor | |
| void | createHDF5File () |
| Write H5 file for time-dependent data. | |
| void | openHDF5File () |
Protected Attributes | |
| int | numberOfSpinePoints |
| Number of spine points used for extrusion along a path. | |
| std::vector< PolygonPoint * > * | contour |
| Vector of local x-y points. | |
| H5::VectorSerie< double > * | data |
| Each row comprises [time,spine world position,spine twist,...,spine world position,spine twist]. | |
| double | scaleFactor |
| Scale factor of the body. | |
| std::vector< double > | initialRotation |
| Intial rotation of the body. | |
Class for all bodies extruded along a curve.
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 (N is the number of spine points): time, spine point 1 x, spine point 1 y, spine point 1 z, spine twist 1, spine point 2 x, spine point 2 y, spine point 2 z, spine twist 2, ..., spine point N x, spine point N y, spine point N z, spine twist N
| void OpenMBV::SpineExtrusion::createHDF5File | ( | ) | [protected, virtual] |
Write H5 file for time-dependent data.
Reimplemented from OpenMBV::Body.
| std::vector<double> OpenMBV::SpineExtrusion::getInitialRotation | ( | ) | [inline] |
Get the initial rotation of the body.
References initialRotation.
| std::vector<double> OpenMBV::SpineExtrusion::getRow | ( | int | i | ) | [inline, virtual] |
Get row number i of the default data.
NOTE: see also append()
Implements OpenMBV::Body.
References data, and numberOfSpinePoints.
| int OpenMBV::SpineExtrusion::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.
References data.
| void OpenMBV::SpineExtrusion::setContour | ( | std::vector< PolygonPoint * > * | contour_ | ) | [inline] |
Set the 2D contour (cross-section) of the extrusion.
The contour (polygon) points must be in clockwise order.
References contour.
| void OpenMBV::SpineExtrusion::setInitialRotation | ( | const std::vector< double > & | initRot | ) | [inline] |
Set the initial rotation of the body.
References initialRotation.
| void OpenMBV::SpineExtrusion::setInitialRotation | ( | double | a, |
| double | b, | ||
| double | g | ||
| ) | [inline] |
Set the initial rotation of the body.
References initialRotation.
| void OpenMBV::SpineExtrusion::setScaleFactor | ( | const double | scale | ) | [inline] |
Set the scale factor of the body.
References scaleFactor.
| xercesc::DOMElement* OpenMBV::SpineExtrusion::writeXMLFile | ( | xercesc::DOMNode * | parent | ) | [virtual] |
Write XML file for not time-dependent data.
Reimplemented from OpenMBV::DynamicColoredBody.
std::vector<PolygonPoint*>* OpenMBV::SpineExtrusion::contour [protected] |
Vector of local x-y points.
Referenced by setContour().
H5::VectorSerie<double>* OpenMBV::SpineExtrusion::data [protected] |
std::vector<double> OpenMBV::SpineExtrusion::initialRotation [protected] |
Intial rotation of the body.
Referenced by getInitialRotation(), and setInitialRotation().
int OpenMBV::SpineExtrusion::numberOfSpinePoints [protected] |
Number of spine points used for extrusion along a path.
Referenced by getNumberOfSpinePoints(), getRow(), and setNumberOfSpinePoints().
double OpenMBV::SpineExtrusion::scaleFactor [protected] |
Scale factor of the body.
Referenced by setScaleFactor().
1.8.0