org.j3d.renderer.aviatrix3d.nodes
Class MarkerGroup
java.lang.Object
org.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
org.j3d.aviatrix3d.BaseNode
org.j3d.aviatrix3d.BaseGroup
org.j3d.renderer.aviatrix3d.nodes.MarkerGroup
- All Implemented Interfaces:
- Cullable, CustomCullable, TransformHierarchy
public class MarkerGroup
- extends BaseGroup
- implements CustomCullable
A grouping node that places it's children in the line of site between a
target node and the viewpoint, oriented towards the viewpoint.
In order to use this node effectively, you will need to use the
FrustumCullStage
to process the
children. It uses custom culling routines internally and that is the only cull
stage that will do something useful with ths node.
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
Method Summary |
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. |
void |
setEnabled(boolean enabled)
Set the enabled state |
void |
setTarget(Node target)
Set the node to track |
Methods inherited from class org.j3d.aviatrix3d.BaseGroup |
addChild, checkForCyclicChild, getAllChildren, getChild, indexOfChild, markBoundsDirty, numChildren, recomputeBounds, removeAllChildren, removeChild, removeChild, requestBoundsUpdate, setBounds, setChild, setLive, setUpdateHandler, updateBounds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkerGroup
public MarkerGroup()
- Constructor
cullChildren
public 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. The angular resolution is
defined as Field Of View (in radians) / viewport width in pixels.
- Specified by:
cullChildren
in interface CustomCullable
- Parameters:
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.
setEnabled
public void setEnabled(boolean enabled)
- Set the enabled state
- Parameters:
enabled
- The enabled state
setTarget
public void setTarget(Node target)
- Set the node to track
- Parameters:
target
- The Node to track
Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org