Class TLspVertexArrayFactory
java.lang.Object
com.luciad.view.lightspeed.services.vertexarray.TLspVertexArrayFactory
A factory class that creates
ILspVertexArray
instances.- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILspVertexArray
createInterleavedArray
(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.static ILspVertexArray
createInterleavedArray
(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.static ILspIndexedVertexArray
createInterleavedIndexedArray
(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.static ILspIndexedVertexArray
createInterleavedIndexedArray
(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.static ILspIndexedVertexArray
createInterleavedIndexedMultiArray
(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer[] aElementArrays, int[] aIndexCounts, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglMultiDrawElements()
.static ILspNonIndexedVertexArray
createInterleavedNonIndexedArray
(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.static ILspNonIndexedVertexArray
createInterleavedNonIndexedArray
(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.static List
<ILspVertexAttribute> createInterleavedVertexFormat
(int aGLInterleavedArrayFormat) Creates a list ofILspVertexAttribute
describing a vertex attribute layout as used withglInterleavedArrays()
.
-
Method Details
-
createInterleavedIndexedArray
public static ILspIndexedVertexArray createInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.- Parameters:
aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
aElementArray
- the element array to be associated with the vertex arrayaIndexCount
- the number of indicesaPrimitiveType
- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedIndexedMultiArray
public static ILspIndexedVertexArray createInterleavedIndexedMultiArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer[] aElementArrays, int[] aIndexCounts, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglMultiDrawElements()
.- Parameters:
aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
aElementArrays
- the element arrays to be associated with the vertex arrayaIndexCounts
- the number of indices in each of the element arraysaPrimitiveType
- the primitive type to be associated with the element arrays- Returns:
- a new
ILspVertexArray
-
createInterleavedIndexedArray
public static ILspIndexedVertexArray createInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.- Parameters:
aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaCoordinateOrigin
- the coordinate originaGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
aElementArray
- the element array to be associated with the vertex arrayaIndexCount
- the number of indices in the element arrayaPrimitiveType
- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedNonIndexedArray
public static ILspNonIndexedVertexArray createInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.- Parameters:
aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
aPrimitiveType
- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedNonIndexedArray
public static ILspNonIndexedVertexArray createInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.- Parameters:
aBuffer
- the buffer containing vertex dataaNbVertices
- the number of vertices in the bufferaCoordinateOrigin
- the coordinate originaGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
aPrimitiveType
- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedArray
public static ILspVertexArray createInterleavedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.- Parameters:
aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
- Returns:
- a new
ILspVertexArray
-
createInterleavedArray
public static ILspVertexArray createInterleavedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat) Creates anILspVertexArray
with the specified data and a vertex attribute layout as used withglInterleavedArrays()
.- Parameters:
aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaCoordinateOrigin
- the coordinate originaGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
- Returns:
- a new
ILspVertexArray
-
createInterleavedVertexFormat
public static List<ILspVertexAttribute> createInterleavedVertexFormat(int aGLInterleavedArrayFormat) Creates a list ofILspVertexAttribute
describing a vertex attribute layout as used withglInterleavedArrays()
.- Parameters:
aGLInterleavedArrayFormat
- one of the vertex array format constants accepted byglInterleavedArrays()
, e.g.GL_T2F_N3F_V3F
- Returns:
- a list of corresponding vertex attributes
-