public abstract class IndexedBufferGeometry extends BufferGeometry
The implementation assumes a single index is used to describe all the information needed for rendering. An index will grab the same index from vertex, normal, colour and texture arrays.
| Modifier and Type | Field and Description |
|---|---|
protected IntBuffer |
indexBuffer
Buffer holding the current index list
|
protected int[] |
indices
The indices defining the geometry types.
|
protected int |
numIndices
The number of valid values to read from the array
|
ATTRIB_CLEAR, ATTRIB_MASK, attribIds, ATTRIBS, attributes, COLOR_3, COLOR_4, COLOR_CLEAR, COLOR_MASK, COLOR2, COLOR2_CLEAR, COLOR2_MASK, color2Buffer, colorBuffer, COORDINATE_2, COORDINATE_3, COORDINATE_4, COORDINATE_CLEAR, COORDINATE_MASK, EDGE_CLEAR, EDGE_MASK, EDGES, FOG, FOG_CLEAR, FOG_MASK, fogBuffer, NORMAL_CLEAR, normalBuffer, NORMALS, numCoords, numTextureArrays, numTextureSets, TEXTURE_CLEAR, TEXTURE_COORDINATE_1, TEXTURE_COORDINATE_2, TEXTURE_COORDINATE_3, TEXTURE_COORDINATE_4, TEXTURE_COORDINATE_MULTI, TEXTURE_COORDINATE_SINGLE, TEXTURE_MASK, TEXTURE_SET_AVAILABLE, TEXTURE_SET_CLEAR, textureBuffer, textureSets, textureTypes, vertexBuffer, vertexFormat, wkPolygonbounds, implicitBounds, internalUpdater, INVALID_BOUNDS, lastParentList, parentList, pickFlags, validAlphalastParent, liveCountalive, LISTENER_SET_TIMING_ERR_PROP, updateHandlerCOLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECTCUSTOM_PICK_TYPE, GROUP_PICK_TYPE, LEAF_PICK_TYPE, SINGLE_PICK_TYPE| Constructor and Description |
|---|
IndexedBufferGeometry() |
| Modifier and Type | Method and Description |
|---|---|
protected IntBuffer |
createBuffer(int size)
Convenience method to allocate a NIO buffer for the vertex handling that
handles floats.
|
void |
getIndices(int[] values)
Get the sizes of the valid indexs.
|
int |
getValidIndexCount()
Get the number of valid indexs that are defined for this geometry.
|
protected boolean |
isVisible()
Check to see if this geometry is making the geometry visible or
not.
|
void |
setIndices(int[] indexList,
int num)
Set the number of valid indexs to use.
|
clearVertexState, getColors, getFogCoordinates, getNormals, getSecondaryColors, getTextureCoordinates, getValidVertexCount, getVertexType, getVertices, initPolygonDetails, is2D, ray3DQuadChecked, ray3DTriangleChecked, recomputeBounds, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setColors, setFogCoordinates, setLive, setNormals, setSecondaryColors, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureSetMap, setTextureSetMap, setValidVertexCount, setVertexState, setVertices, setVertices, updateBoundsaddParent, boundsChanged, checkPickMask, getBounds, getPickableBounds, getPickMask, getPickTargetType, hasTransparency, markBoundsDirty, pickBatch, pickLineRay, pickLineSegment, pickSingle, removeParent, setBounds, setPickMaskaddParent, getParents, numParents, removeParentcheckForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUpdateHandler, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasTransparency, rendercompareToprotected int[] indices
protected int numIndices
protected IntBuffer indexBuffer
protected boolean isVisible()
isVisible in class BufferGeometrypublic void setIndices(int[] indexList,
int num)
throws InvalidWriteTimingException
indexList - The array of indices to setnum - The number of valid items to read from the arrayIllegalArgumentException - Invalid total index count or
individual index count < 3InvalidWriteTimingException - An attempt was made to write outside
of the NodeUpdateListener bounds changed callback methodpublic int getValidIndexCount()
public void getIndices(int[] values)
values - An array to copy the index values intoprotected IntBuffer createBuffer(int size)
size - The number of floats to have in the array
Copyright © 2001 - 2015 j3d.org