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. |