Home | Download | Screen shots | Discussion | Documentation |
---|
Inheritance diagram for openvrml::vrml97_node::switch_node:
Public Member Functions | |
switch_node (const node_type &type, const scope_ptr &scope) | |
Construct. | |
virtual | ~switch_node () throw () |
Destroy. | |
virtual bool | modified () const |
Determine whether the node has been modified. | |
virtual void | render (openvrml::viewer &viewer, rendering_context context) |
Render the node. | |
virtual const openvrml::bounding_volume & | bounding_volume () const |
Get the bounding volume. | |
virtual const std::vector< node_ptr > & | children () const throw () |
Get the children in the scene graph. | |
virtual void | activate (double timestamp, bool over, bool active, double *p) |
Private Member Functions | |
void | process_set_choice (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc) |
set_choice eventIn handler. | |
void | process_set_whichChoice (const field_value &value, double timestamp) throw (std::bad_cast) |
set_whichChoice eventIn handler. | |
virtual void | recalcBSphere () |
Recalculate the bounding volume. | |
Private Attributes | |
mfnode | choice |
choice exposedField. | |
sfint32 | whichChoice |
whichChoice exposedField. | |
mfnode | children_ |
The children currently in the scene graph. | |
bounding_sphere | bsphere |
Cached copy of the bsphere enclosing this node's children. | |
Friends | |
class | switch_class |
Class object for Switch instances. |
|
Construct.
|
|
Destroy.
|
|
Pass on to enabled touchsensor child. Implements openvrml::grouping_node. |
|
Get the bounding volume.
Reimplemented from openvrml::node. |
|
Get the children in the scene graph.
Implements openvrml::grouping_node. |
|
Determine whether the node has been modified.
Reimplemented from openvrml::node. |
|
set_choice eventIn handler.
|
|
set_whichChoice eventIn handler.
|
|
Recalculate the bounding volume.
|
|
Render the node. The child corresponding to whichChoice is rendered. Nothing is rendered if whichChoice is -1.
Reimplemented from openvrml::node. |
|
Class object for Switch instances.
|
|
Cached copy of the bsphere enclosing this node's children.
|
|
The children currently in the scene graph.
|
|
choice exposedField.
|
|
whichChoice exposedField.
|