public class TLcdOpenFlightNode extends Object implements ILcdOpenFlightNode
Constructor and Description |
---|
TLcdOpenFlightNode(ILcdOpenFlightNode aParent) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ALcdOpenFlightSceneVisitor aVisitor)
Accepts an OpenFlight visitor.
|
void |
addChild(ILcdOpenFlightNode aChild)
Adds a child to this node.
|
ILcdOpenFlightNode |
getChild(int aIndex)
Returns the child node at the specified index.
|
int |
getChildCount()
Returns the number of child nodes directly beneath this node.
|
List<? extends ILcd3DMeshNode> |
getChildren()
Returns this node's children, or an empty list if the node is a leaf node.
|
String |
getID()
Returns this node's ID.
|
List<ILcd3DMesh> |
getMeshes()
Returns the geometry contained in this node, in the form of 3D meshes,
or an empty list if this node does not contain any data.
|
ILcdOpenFlightNode |
getParent()
Returns this node's parent node.
|
double[] |
getTransformation()
Returns a transformation matrix that applies to this node and its
children.
|
void |
setID(String aID) |
void |
setParent(ILcdOpenFlightNode aParent)
Sets this node's parent.
|
String |
toString() |
public TLcdOpenFlightNode(ILcdOpenFlightNode aParent)
public int getChildCount()
ILcdOpenFlightNode
getChildCount
in interface ILcdOpenFlightNode
public ILcdOpenFlightNode getChild(int aIndex)
ILcdOpenFlightNode
getChild
in interface ILcdOpenFlightNode
aIndex
- the index of the child node to be retrievedpublic void addChild(ILcdOpenFlightNode aChild)
aChild
- the ILcdOpenFlightNode to be added below this nodepublic void setParent(ILcdOpenFlightNode aParent)
aParent
- public ILcdOpenFlightNode getParent()
ILcdOpenFlightNode
getParent
in interface ILcdOpenFlightNode
public String getID()
ILcdOpenFlightNode
getID
in interface ILcdOpenFlightNode
public void setID(String aID)
aID
- the new ID of this nodesetID(String)
public List<ILcd3DMesh> getMeshes()
ILcd3DMeshNode
getMeshes
in interface ILcd3DMeshNode
null
public double[] getTransformation()
ILcd3DMeshNode
glLoadMatrix()
. null
can be returned and represents the
identity matrix.getTransformation
in interface ILcd3DMeshNode
null
public List<? extends ILcd3DMeshNode> getChildren()
ILcd3DMeshNode
getChildren
in interface ILcd3DMeshNode
null
public void accept(ALcdOpenFlightSceneVisitor aVisitor)
ILcdOpenFlightNode
aVisitor.visit(this)
.accept
in interface ILcdOpenFlightNode
aVisitor
- the visitor to accept