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

osgView::HUD Class Reference

used to add to the screen Entities of the SpaceManager. More...


Public Member Functions

void setRoot (osg::Group *root)
 Specify the root so that HUD can be added to it.

void setProjection (const osg::Matrix &matrix)
 Set the projection to the given matrix.

osg::Projection * getProjection ()
 Return the projection matrix being used.

bool addChild (osg::Node *node)
 Add a child.

bool setChild (unsigned int pos, osg::Node *node)
 Set child at the specified position to the passed value.

bool removeChild (osg::Node *node)
 Remove child.

bool removeChild (unsigned int pos, unsigned int numChildrenToRemove)
 Remove a set of children starting a position pos.

unsigned int getNumChildren ()
 Return the number of children.


Detailed Description

HUD creates a Ortho projection and a transform matrix that is attached to the screen.


Member Function Documentation

bool HUD::addChild osg::Node *  node  ) 
 

add node.

Parameters:
node node to add.
Returns:
true if the child was sucessfully removed. False otherwise.

unsigned int HUD::getNumChildren  ) 
 

return the number of children added to the HUD.

Returns:
number of children.

bool HUD::removeChild unsigned int  pos,
unsigned int  numChildrenToRemove
 

set the new projection matrix.

Parameters:
pos the initial child number.
numChildrenToRemove number of children to be removed.
Returns:
true if the child was sucessfully removed. False otherwise.

bool HUD::removeChild osg::Node *  node  ) 
 

remove child.

Parameters:
node the node to be removed.
Returns:
true if the child was sucessfully removed. False otherwise.

bool HUD::setChild unsigned int  pos,
osg::Node *  node
 

add node at position pos.

Parameters:
pos position to be added.
node node to add.
Returns:
true if the child was sucessfully removed. False otherwise.

void HUD::setProjection const osg::Matrix &  matrix  ) 
 

set the new projection matrix.

Parameters:
matrix the new projection matrix.

void HUD::setRoot osg::Group *  root  ) 
 

Create a Orthographical projection matrix that is attached to the camera so that objects attached to it are positioned relative to the screen.

Parameters:
root the application root.


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