Moby
|
Class from which all Moby classes are derived. More...
#include <Base.h>
Public Member Functions | |
Base (const Base *b) | |
virtual void | save_to_xml (XMLTreePtr node, std::list< boost::shared_ptr< const Base > > &shared_objects) const |
Method for saving this object to XML. More... | |
virtual void | load_from_xml (boost::shared_ptr< const XMLTree > node, std::map< std::string, BasePtr > &id_map) |
Method for loading the data for this object from XML. More... | |
Static Public Member Functions | |
template<class T > | |
static boost::shared_ptr< T > | clone (boost::shared_ptr< T > x) |
Static method for cloning a shared pointer. | |
Public Attributes | |
boost::shared_ptr< void > | userdata |
Any relevant userdata. | |
std::string | id |
The unique ID for this object. | |
Class from which all Moby classes are derived.
|
virtual |
Method for loading the data for this object from XML.
node | the subtree under which all data necessary to load this object is stored |
id_map | a map from node IDs to read objects |
Reimplemented in Moby::RigidBody, Moby::Simulator, Moby::RCArticulatedBody, Moby::Primitive, Moby::Joint, Moby::CollisionGeometry, Moby::PlanePrimitive, Moby::Visualizable, Moby::CCD, Moby::Gears, Moby::HeightmapPrimitive, Moby::ConstraintSimulator, Moby::PolyhedralPrimitive, Moby::TriangleMeshPrimitive, Moby::ConePrimitive, Moby::TimeSteppingSimulator, Moby::ControlledBody, Moby::ArticulatedBody, Moby::CylinderPrimitive, Moby::PrismaticJoint, Moby::BoxPrimitive, Moby::SpherePrimitive, Moby::FixedJoint, Moby::OSGGroupWrapper, Moby::PlanarJoint, Moby::RevoluteJoint, Moby::SphericalJoint, Moby::UniversalJoint, Moby::ScrewJoint, Moby::TorusPrimitive, Moby::GravityForce, Moby::ContactParameters, Moby::StokesDragForce, and Moby::Dissipation.
References id.
|
virtual |
Method for saving this object to XML.
node | the XML node to which this object should be serialized |
on | output, a list of shared objects which should also be serialized |
Reimplemented in Moby::RigidBody, Moby::Simulator, Moby::RCArticulatedBody, Moby::Primitive, Moby::Joint, Moby::CollisionGeometry, Moby::PlanePrimitive, Moby::CCD, Moby::Visualizable, Moby::HeightmapPrimitive, Moby::ConstraintSimulator, Moby::PolyhedralPrimitive, Moby::Gears, Moby::TriangleMeshPrimitive, Moby::ConePrimitive, Moby::TimeSteppingSimulator, Moby::ControlledBody, Moby::ArticulatedBody, Moby::CylinderPrimitive, Moby::PrismaticJoint, Moby::BoxPrimitive, Moby::SpherePrimitive, Moby::FixedJoint, Moby::OSGGroupWrapper, Moby::PlanarJoint, Moby::RevoluteJoint, Moby::SphericalJoint, Moby::UniversalJoint, Moby::ScrewJoint, Moby::TorusPrimitive, Moby::GravityForce, Moby::ContactParameters, Moby::StokesDragForce, and Moby::Dissipation.