public class TLcdOpenFlightVertexNode extends TLcdOpenFlightNode
Please refer to the OpenFlight specification for more details on the semantics of this node and its properties.
TLcdOpenFlightFaceNode
Constructor and Description |
---|
TLcdOpenFlightVertexNode(ILcdOpenFlightNode aParent) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ALcdOpenFlightSceneVisitor aVisitor)
Accepts an OpenFlight visitor.
|
void |
addChild(ILcdOpenFlightNode aChild)
Overridden to enforce that vertex nodes are always leaves in the scene
graph.
|
TLcdOpenFlightVertex[] |
getVertices()
Returns the vertices referenced by this vertex node.
|
void |
setVertices(int[] aVertices)
Sets the list of vertices referenced by this vertex node.
|
getChild, getChildCount, getChildren, getID, getMeshes, getParent, getTransformation, setID, setParent, toString
public TLcdOpenFlightVertexNode(ILcdOpenFlightNode aParent)
public void setVertices(int[] aVertices)
aVertices
- an array of integer vertex indicespublic TLcdOpenFlightVertex[] getVertices()
public void addChild(ILcdOpenFlightNode aChild)
addChild
in class TLcdOpenFlightNode
aChild
- the ILcdOpenFlightNode to be added below this nodepublic void accept(ALcdOpenFlightSceneVisitor aVisitor)
ILcdOpenFlightNode
aVisitor.visit(this)
.accept
in interface ILcdOpenFlightNode
accept
in class TLcdOpenFlightNode
aVisitor
- the visitor to accept