vtlib library
Public Member Functions | List of all members
NodeExtension Struct Reference
Inheritance diagram for NodeExtension:
Inheritance graph
[legend]

Public Member Functions

void SetEnabled (bool bOn)
 
bool GetEnabled () const
 
void SetCastShadow (bool b)
 Set this node to cast a shadow, if it is under a vtShadow node. Default is false.
 
bool GetCastShadow ()
 Get whether this node casts a shadow.
 
void GetBoundSphere (FSphere &sphere, bool bGlobal=false)
 Get the Bounding Sphere of the node.
 

Detailed Description

Extends osg::Node with methods to easily enable/disable the node, and control whether it casts a shadow.

Member Function Documentation

bool NodeExtension::GetEnabled ( ) const

Return the enabled state of a node.

void NodeExtension::SetEnabled ( bool  bOn)

Set the enabled state of this node. When the node is not enabled, it is not rendered. If it is a group node, all of the nodes children are also not rendered.