public class TLcdOpenFlightGeometryNode extends TLcdOpenFlightTransformableNode implements ILcdStyled3DMesh
Constructor and Description |
---|
TLcdOpenFlightGeometryNode(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.
|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
int |
getColorCount()
Returns the number of colors in this mesh
|
void |
getColorSFCT(int aIndex,
float[] aColorSFCT)
Retrieves a vertex color from the pool.
|
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.
|
int |
getNormalCount()
Returns the number of normal vectors in this mesh
|
void |
getNormalSFCT(int aIndex,
ILcd3DEditablePoint aNormalSFCT)
Retrieves a vertex normal from the pool.
|
ILcd3DPrimitive |
getPrimitive(int aIndex)
Retrieves a primitive from this mesh.
|
int |
getPrimitiveCount()
Returns the number of primitives in this mesh
|
ILcd3DMeshStyle |
getStyleForPrimitive(int aPrimitiveIndex)
Returns the style associated with the specified primitive.
|
int |
getTexCoordCount()
Returns the number of texture coordinates in this mesh
|
void |
getTexCoordSFCT(int aIndex,
ILcd2DEditablePoint aTexCoordSFCT)
Retrieves a pair of texture mapping coordinates from the pool.
|
int |
getVertexCount()
Returns the number of vertices in this mesh
|
void |
getVertexSFCT(int aIndex,
ILcd3DEditablePoint aVertexSFCT)
Retrieves a vertex position from the pool.
|
getTransformation, setTransformation
getChild, getChildCount, getChildren, getID, getParent, setID, setParent, toString
public TLcdOpenFlightGeometryNode(ILcdOpenFlightNode aParent)
public void addChild(ILcdOpenFlightNode aChild)
TLcdOpenFlightNode
addChild
in class TLcdOpenFlightNode
aChild
- the ILcdOpenFlightNode to be added below this nodepublic int getVertexCount()
ILcd3DMesh
getVertexCount
in interface ILcd3DMesh
ILcd3DMesh.getVertexSFCT(int, com.luciad.shape.shape3D.ILcd3DEditablePoint)
public int getNormalCount()
ILcd3DMesh
getNormalCount
in interface ILcd3DMesh
ILcd3DMesh.getNormalSFCT(int, com.luciad.shape.shape3D.ILcd3DEditablePoint)
public int getTexCoordCount()
ILcd3DMesh
getTexCoordCount
in interface ILcd3DMesh
ILcd3DMesh.getTexCoordSFCT(int, com.luciad.shape.shape2D.ILcd2DEditablePoint)
public int getColorCount()
ILcd3DMesh
getColorCount
in interface ILcd3DMesh
ILcd3DMesh.getColorSFCT(int, float[])
public void getVertexSFCT(int aIndex, ILcd3DEditablePoint aVertexSFCT)
ILcd3DMesh
getVertexSFCT
in interface ILcd3DMesh
aIndex
- the index of the vertex to be retrievedaVertexSFCT
- an ILcd3DEditablePoint to receive the vertex coordinatespublic void getNormalSFCT(int aIndex, ILcd3DEditablePoint aNormalSFCT)
ILcd3DMesh
getNormalSFCT
in interface ILcd3DMesh
aIndex
- the index of the normal vector to be retrievedaNormalSFCT
- an ILcd3DEditablePoint to receive the normal vector coordinatespublic void getTexCoordSFCT(int aIndex, ILcd2DEditablePoint aTexCoordSFCT)
ILcd3DMesh
getTexCoordSFCT
in interface ILcd3DMesh
aIndex
- the index of the texture coordinates to be retrievedaTexCoordSFCT
- an ILcd2DEditablePoint to receive the texture coordinatespublic void getColorSFCT(int aIndex, float[] aColorSFCT)
ILcd3DMesh
getColorSFCT
in interface ILcd3DMesh
aIndex
- the index of the color to be retrievedaColorSFCT
- a float array with a length of at least four, to receive the color componentspublic int getPrimitiveCount()
ILcd3DMesh
getPrimitiveCount
in interface ILcd3DMesh
ILcd3DMesh.getPrimitive(int)
public ILcd3DPrimitive getPrimitive(int aIndex)
ILcd3DMesh
getPrimitive
in interface ILcd3DMesh
aIndex
- the index of the requested primitiveTLcd3DPrimitiveType
public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public List<ILcd3DMesh> getMeshes()
ILcd3DMeshNode
getMeshes
in interface ILcd3DMeshNode
getMeshes
in class TLcdOpenFlightNode
null
public void accept(ALcdOpenFlightSceneVisitor aVisitor)
ILcdOpenFlightNode
aVisitor.visit(this)
.accept
in interface ILcdOpenFlightNode
accept
in class TLcdOpenFlightTransformableNode
aVisitor
- the visitor to acceptpublic ILcd3DMeshStyle getStyleForPrimitive(int aPrimitiveIndex)
ILcdStyled3DMesh
getStyleForPrimitive
in interface ILcdStyled3DMesh
aPrimitiveIndex
- the index of the requested primitive