Class TLcdOpenFlightTransformableNode
java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
- All Implemented Interfaces:
ILcd3DMeshNode,ILcdOpenFlightNode
- Direct Known Subclasses:
TLcdOpenFlightBSPNode,TLcdOpenFlightExternalReferenceNode,TLcdOpenFlightGeometryNode,TLcdOpenFlightSwitchNode
Base class for nodes that support transformation of their subtrees.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ALcdOpenFlightSceneVisitor aVisitor) Accepts an OpenFlight visitor.double[]Returns a transformation matrix that applies to this node and its children.voidsetTransformation(double[] aMatrix4x4) Sets this node's transformation matrix.Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
addChild, getChild, getChildCount, getChildren, getID, getMeshes, getParent, setID, setParent, toString
-
Constructor Details
-
TLcdOpenFlightTransformableNode
-
-
Method Details
-
getTransformation
public double[] getTransformation()Description copied from interface:ILcd3DMeshNodeReturns a transformation matrix that applies to this node and its children. The matrix should be 4x4 elements in column-major order. This is the same convention used by OpenGL functions such asglLoadMatrix().nullcan be returned and represents the identity matrix.- Specified by:
getTransformationin interfaceILcd3DMeshNode- Overrides:
getTransformationin classTLcdOpenFlightNode- Returns:
- a 4x4 column-major transformation matrix, possibly
null
-
setTransformation
public void setTransformation(double[] aMatrix4x4) Sets this node's transformation matrix. The matrix must be 4x4 elements and be in column major form.nullvalues are allowed, and will be more efficient than specifying an identity matrix.- Parameters:
aMatrix4x4- a 16-element double array defining a 4x4 transformation matrix
-
accept
Description copied from interface:ILcdOpenFlightNodeAccepts an OpenFlight visitor. A typical implementation of this method should callaVisitor.visit(this).- Specified by:
acceptin interfaceILcdOpenFlightNode- Overrides:
acceptin classTLcdOpenFlightNode- Parameters:
aVisitor- the visitor to accept
-