| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
Abstract base class for all bodies. More...
#include <body.h>
Public Types | |
| enum | DrawStyle { filled, lines, points } |
Public Member Functions | |
| std::string | getClassName () |
| Retrun the class name. | |
| void | setHDF5LinkTarget (const boost::shared_ptr< Body > &dest) |
| Link this body with dest in the HDF5 file. | |
| boost::shared_ptr< Body > & | getHDF5LinkTarget () |
| bool | isHDF5Link () |
| Returns if this body is linked to another. | |
| void | setOutLine (bool ol) |
| Draw outline of this object in the viewer if true (the default) | |
| bool | getOutLine () |
| void | setShilouetteEdge (bool ol) |
| Draw shilouette edges of this object in the viewer if true (the default) | |
| bool | getShilouetteEdge () |
| void | setDrawMethod (DrawStyle ds) |
| Draw method/style of this object in the viewer (default: filled) | |
| DrawStyle | getDrawMethod () |
| virtual void | initializeUsingXML (xercesc::DOMElement *element) |
| Initializes the time invariant part of the object using a XML node. | |
| xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *parent) |
| virtual void | append (const std::vector< double > &row)=0 |
| Pure virtual function to append a vector<double> row to the data. | |
| virtual int | getRows ()=0 |
| Get the number of rows of the default data. | |
| virtual std::vector< double > | getRow (int i)=0 |
| Get row number i of the default data. | |
Protected Member Functions | |
| void | createHDF5File () |
| void | openHDF5File () |
| void | terminate () |
Protected Attributes | |
| std::string | outLineStr |
| std::string | shilouetteEdgeStr |
| DrawStyle | drawMethod |
| boost::shared_ptr< Body > | hdf5LinkBody |
| std::string | hdf5LinkStr |
Abstract base class for all bodies.
| virtual void OpenMBV::Body::append | ( | const std::vector< double > & | row | ) | [pure virtual] |
Pure virtual function to append a vector<double> row to the data.
NOTE that this is an convinience function, because most OpenMBV data is of this type. If you do not need this spezial type, simple define this function with empty body and create your own spezific append function
Implemented in OpenMBV::RigidBody, OpenMBV::NurbsDisk, OpenMBV::SpineExtrusion, OpenMBV::Arrow, OpenMBV::CoilSpring, and OpenMBV::Path.
| virtual std::vector<double> OpenMBV::Body::getRow | ( | int | i | ) | [pure virtual] |
Get row number i of the default data.
NOTE: see also append()
Implemented in OpenMBV::RigidBody, OpenMBV::NurbsDisk, OpenMBV::SpineExtrusion, OpenMBV::Arrow, OpenMBV::CoilSpring, and OpenMBV::Path.
| virtual int OpenMBV::Body::getRows | ( | ) | [pure virtual] |
Get the number of rows of the default data.
Returns -1, if no default data is avaliable. NOTE: see also append()
Implemented in OpenMBV::RigidBody, OpenMBV::NurbsDisk, OpenMBV::SpineExtrusion, OpenMBV::Arrow, OpenMBV::CoilSpring, and OpenMBV::Path.
1.8.0