Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields

osgView::SpaceManager Class Reference

manages all graphics that will be displayed on the HUD More...


Public Member Functions

void add (osgView::Entity *entity)
 adds an Entity

bool contains (const osg::NodePath &)
 returns true if there is an Entity associated with the nodepath.

bool replace (const osg::NodePath &, osgView::Entity *entity)
 replaces the Entity with the associated NamePath

osgView::Entityget (unsigned int pos)
 get the Entity at the specified position

osgView::Entityget (const osg::NodePath &)
 get the Entity with the provided path

osgView::Entityget (const std::string &)
 get the Entity with the specified name

osgView::Entityget (char *)
 get the Entity with the given name

void display (osgProducer::Viewer *)
 Displays all visible Entities to the HUD. Should be called by the application.

void createHUD (osg::Group *root)
 attach the HUD to the root

osgView::HUDgetHud (void)


Detailed Description

maintains a list of Entity, Geodes and Labels to be displayed on the HUD


Member Function Documentation

bool SpaceManager::contains const osg::NodePath &  path  ) 
 

returns true if there is a Entity with NodePath path

Parameters:
path NodePath associated to the Entity
Returns:
true if there is a entity associate with the NodePath. False otherwise.

void SpaceManager::createHUD osg::Group *  root  ) 
 

calls _hud->setRoot(root) to set the root for the HUD.

Parameters:
root the root

void SpaceManager::display osgProducer::Viewer *  viewer  ) 
 

Addes the geodes that represents the Entities as children to HUD, positions the unanchored Label on the proper place and resets every entry in the EntityList to not visible.

Parameters:
viewer reference to the viewer

osgView::Entity * SpaceManager::get char *  name  ) 
 

returns the Entity with Name name

Parameters:
name the char* name associated to the Entity
Returns:
a Entity

osgView::Entity * SpaceManager::get const std::string &  name  ) 
 

returns the Entity with Name name

Parameters:
name the std::string name associated to the Entity
Returns:
a Entity

osgView::Entity * SpaceManager::get const osg::NodePath &  path  ) 
 

returns the Entity with NodePath path

Parameters:
path NodePath associated to the Entity
Returns:
an entity

osgView::Entity * SpaceManager::get unsigned int  pos  ) 
 

returns the Entity at position pos

Parameters:
pos position on the Entitylist
Returns:
an entity

bool SpaceManager::replace const osg::NodePath &  path,
osgView::Entity entity
 

replaces the Entity with NodePath path

Parameters:
path NodePath associated to the Entity
entity the new entity to be stores
Returns:
true if there is a entity associate with the NodePath. False otherwise.


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 12:22:39 2004 for osgAR by doxygen 1.3.7