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

Constructor Index

 o Switch()
Default Constructor.
 o Switch(Browser)
Default Constructor when you wish to supply your own Browser reference.

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_Choice()
Get the current list of nodes that can be chosen from
 o get_whichChoice()
Get the currently chosen index
 o set_choice(ChildrenNode[])
Set the list of nodes that can be chosen from
 o set_whichChoice(int)
Chose a particular choice node to be shown.
 o writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o Switch
 public Switch()
Default Constructor. Creates a default Switch

 o Switch
 public Switch(Browser b)
Default Constructor when you wish to supply your own Browser reference. Creates a default Switch

Methods

 o cleanup
 public void cleanup()
Call when about to remove the node from the scenegraph.

Overrides:
cleanup in class VrmlObject
 o 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
 o 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
 o 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
 o 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
 o 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
 o get_whichChoice
 public int get_whichChoice()
Get the currently chosen index

Returns:
The index chosen where the first node is index 0
 o 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