| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
Abstract base class. More...
#include <object.h>
Public Member Functions | |
| Object () | |
| Default constructor. | |
| virtual void | destroy () const |
| It must be possible to delete the top level Group: use this function for therefore. | |
| virtual std::string | getClassName ()=0 |
| Retrun the class name. | |
| void | setEnable (bool enable) |
| Enable this object in the viewer if true (the default) | |
| bool | getEnable () |
| void | setBoundingBox (bool bbox) |
| Draw bounding box of this object in the viewer if true (the default) | |
| bool | getBoundingBox () |
| void | setName (const std::string &name_) |
| Set the name of this object. | |
| std::string | getName () |
| virtual std::string | getFullName (bool includingFileName=false, bool stopAtSeparateFile=false) |
| Returns the full name (path) of the object. | |
| virtual void | initializeUsingXML (xercesc::DOMElement *element) |
| Initializes the time invariant part of the object using a XML node. | |
| virtual xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *parent) |
| Group * | getSeparateGroup () |
| return the first Group in the tree which is an separateFile | |
| Group * | getTopLevelGroup () |
| return the top level Group | |
| Group * | getParent () |
| std::string | getID () const |
| get the ID sting of the Object (Note: the ID is metadata and stored as a processing instruction in XML) | |
| void | setID (std::string ID_) |
| set the ID sting of the Object (Note: the ID is metadata and stored as a processing instruction in XML) | |
| bool | getSelected () const |
| get the selected flag (Note: the selected flag is metadata and not stored in XML but used by OpenMBVGUI) | |
| void | setSelected (bool selected_) |
| set the selected flag (Note: the selected flag is metadata and not stored in XML but used by OpenMBVGUI) | |
Static Public Member Functions | |
| static double | getDouble (xercesc::DOMElement *e) |
| static std::vector< double > | getVec (xercesc::DOMElement *e, unsigned int rows=0) |
|
static std::vector < std::vector< double > > | getMat (xercesc::DOMElement *e, unsigned int rows=0, unsigned int cols=0) |
| static std::string | numtostr (int i) |
| static std::string | numtostr (double d) |
| template<class T > | |
| static void | addElementText (xercesc::DOMElement *parent, const MBXMLUtils::FQN &name, const T &value) |
| static void | addElementText (xercesc::DOMElement *parent, const MBXMLUtils::FQN &name, double value, double def) |
| static void | addElementText (xercesc::DOMElement *parent, const MBXMLUtils::FQN &name, const std::vector< double > &value) |
| static void | addElementText (xercesc::DOMElement *parent, const MBXMLUtils::FQN &name, const std::vector< std::vector< double > > &value) |
| template<class T > | |
| static void | addAttribute (xercesc::DOMNode *node, std::string name, T value) |
| template<class T > | |
| static void | addAttribute (xercesc::DOMNode *node, std::string name, T value, std::string def) |
Protected Member Functions | |
| virtual void | createHDF5File ()=0 |
| virtual void | openHDF5File ()=0 |
| virtual void | terminate ()=0 |
| virtual | ~Object () |
| Virtual destructor. | |
Static Protected Member Functions | |
| static std::vector< double > | toVector (std::string str) |
|
static std::vector < std::vector< double > > | toMatrix (std::string str) |
Protected Attributes | |
| std::string | name |
| std::string | enableStr |
| std::string | boundingBoxStr |
| std::string | ID |
| bool | selected |
| Group * | parent |
| H5::Group * | hdf5Group |
Friends | |
| class | Group |
Abstract base class.
| virtual void OpenMBV::Object::destroy | ( | ) | const [virtual] |
It must be possible to delete the top level Group: use this function for therefore.
If this object is was added into a parent object this object is first removed from this parent and then deleted.
Reimplemented in OpenMBV::RigidBody.
1.8.0