[ Contact ] [ Links ] [ Previous : 12 / 28 : Selecting Children ] [ Up ] [ Next : 14 / 28 : Sharing Groups of Shapes : SharedGroup Node ]

Switch Class Methods and Examples

Method Default
Switch( ) -
void setWhichChild( int index ) CHILD_NONE
void setChildMask( BitSet mask ) None
 
   Shape3D first = new Shape3D( geom1, app1 );
   Shape3D second = new Shape3D( geom2, app2 );
   Shape3D third = new Shape3D( geom3, app3 );
   . . .
   Switch group = new Switch( );
   group.addChild( first );
   group.addChild( second );
   group.addChild( third );
   . . .

   setWhichChild(1);

See the "Links" link above to find out the sources of the proposed informations
Pascal Vuylsteker / eScience / Computer Science / ANU
Last modified: 20/4/2004
TOC - Print
Send your comments at :
<Hugh.Fisher@anu.edu.au>