Class TLcdOpenFlightVertexNode
java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightVertexNode
- All Implemented Interfaces:
ILcd3DMeshNode
,ILcdOpenFlightNode
A vertex node. May appear below a face node, and defines the actual geometry
of that face.
Please refer to the OpenFlight specification for more details on the semantics of this node and its properties.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ALcdOpenFlightSceneVisitor aVisitor) Accepts an OpenFlight visitor.void
addChild
(ILcdOpenFlightNode aChild) Overridden to enforce that vertex nodes are always leaves in the scene graph.Returns the vertices referenced by this vertex node.void
setVertices
(int[] aVertices) Sets the list of vertices referenced by this vertex node.Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
getChild, getChildCount, getChildren, getID, getMeshes, getParent, getTransformation, setID, setParent, toString
-
Constructor Details
-
TLcdOpenFlightVertexNode
-
-
Method Details
-
setVertices
public void setVertices(int[] aVertices) Sets the list of vertices referenced by this vertex node. This method takes an index list (as appearing in the OpenFlight file), and looks up the corresponding vertices in the vertex palette.- Parameters:
aVertices
- an array of integer vertex indices
-
getVertices
Returns the vertices referenced by this vertex node.- Returns:
- an array of TLcdOpenFlightVertex objects
-
addChild
Overridden to enforce that vertex nodes are always leaves in the scene graph. Will throw an IllegalStateException if called.- Overrides:
addChild
in classTLcdOpenFlightNode
- Parameters:
aChild
- the ILcdOpenFlightNode to be added below this node
-
accept
Description copied from interface:ILcdOpenFlightNode
Accepts an OpenFlight visitor. A typical implementation of this method should callaVisitor.visit(this)
.- Specified by:
accept
in interfaceILcdOpenFlightNode
- Overrides:
accept
in classTLcdOpenFlightNode
- Parameters:
aVisitor
- the visitor to accept
-