All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.LOD

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.Node
                   |
                   +----java.media.j3d.Leaf
                           |
                           +----java.media.j3d.Behavior
                                   |
                                   +----java.media.j3d.LOD

public abstract class LOD
extends Behavior
An LOD leaf node is an abstract behavior class that operates on a list of Switch group nodes to selects one of the children of the Switch nodes. The LOD class is extended to implement various selection criteria.


Constructor Index

 o LOD()
Constructs and initializes an LOD node.

Method Index

 o addSwitch(Switch)
Appends the specified switch node to this LOD's list of switches.
 o getAllSwitches()
Returns the enumeration object of all switches.
 o getSwitch(int)
Returns the switch node specified by the index.
 o insertSwitch(Switch, int)
Inserts the specified switch node at specified index.
 o numSwitches()
Returns a count of this LOD's switches.
 o removeSwitch(int)
Removes the switch node at specified index.
 o setSwitch(Switch, int)
Replaces the specified switch node with the switch node provided.

Constructors

 o LOD
 public LOD()
Constructs and initializes an LOD node.

Methods

 o addSwitch
 public final void addSwitch(Switch switchNode)
Appends the specified switch node to this LOD's list of switches.

Parameters:
switchNode - the switch node to add to this LOD's list of switches
 o setSwitch
 public final void setSwitch(Switch switchNode,
                             int index)
Replaces the specified switch node with the switch node provided.

Parameters:
switchNode - the new switch node
index - which switch node to replace
 o insertSwitch
 public final void insertSwitch(Switch switchNode,
                                int index)
Inserts the specified switch node at specified index.

Parameters:
switchNode - the new switch node
index - position to insert new switch node at
 o removeSwitch
 public final void removeSwitch(int index)
Removes the switch node at specified index.

Parameters:
index - which switch node to remove
 o getSwitch
 public final Switch getSwitch(int index)
Returns the switch node specified by the index.

Parameters:
index - which switch node to return
Returns:
the switch node at location index
 o getAllSwitches
 public final Enumeration getAllSwitches()
Returns the enumeration object of all switches.

Returns:
the enumeration object of all switches
 o numSwitches
 public final int numSwitches()
Returns a count of this LOD's switches.

Returns:
the number of switches controlled by this LOD

All Packages  Class Hierarchy  This Package  Previous  Next  Index