Logo Search packages:      
Sourcecode: 3depict version File versions  Download package

void Scene::addDrawable ( const DrawableObj obj  ) 

Add a drawable object.

Pointer must be set to a valid (allocated) object. !Scene will delete upon call to clearAll, clearObjs or !upon destruction

Definition at line 341 of file scene.cpp.

References boundCube, BoundCube::expand(), DrawableObj::getBoundingBox(), BoundCube::isValid(), and objects.

Referenced by VisController::updateScene().

{
      objects.push_back(obj);
      BoundCube bc;
      obj->getBoundingBox(bc);

      if(bc.isValid());
            boundCube.expand(bc);
}


Generated by  Doxygen 1.6.0   Back to index