public class TLcdOpenFlightVertex extends Object
Please refer to the OpenFlight specification for more details on the semantics of this class and its properties.
Modifier and Type | Field and Description |
---|---|
static int |
FLAGS_NO_COLOR |
static int |
FLAGS_NORMAL_FROZEN |
static int |
FLAGS_PACKED_COLOR |
static int |
FLAGS_START_HARD_EDGE |
Constructor and Description |
---|
TLcdOpenFlightVertex(double[] aPosition,
float[] aColor,
double[] aNormal,
double[] aTexCoords)
Creates a new vertex with the given attributes.
|
Modifier and Type | Method and Description |
---|---|
float[] |
getColor()
Returns the color of this vertex.
|
int |
getColorNameIndex() |
int |
getFlags() |
double[] |
getNormal()
Returns the normal vector of this vertex.
|
double[] |
getPosition()
Returns the position of this vertex.
|
double[] |
getTexCoords()
Returns the texture coordinates of this vertex.
|
int |
getVertexColorIndex() |
void |
setColorNameIndex(int aColorNameIndex) |
void |
setFlags(int aFlags) |
void |
setVertexColorIndex(int aVertexColorIndex) |
public static final int FLAGS_START_HARD_EDGE
public static final int FLAGS_NORMAL_FROZEN
public static final int FLAGS_NO_COLOR
public static final int FLAGS_PACKED_COLOR
public TLcdOpenFlightVertex(double[] aPosition, float[] aColor, double[] aNormal, double[] aTexCoords)
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 vertexpublic double[] getPosition()
public double[] getNormal()
public float[] getColor()
public double[] getTexCoords()
public int getColorNameIndex()
public void setColorNameIndex(int aColorNameIndex)
public int getFlags()
public void setFlags(int aFlags)
public int getVertexColorIndex()
public void setVertexColorIndex(int aVertexColorIndex)