| Home | Download | Screen shots | Discussion | Documentation | Links |
|---|
Inheritance diagram for Switch:

Public Methods | |
| Switch (const NodeType &nodeType, const ScopePtr &scope) | |
| Constructor. | |
| virtual | ~Switch () throw () |
| Destructor. | |
| virtual bool | isModified () const |
| Determine whether the node has been modified. | |
| virtual void | updateModified (NodePath &path, int flags=0x003) |
| Propagate the bvolume dirty flag from children to parents. | |
| virtual void | render (Viewer &viewer, VrmlRenderContext context) |
| Render the node. | |
| virtual const BVolume * | getBVolume () const |
| Get the bounding volume. | |
Private Methods | |
| void | processSet_choice (const FieldValue &mfnode, double timestamp) throw (std::bad_cast, std::bad_alloc) |
| set_choice eventIn handler. | |
| void | processSet_whichChoice (const FieldValue &sfint32, 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. | |
| BSphere | bsphere |
| Cached copy of the bsphere enclosing this node's children. | |
Friends | |
| class | SwitchClass |
| Class object for Switch instances. | |
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
|
Get the bounding volume.
Reimplemented from Node. |
|
|
Determine whether the node has been modified.
Reimplemented from 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 Node. |
|
||||||||||||
|
Propagate the bvolume dirty flag from children to parents.
Reimplemented from Node. |
|
|
Class object for Switch instances.
|
|
|
Cached copy of the bsphere enclosing this node's children.
|
|
|
choice exposedField.
|
|
|
whichChoice exposedField.
|