|
j3d.org Aviatrix3D | ||||||||||
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.Group
org.j3d.aviatrix3d.TransformGroup
A grouping node that contains a transform. The node contains a single transformation that can position, scale and rotate all its children. The specified transformation must be Affine and have uniform scaling components(SRT-transform). This class will not check this constraint, so expect odd results if you break this rule, up to and including a possible core reactor meltdown in a foreign country.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.Group |
childList, dirtyBoundsCount, lastChild, pickFlags, wkVec1, wkVec2 |
Fields inherited from class org.j3d.aviatrix3d.Node |
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, updateHandler, WRITE_TIMING_MSG |
Fields inherited from interface org.j3d.aviatrix3d.PickableObject |
COLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECT |
Constructor Summary | |
TransformGroup()
The default constructor |
|
TransformGroup(javax.vecmath.Matrix4f trans)
Construct a TransformGroup given a matrix. |
Method Summary | |
void |
getTransform(javax.vecmath.Matrix4d mat)
Get the current local transformation value. |
void |
getTransform(javax.vecmath.Matrix4f mat)
Get the current local transformation value. |
void |
postRender(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
|
protected void |
recomputeBounds()
Internal method to recalculate the implicit bounds of this Node. |
void |
render(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
Set up the rendering state now. |
void |
setTransform(javax.vecmath.Matrix4f trans)
Set the transform matrix for this class. |
protected void |
updateBounds()
Update this node's bounds and then call the parent to update it's bounds. |
Methods inherited from class org.j3d.aviatrix3d.Group |
addChild, checkForCyclicChild, getAllChildren, getChild, getPickMask, getRenderableChild, indexOfChild, markBoundsDirty, numChildren, numRenderableChildren, pickBatch, pickSingle, removeAllChildren, removeChild, removeChild, setChild, setLive, setPickMask, setUpdateHandler |
Methods inherited from class org.j3d.aviatrix3d.Node |
boundsChanged, checkForCyclicParent, getBounds, getParent, removeParent, setBounds, setParent |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
dataChanged, getUserData, isLive, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransformGroup()
public TransformGroup(javax.vecmath.Matrix4f trans)
trans
- The matrix to use for transformationMethod Detail |
public void setTransform(javax.vecmath.Matrix4f trans) throws InvalidWriteTimingException
trans
- The matrix. Copy by value semantics.
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic void getTransform(javax.vecmath.Matrix4f mat)
public void getTransform(javax.vecmath.Matrix4d mat)
public void render(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
render
in class Node
gl
- The gl context to draw withglu
- The utility context to draw withpublic void postRender(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
postRender
in class Node
protected void recomputeBounds()
recomputeBounds
in class Group
protected void updateBounds()
updateBounds
in class Group
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |