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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ALcdOpenFlightSceneVisitor aVisitor) Accepts an OpenFlight visitor.voidaddChild(ILcdOpenFlightNode aChild) Adds a child to this node.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.intReturns the number of colors in this meshvoidgetColorSFCT(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.intReturns the number of normal vectors in this meshvoidgetNormalSFCT(int aIndex, ILcd3DEditablePoint aNormalSFCT) Retrieves a vertex normal from the pool.getPrimitive(int aIndex) Retrieves a primitive from this mesh.intReturns the number of primitives in this meshgetStyleForPrimitive(int aPrimitiveIndex) Returns the style associated with the specified primitive.intReturns the number of texture coordinates in this meshvoidgetTexCoordSFCT(int aIndex, ILcd2DEditablePoint aTexCoordSFCT) Retrieves a pair of texture mapping coordinates from the pool.intReturns the number of vertices in this meshvoidgetVertexSFCT(int aIndex, ILcd3DEditablePoint aVertexSFCT) Retrieves a vertex position from the pool.Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
getTransformation, setTransformationMethods 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:TLcdOpenFlightNodeAdds a child to this node.- Overrides:
addChildin classTLcdOpenFlightNode- Parameters:
aChild- the ILcdOpenFlightNode to be added below this node
-
getVertexCount
public int getVertexCount()Description copied from interface:ILcd3DMeshReturns the number of vertices in this mesh- Specified by:
getVertexCountin interfaceILcd3DMesh- Returns:
- the number of vertices in this mesh
- See Also:
-
getNormalCount
public int getNormalCount()Description copied from interface:ILcd3DMeshReturns the number of normal vectors in this mesh- Specified by:
getNormalCountin interfaceILcd3DMesh- Returns:
- the number of normal vectors in this mesh
- See Also:
-
getTexCoordCount
public int getTexCoordCount()Description copied from interface:ILcd3DMeshReturns the number of texture coordinates in this mesh- Specified by:
getTexCoordCountin interfaceILcd3DMesh- Returns:
- the number of texture coordinates in this mesh
- See Also:
-
getColorCount
public int getColorCount()Description copied from interface:ILcd3DMeshReturns the number of colors in this mesh- Specified by:
getColorCountin interfaceILcd3DMesh- Returns:
- the number of colors in this mesh
- See Also:
-
getVertexSFCT
Description copied from interface:ILcd3DMeshRetrieves a vertex position from the pool.- Specified by:
getVertexSFCTin interfaceILcd3DMesh- Parameters:
aIndex- the index of the vertex to be retrievedaVertexSFCT- an ILcd3DEditablePoint to receive the vertex coordinates
-
getNormalSFCT
Description copied from interface:ILcd3DMeshRetrieves a vertex normal from the pool.- Specified by:
getNormalSFCTin 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:ILcd3DMeshRetrieves a pair of texture mapping coordinates from the pool.- Specified by:
getTexCoordSFCTin 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:ILcd3DMeshRetrieves a vertex color from the pool.- Specified by:
getColorSFCTin 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:ILcd3DMeshReturns the number of primitives in this mesh- Specified by:
getPrimitiveCountin interfaceILcd3DMesh- Returns:
- the number of primitives in this mesh
- See Also:
-
getPrimitive
Description copied from interface:ILcd3DMeshRetrieves 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:
getPrimitivein interfaceILcd3DMesh- Parameters:
aIndex- the index of the requested primitive- Returns:
- an ILcd3DPrimitive
- See Also:
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
getMeshes
Description copied from interface:ILcd3DMeshNodeReturns 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:
getMeshesin interfaceILcd3DMeshNode- Overrides:
getMeshesin classTLcdOpenFlightNode- Returns:
- a list of 3D meshes, possibly empty but never
null
-
accept
Description copied from interface:ILcdOpenFlightNodeAccepts an OpenFlight visitor. A typical implementation of this method should callaVisitor.visit(this).- Specified by:
acceptin interfaceILcdOpenFlightNode- Overrides:
acceptin classTLcdOpenFlightTransformableNode- Parameters:
aVisitor- the visitor to accept
-
getStyleForPrimitive
Description copied from interface:ILcdStyled3DMeshReturns the style associated with the specified primitive.- Specified by:
getStyleForPrimitivein interfaceILcdStyled3DMesh- Parameters:
aPrimitiveIndex- the index of the requested primitive- Returns:
- an ILcd3DMeshStyle
-