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.
-
LOD()
- Constructs and initializes an LOD node.
-
addSwitch(Switch)
- Appends the specified switch node to this LOD's list of switches.
-
getAllSwitches()
- Returns the enumeration object of all switches.
-
getSwitch(int)
- Returns the switch node specified by the index.
-
insertSwitch(Switch, int)
- Inserts the specified switch node at specified index.
-
numSwitches()
- Returns a count of this LOD's switches.
-
removeSwitch(int)
- Removes the switch node at specified index.
-
setSwitch(Switch, int)
- Replaces the specified switch node with the switch node provided.
LOD
public LOD()
- Constructs and initializes an LOD node.
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
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
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
removeSwitch
public final void removeSwitch(int index)
- Removes the switch node at specified index.
- Parameters:
- index - which switch node to remove
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
getAllSwitches
public final Enumeration getAllSwitches()
- Returns the enumeration object of all switches.
- Returns:
- the enumeration object of all switches
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