GraspitDBModel Class Reference

#include <graspit_db_model.h>

Inheritance diagram for GraspitDBModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool geometryLoaded () const
 Returns the flag that tells us if geometry has been loaded.
GraspableBodygetGraspableBody () 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.
GraspableBodymGraspableBody
 This is the body representation in GraspIt.

Detailed Description

This is the class to define the data entry of model in CGDB

Definition at line 40 of file graspit_db_model.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Tells us if the scene graph geometry of this object has been loaded.

Definition at line 45 of file graspit_db_model.h.

This is the body representation in GraspIt.

Definition at line 43 of file graspit_db_model.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:21 2012