public class TLcdOpenFlightTransformableNode extends TLcdOpenFlightNode
Constructor and Description |
---|
TLcdOpenFlightTransformableNode(ILcdOpenFlightNode aParent) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ALcdOpenFlightSceneVisitor aVisitor)
Accepts an OpenFlight visitor.
|
double[] |
getTransformation()
Returns a transformation matrix that applies to this node and its
children.
|
void |
setTransformation(double[] aMatrix4x4)
Sets this node's transformation matrix.
|
addChild, getChild, getChildCount, getChildren, getID, getMeshes, getParent, setID, setParent, toString
public TLcdOpenFlightTransformableNode(ILcdOpenFlightNode aParent)
public double[] getTransformation()
ILcd3DMeshNode
glLoadMatrix()
. null
can be returned and represents the
identity matrix.getTransformation
in interface ILcd3DMeshNode
getTransformation
in class TLcdOpenFlightNode
null
public void setTransformation(double[] aMatrix4x4)
null
values are allowed, and will be more
efficient than specifying an identity matrix.aMatrix4x4
- a 16-element double array defining a 4x4 transformation matrixpublic void accept(ALcdOpenFlightSceneVisitor aVisitor)
ILcdOpenFlightNode
aVisitor.visit(this)
.accept
in interface ILcdOpenFlightNode
accept
in class TLcdOpenFlightNode
aVisitor
- the visitor to accept