Open CASCADE Technology 7.8.2.dev
Vrml_Switch Class Reference

defines a Switch node of VRML specifying group properties. This group node traverses one, none, or all of its children. One can use this node to switch on and off the effects of some properties or to switch between different properties. The whichChild field specifies the index of the child to traverse, where the first child has index 0. A value of -1 (the default) means do not traverse any children. A value of -3 traverses all children, making the switch behave exactly like a regular Group. More...

#include <Vrml_Switch.hxx>

Public Member Functions

 Vrml_Switch (const Standard_Integer aWhichChild=-1)
 
void SetWhichChild (const Standard_Integer aWhichChild)
 
Standard_Integer WhichChild () const
 
Standard_OStreamPrint (Standard_OStream &anOStream) const
 

Detailed Description

defines a Switch node of VRML specifying group properties. This group node traverses one, none, or all of its children. One can use this node to switch on and off the effects of some properties or to switch between different properties. The whichChild field specifies the index of the child to traverse, where the first child has index 0. A value of -1 (the default) means do not traverse any children. A value of -3 traverses all children, making the switch behave exactly like a regular Group.

Constructor & Destructor Documentation

◆ Vrml_Switch()

Vrml_Switch::Vrml_Switch ( const Standard_Integer aWhichChild = -1)

Member Function Documentation

◆ Print()

Standard_OStream & Vrml_Switch::Print ( Standard_OStream & anOStream) const

◆ SetWhichChild()

void Vrml_Switch::SetWhichChild ( const Standard_Integer aWhichChild)

◆ WhichChild()

Standard_Integer Vrml_Switch::WhichChild ( ) const

The documentation for this class was generated from the following file: