|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
org.j3d.aviatrix3d.BaseNode
org.j3d.renderer.aviatrix3d.nodes.LODGroup
Not available at this time A grouping node structure that controls which children are being rendered based on distance from the user.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.Node |
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
LODGroup()
Create a new LOD implementation that uses distance as the determining visual factor. |
|
LODGroup(boolean distanceMode)
|
Method Summary | |
void |
addChild(Node newChild)
Add a new child to the group. |
void |
cullChildren(CullInstructions output,
javax.vecmath.Matrix4f vworldTx,
javax.vecmath.Matrix4f viewTransform,
javax.vecmath.Vector4f[] frustumPlanes,
float angularRes)
Check this node for children to traverse. |
float |
getRange(int idx)
Get the range set at the given child index. |
Node[] |
getRenderableChild()
Get the list of children that are valid to be rendered according to the rules of the grouping node. |
boolean |
isDistanceMode()
Find out which of the two modes are being used by this LOD. |
int |
numRenderableChildren()
Returns the number of valid renderable children to process.If there are no valid renderable children return -1. |
void |
removeAllChildren()
Removes all children from the group. |
void |
removeChild(int idx)
|
void |
setRange(int idx,
float value)
Set the range at the given child index. |
Methods inherited from class org.j3d.aviatrix3d.BaseNode |
checkForCyclicChild, checkForCyclicParent, clearUpdateHandler, removeParent, setLive, setParent, setUpdateHandler |
Methods inherited from class org.j3d.aviatrix3d.Node |
boundsChanged, checkForCyclicParent, getBounds, getParent, markBoundsDirty, recomputeBounds, removeParent, setBounds, setLive, setParent, updateBounds, updateParentBounds |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, dataChanged, getUserData, isLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LODGroup()
public LODGroup(boolean distanceMode)
Method Detail |
public void cullChildren(CullInstructions output, javax.vecmath.Matrix4f vworldTx, javax.vecmath.Matrix4f viewTransform, javax.vecmath.Vector4f[] frustumPlanes, float angularRes)
cullChildren
in interface Cullable
output
- Fill in the child information herevworldTx
- The transformation from the root of the scene to
this node according to the current traversal pathviewTransform
- The transformation from the root of the scene
graph to the active viewpointfrustumPlanes
- Listing of frustum planes in the order: right,
left, bottom, top, far, nearangularRes
- Angular resolution of the screen, or 0 if not
calculable from the available data.public void addChild(Node newChild)
public void removeChild(int idx)
public Node[] getRenderableChild()
public int numRenderableChildren()
public void removeAllChildren() throws InvalidWriteTimingException
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic float getRange(int idx)
idx
- The range index to get the value from
java.lang.IndexOutOfBoundsException
- The index is negative or past the
last childpublic void setRange(int idx, float value)
idx
- The range index to get the value from
java.lang.IndexOutOfBoundsException
- The index is negative or past the
last child
java.lang.IllegalArgumentException
- The value is not monotonically
increasingpublic boolean isDistanceMode()
|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |