Hosted by: BerliOS Developer Logo

OpenMBV C++ Interface

BerliOS Project Page
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends
OpenMBV::Object Class Reference

Abstract base class. More...

#include <object.h>

Inheritance diagram for OpenMBV::Object:
OpenMBV::Body OpenMBV::Group OpenMBV::DynamicColoredBody OpenMBV::Path OpenMBV::Arrow OpenMBV::CoilSpring OpenMBV::NurbsDisk OpenMBV::RigidBody OpenMBV::SpineExtrusion OpenMBV::CompoundRigidBody OpenMBV::Cube OpenMBV::Cuboid OpenMBV::Extrusion OpenMBV::Frame OpenMBV::Frustum OpenMBV::Grid OpenMBV::InvisibleBody OpenMBV::IvBody OpenMBV::Rotation OpenMBV::Sphere

List of all members.

Public Member Functions

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)
boost::shared_ptr< Group > getSeparateGroup ()
 return the first Group in the tree which is an separateFile
boost::shared_ptr< Group > getTopLevelGroup ()
 return the top level Group
boost::weak_ptr< Group > getParent ()
H5::GroupBase * getHDF5Group ()
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

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
boost::weak_ptr< Group > parent
H5::GroupBase * hdf5Group

Friends

class Group

Detailed Description

Abstract base class.


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