All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.external.geometry.Switch
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.ChildrenNode
|
+----vlc.vrml.external.geometry.SpecialGroup
|
+----vlc.vrml.external.geometry.Switch
- public class Switch
- extends SpecialGroup
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Anchor node please see the
VRML 97 Anchor specification
- Author:
- Justin Couch justin@vlc.com.au
-
Switch()
- Default Constructor.
-
Switch(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_Choice()
- Get the current list of nodes that can be chosen from
-
get_whichChoice()
- Get the currently chosen index
-
set_choice(ChildrenNode[])
- Set the list of nodes that can be chosen from
-
set_whichChoice(int)
- Chose a particular choice node to be shown.
-
writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Switch
public Switch()
- Default Constructor. Creates a default Switch
Switch
public Switch(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default Switch
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
writeReset
public void writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
- Overrides:
- writeReset in class VrmlObject
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_choice
public void set_choice(ChildrenNode child_list[])
- Set the list of nodes that can be chosen from
- Parameters:
- child_list - List of children nodes or null to remove all
get_Choice
public ChildrenNode[] get_Choice()
- Get the current list of nodes that can be chosen from
- Returns:
- List of children nodes or null to remove all
set_whichChoice
public void set_whichChoice(int val)
- Chose a particular choice node to be shown.
- Parameters:
- val - The index chosen where the first node is index 0
get_whichChoice
public int get_whichChoice()
- Get the currently chosen index
- Returns:
- The index chosen where the first node is index 0
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index