#include <graspit_db_model.h>
Public Member Functions | |
bool | geometryLoaded () const |
Returns the flag that tells us if geometry has been loaded. | |
GraspableBody * | getGraspableBody () const |
Returns the Graspable body. | |
GraspitDBModel () | |
int | load (World *w) |
Loads the geometry and initializes the corresponding GraspableBody. | |
void | unload () |
Deletes the loaded geometry;. | |
~GraspitDBModel () | |
Protected Member Functions | |
virtual int | loadGeometry () |
Loads the geometry for this body. | |
Protected Attributes | |
bool | mGeometryLoaded |
Tells us if the scene graph geometry of this object has been loaded. | |
GraspableBody * | mGraspableBody |
This is the body representation in GraspIt. |
This is the class to define the data entry of model in CGDB
Definition at line 40 of file graspit_db_model.h.
GraspitDBModel::GraspitDBModel | ( | ) | [inline] |
Definition at line 50 of file graspit_db_model.h.
GraspitDBModel::~GraspitDBModel | ( | ) |
Definition at line 45 of file graspit_db_model.cpp.
bool GraspitDBModel::geometryLoaded | ( | ) | const [inline] |
Returns the flag that tells us if geometry has been loaded.
Definition at line 57 of file graspit_db_model.h.
GraspableBody* GraspitDBModel::getGraspableBody | ( | ) | const [inline] |
Returns the Graspable body.
Definition at line 59 of file graspit_db_model.h.
int GraspitDBModel::load | ( | World * | w | ) |
Loads the geometry and initializes the corresponding GraspableBody.
Definition at line 70 of file graspit_db_model.cpp.
int GraspitDBModel::loadGeometry | ( | ) | [protected, virtual] |
Loads the geometry for this body.
Reimplemented in GeomGraspitDBModel.
Definition at line 50 of file graspit_db_model.cpp.
void GraspitDBModel::unload | ( | ) |
Deletes the loaded geometry;.
It will NOT remove the GraspIt equivalent of this model from its world, or from the collision detection. It is the CALLER's responsability to take care of that. This is symmetrical with load(), which prepares the geometry but does not add it to the world or the collision detection.
Definition at line 110 of file graspit_db_model.cpp.
bool GraspitDBModel::mGeometryLoaded [protected] |
Tells us if the scene graph geometry of this object has been loaded.
Definition at line 45 of file graspit_db_model.h.
GraspableBody* GraspitDBModel::mGraspableBody [protected] |
This is the body representation in GraspIt.
Definition at line 43 of file graspit_db_model.h.