Class TLcdOpenFlightVertex
java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlightVertex
Represents a single vertex. Has a position and an optional color, normal and
texture coordinates.
Please refer to the OpenFlight specification for more details on the semantics of this class and its properties.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionTLcdOpenFlightVertex
(double[] aPosition, float[] aColor, double[] aNormal, double[] aTexCoords) Creates a new vertex with the given attributes. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
getColor()
Returns the color of this vertex.int
int
getFlags()
double[]
Returns the normal vector of this vertex.double[]
Returns the position of this vertex.double[]
Returns the texture coordinates of this vertex.int
void
setColorNameIndex
(int aColorNameIndex) void
setFlags
(int aFlags) void
setVertexColorIndex
(int aVertexColorIndex)
-
Field Details
-
FLAGS_START_HARD_EDGE
public static final int FLAGS_START_HARD_EDGE- See Also:
-
FLAGS_NORMAL_FROZEN
public static final int FLAGS_NORMAL_FROZEN- See Also:
-
FLAGS_NO_COLOR
public static final int FLAGS_NO_COLOR- See Also:
-
FLAGS_PACKED_COLOR
public static final int FLAGS_PACKED_COLOR- See Also:
-
-
Constructor Details
-
TLcdOpenFlightVertex
public TLcdOpenFlightVertex(double[] aPosition, float[] aColor, double[] aNormal, double[] aTexCoords) Creates a new vertex with the given attributes. The position is required, the other attributes are allowed to be null.- Parameters:
aPosition
- an array of 3 doubles specifying the XYZ coordinates of the vertexaColor
- an array of 4 floats specifying an ABGR color for the vertexaNormal
- an array of 3 doubles specifying the normal vector of the vertexaTexCoords
- an array of 2 doubles specifying the texture coordinates of the vertex
-
-
Method Details
-
getPosition
public double[] getPosition()Returns the position of this vertex.- Returns:
- an array of 3 doubles specifying the XYZ coordinates of the vertex
-
getNormal
public double[] getNormal()Returns the normal vector of this vertex.- Returns:
- an array of 3 doubles specifying the normal vector of the vertex
-
getColor
public float[] getColor()Returns the color of this vertex.- Returns:
- an array of 4 floats specifying an ABGR color for the vertex
-
getTexCoords
public double[] getTexCoords()Returns the texture coordinates of this vertex.- Returns:
- an array of 2 doubles specifying the texture coordinates of the vertex
-
getColorNameIndex
public int getColorNameIndex() -
setColorNameIndex
public void setColorNameIndex(int aColorNameIndex) -
getFlags
public int getFlags() -
setFlags
public void setFlags(int aFlags) -
getVertexColorIndex
public int getVertexColorIndex() -
setVertexColorIndex
public void setVertexColorIndex(int aVertexColorIndex)
-