Class TLcdOpenFlightGeometryNode
java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightGeometryNode
- All Implemented Interfaces:
ILcd3DMesh
,ILcd3DMeshNode
,ILcdStyled3DMesh
,ILcdOpenFlightNode
,ILcdBounded
- Direct Known Subclasses:
TLcdOpenFlightDegreeOfFreedomNode
,TLcdOpenFlightGroupNode
,TLcdOpenFlightLevelOfDetailNode
,TLcdOpenFlightObjectNode
,TLcdOpenFlightSubFaceNode
public class TLcdOpenFlightGeometryNode
extends TLcdOpenFlightTransformableNode
implements ILcdStyled3DMesh
Base class for nodes that represent geometry using nested face nodes.
Implements ILcd3DMesh for facilitate painting.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ALcdOpenFlightSceneVisitor aVisitor) Accepts an OpenFlight visitor.void
addChild
(ILcdOpenFlightNode aChild) Adds a child to this node.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.int
Returns the number of colors in this meshvoid
getColorSFCT
(int aIndex, float[] aColorSFCT) Retrieves a vertex color from the pool.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
Returns the number of normal vectors in this meshvoid
getNormalSFCT
(int aIndex, ILcd3DEditablePoint aNormalSFCT) Retrieves a vertex normal from the pool.getPrimitive
(int aIndex) Retrieves a primitive from this mesh.int
Returns the number of primitives in this meshgetStyleForPrimitive
(int aPrimitiveIndex) Returns the style associated with the specified primitive.int
Returns the number of texture coordinates in this meshvoid
getTexCoordSFCT
(int aIndex, ILcd2DEditablePoint aTexCoordSFCT) Retrieves a pair of texture mapping coordinates from the pool.int
Returns the number of vertices in this meshvoid
getVertexSFCT
(int aIndex, ILcd3DEditablePoint aVertexSFCT) Retrieves a vertex position from the pool.Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
getTransformation, setTransformation
Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
getChild, getChildCount, getChildren, getID, getParent, setID, setParent, toString
-
Constructor Details
-
TLcdOpenFlightGeometryNode
-
-
Method Details
-
addChild
Description copied from class:TLcdOpenFlightNode
Adds a child to this node.- Overrides:
addChild
in classTLcdOpenFlightNode
- Parameters:
aChild
- the ILcdOpenFlightNode to be added below this node
-
getVertexCount
public int getVertexCount()Description copied from interface:ILcd3DMesh
Returns the number of vertices in this mesh- Specified by:
getVertexCount
in interfaceILcd3DMesh
- Returns:
- the number of vertices in this mesh
- See Also:
-
getNormalCount
public int getNormalCount()Description copied from interface:ILcd3DMesh
Returns the number of normal vectors in this mesh- Specified by:
getNormalCount
in interfaceILcd3DMesh
- Returns:
- the number of normal vectors in this mesh
- See Also:
-
getTexCoordCount
public int getTexCoordCount()Description copied from interface:ILcd3DMesh
Returns the number of texture coordinates in this mesh- Specified by:
getTexCoordCount
in interfaceILcd3DMesh
- Returns:
- the number of texture coordinates in this mesh
- See Also:
-
getColorCount
public int getColorCount()Description copied from interface:ILcd3DMesh
Returns the number of colors in this mesh- Specified by:
getColorCount
in interfaceILcd3DMesh
- Returns:
- the number of colors in this mesh
- See Also:
-
getVertexSFCT
Description copied from interface:ILcd3DMesh
Retrieves a vertex position from the pool.- Specified by:
getVertexSFCT
in interfaceILcd3DMesh
- Parameters:
aIndex
- the index of the vertex to be retrievedaVertexSFCT
- an ILcd3DEditablePoint to receive the vertex coordinates
-
getNormalSFCT
Description copied from interface:ILcd3DMesh
Retrieves a vertex normal from the pool.- Specified by:
getNormalSFCT
in interfaceILcd3DMesh
- Parameters:
aIndex
- the index of the normal vector to be retrievedaNormalSFCT
- an ILcd3DEditablePoint to receive the normal vector coordinates
-
getTexCoordSFCT
Description copied from interface:ILcd3DMesh
Retrieves a pair of texture mapping coordinates from the pool.- Specified by:
getTexCoordSFCT
in interfaceILcd3DMesh
- Parameters:
aIndex
- the index of the texture coordinates to be retrievedaTexCoordSFCT
- an ILcd2DEditablePoint to receive the texture coordinates
-
getColorSFCT
public void getColorSFCT(int aIndex, float[] aColorSFCT) Description copied from interface:ILcd3DMesh
Retrieves a vertex color from the pool.- Specified by:
getColorSFCT
in interfaceILcd3DMesh
- Parameters:
aIndex
- the index of the color to be retrievedaColorSFCT
- a float array with a length of at least four, to receive the color components
-
getPrimitiveCount
public int getPrimitiveCount()Description copied from interface:ILcd3DMesh
Returns the number of primitives in this mesh- Specified by:
getPrimitiveCount
in interfaceILcd3DMesh
- Returns:
- the number of primitives in this mesh
- See Also:
-
getPrimitive
Description copied from interface:ILcd3DMesh
Retrieves a primitive from this mesh. A primitive can be a point, a line, a triangle, or any of the other types defined in TLcd3DPrimitiveType.- Specified by:
getPrimitive
in interfaceILcd3DMesh
- Parameters:
aIndex
- the index of the requested primitive- Returns:
- an ILcd3DPrimitive
- See Also:
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
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 ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
getMeshes
Description copied from interface:ILcd3DMeshNode
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.- Specified by:
getMeshes
in interfaceILcd3DMeshNode
- Overrides:
getMeshes
in classTLcdOpenFlightNode
- Returns:
- a list of 3D meshes, possibly empty but never
null
-
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 classTLcdOpenFlightTransformableNode
- Parameters:
aVisitor
- the visitor to accept
-
getStyleForPrimitive
Description copied from interface:ILcdStyled3DMesh
Returns the style associated with the specified primitive.- Specified by:
getStyleForPrimitive
in interfaceILcdStyled3DMesh
- Parameters:
aPrimitiveIndex
- the index of the requested primitive- Returns:
- an ILcd3DMeshStyle
-