|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.GeometryRetained
javax.media.j3d.GeometryArrayRetained
javax.media.j3d.IndexedGeometryArrayRetained
abstract class IndexedGeometryArrayRetained
The IndexedGeometryArray object contains arrays of positional coordinates, colors, normals and/or texture coordinates that describe point, line, or surface geometry. It is extended to create the various primitive types (e.g., lines, triangle_strips, etc.)
Field Summary | |
---|---|
(package private) int[] |
compileIndexCount
|
(package private) int[] |
compileIndexOffset
|
(package private) int[] |
indexColor
|
(package private) int[] |
indexCoord
|
(package private) int |
indexCount
|
(package private) int[] |
indexNormal
|
(package private) int[][] |
indexTexCoord
|
(package private) int[][] |
indexVertexAttr
|
(package private) int |
initialIndexIndex
|
(package private) int |
maxColorIndex
|
(package private) int |
maxCoordIndex
|
(package private) int |
maxNormalIndex
|
(package private) int[] |
maxTexCoordIndices
|
(package private) int[] |
maxVertexAttrIndices
|
(package private) int |
validIndexCount
|
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
IndexedGeometryArrayRetained()
|
Method Summary | |
---|---|
(package private) void |
buildGA(Canvas3D cv,
RenderAtom ra,
boolean isNonUniformScale,
boolean updateAlpha,
float alpha,
boolean ignoreVertexColors,
Transform3D xform,
Transform3D nxform)
|
(package private) GeometryArrayRetained |
cloneNonIndexedGeometry()
|
(package private) int |
computeMaxIndex(int initial,
int count,
int[] indices)
|
(package private) int |
computeMaxIndexWithCheck(int initial,
int count,
int[] indices)
|
(package private) void |
createIndexedGeometryArrayData(int indexCount)
|
(package private) void |
doColorCheck(int newMax)
|
(package private) void |
doCoordCheck(int newMax)
|
(package private) void |
doErrorCheck(int newMax)
|
(package private) int |
doIndexCheck(int index,
int maxIndex,
int[] indices,
int dataValue)
|
(package private) int |
doIndicesCheck(int index,
int maxIndex,
int[] indices,
int[] newIndices)
|
(package private) void |
doNormalCheck(int newMax)
|
(package private) void |
doPostUpdaterUpdate()
trigger from GeometryArrayRetained#updateData() to recompute maxCoordIndex and perform index integrity checks |
(package private) void |
doTexCoordCheck(int newMax,
int texCoordSet)
|
(package private) void |
doVertexAttrCheck(int newMax,
int vertexAttrNum)
|
(package private) void |
execute(Canvas3D cv,
RenderAtom ra,
boolean isNonUniformScale,
boolean updateAlpha,
float alpha,
int screen,
boolean ignoreVertexColors)
|
(package private) int |
getColorIndex(int index)
Retrieves the color index associated with the vertex at the specified index for this object. |
(package private) void |
getColorIndices(int index,
int[] colorIndices)
Retrieves the color indices associated with the vertices starting at the specified index for this object. |
(package private) int |
getCoordinateIndex(int index)
Retrieves the coordinate index associated with the vertex at the specified index for this object. |
(package private) void |
getCoordinateIndices(int index,
int[] coordinateIndices)
Retrieves the coordinate indices associated with the vertices starting at the specified index for this object. |
(package private) int[] |
getCoordIndicesRef()
Returns a reference to the coordinate indices associated with the vertices |
(package private) int |
getIndexCount()
Gets current number of indices |
(package private) int |
getIndexCount(int id)
Gets current number of indices |
(package private) int |
getInitialIndexIndex()
|
(package private) int |
getNormalIndex(int index)
Retrieves the normal index associated with the vertex at the specified index for this object. |
(package private) void |
getNormalIndices(int index,
int[] normalIndices)
Retrieves the normal indices associated with the vertices starting at the specified index for this object. |
(package private) int |
getTextureCoordinateIndex(int texCoordSet,
int index)
Retrieves the texture coordinate index associated with the vertex at the specified index for this object. |
(package private) void |
getTextureCoordinateIndices(int texCoordSet,
int index,
int[] texCoordIndices)
Retrieves the texture coordinate indices associated with the vertices starting at the specified index for this object. |
(package private) int |
getValidIndexCount()
|
(package private) int |
getVertexAttrIndex(int vertexAttrNum,
int index)
Retrieves the vertex attribute index associated with the vertex at the specified index for the specified vertex attribute number for this object. |
(package private) void |
getVertexAttrIndices(int vertexAttrNum,
int index,
int[] vertexAttrIndices)
Retrieves the vertex attribute indices associated with the vertices starting at the specified index for the specified vertex attribute number for this object. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) boolean |
isWriteStatic()
|
(package private) void |
mergeGeometryArrays(java.util.ArrayList list)
|
(package private) void |
setColorIndex(int index,
int colorIndex)
Sets the color index associated with the vertex at the specified index for this object. |
(package private) void |
setColorIndices(int index,
int[] colorIndices)
Sets the color indices associated with the vertices starting at the specified index for this object. |
(package private) void |
setCoordinateIndex(int index,
int coordinateIndex)
Sets the coordinate index associated with the vertex at the specified index for this object. |
(package private) void |
setCoordinateIndices(int index,
int[] coordinateIndices)
Sets the coordinate indices associated with the vertices starting at the specified index for this object. |
(package private) void |
setCoordIndicesRef(int[] coordinateIndices)
Sets the coordinate indices by reference to the specified array |
(package private) void |
setInitialIndexIndex(int initialIndexIndex)
|
(package private) void |
setNormalIndex(int index,
int normalIndex)
Sets the normal index associated with the vertex at the specified index for this object. |
(package private) void |
setNormalIndices(int index,
int[] normalIndices)
Sets the normal indices associated with the vertices starting at the specified index for this object. |
(package private) void |
setTextureCoordinateIndex(int texCoordSet,
int index,
int texCoordIndex)
Sets the texture coordinate index associated with the vertex at the specified index for this object. |
(package private) void |
setTextureCoordinateIndices(int texCoordSet,
int index,
int[] texCoordIndices)
Sets the texture coordinate indices associated with the vertices starting at the specified index for this object. |
(package private) void |
setValidIndexCount(int validIndexCount)
|
(package private) void |
setVertexAttrIndex(int vertexAttrNum,
int index,
int vertexAttrIndex)
Sets the vertex attribute index associated with the vertex at the specified index for the specified vertex attribute number for this object. |
(package private) void |
setVertexAttrIndices(int vertexAttrNum,
int index,
int[] vertexAttrIndices)
Sets the vertex attribute indices associated with the vertices starting at the specified index for the specified vertex attribute number for this object. |
Methods inherited from class javax.media.j3d.GeometryRetained |
---|
addUser, canBeInDisplayList, computeCentroid, decrComputeGeoBounds, doSetLive, getClassType, incrComputeGeoBounds, intersect, intersect, intersect, intersect, intersect, isEquivalenceClass, removeUser, storeInterestData, updateObject |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clone, copyMirrorUsers, createMirrorObject, decRefCnt, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, initMirrorObject, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, updateMirrorObject |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int[] indexCoord
int[] indexColor
int[] indexNormal
int[][] indexTexCoord
int[][] indexVertexAttr
int indexCount
int initialIndexIndex
int validIndexCount
int[] compileIndexCount
int[] compileIndexOffset
int maxCoordIndex
int maxColorIndex
int maxNormalIndex
int[] maxTexCoordIndices
int[] maxVertexAttrIndices
Constructor Detail |
---|
IndexedGeometryArrayRetained()
Method Detail |
---|
void createIndexedGeometryArrayData(int indexCount)
GeometryArrayRetained cloneNonIndexedGeometry()
int getIndexCount()
void doErrorCheck(int newMax)
void doCoordCheck(int newMax)
void doColorCheck(int newMax)
void doNormalCheck(int newMax)
void doTexCoordCheck(int newMax, int texCoordSet)
void doVertexAttrCheck(int newMax, int vertexAttrNum)
final void setCoordinateIndex(int index, int coordinateIndex)
index
- the vertex indexcoordinateIndex
- the new coordinate indexint doIndexCheck(int index, int maxIndex, int[] indices, int dataValue)
int doIndicesCheck(int index, int maxIndex, int[] indices, int[] newIndices)
final void setCoordinateIndices(int index, int[] coordinateIndices)
index
- the vertex indexcoordinateIndices
- an array of coordinate indicesfinal void setCoordIndicesRef(int[] coordinateIndices)
coordinateIndices
- an array of coordinate indicesfinal void doPostUpdaterUpdate()
final void setColorIndex(int index, int colorIndex)
index
- the vertex indexcolorIndex
- the new color indexfinal void setColorIndices(int index, int[] colorIndices)
index
- the vertex indexcolorIndices
- an array of color indicesfinal void setNormalIndex(int index, int normalIndex)
index
- the vertex indexnormalIndex
- the new normal indexfinal void setNormalIndices(int index, int[] normalIndices)
index
- the vertex indexnormalIndices
- an array of normal indicesfinal void setTextureCoordinateIndex(int texCoordSet, int index, int texCoordIndex)
texCoordSet
- the texture coordinate setindex
- the vertex indextexCoordIndex
- the new texture coordinate indexfinal void setTextureCoordinateIndices(int texCoordSet, int index, int[] texCoordIndices)
texCoordSet
- the texture coordinate setindex
- the vertex indextexCoordIndices
- an array of texture coordinate indicesvoid setVertexAttrIndex(int vertexAttrNum, int index, int vertexAttrIndex)
void setVertexAttrIndices(int vertexAttrNum, int index, int[] vertexAttrIndices)
final int getCoordinateIndex(int index)
index
- the vertex index
final void getCoordinateIndices(int index, int[] coordinateIndices)
index
- the vertex indexcoordinateIndices
- array that will receive the coordinate indicesfinal int[] getCoordIndicesRef()
final int getColorIndex(int index)
index
- the vertex index
final void getColorIndices(int index, int[] colorIndices)
index
- the vertex indexcolorIndices
- array that will receive the color indicesfinal int getNormalIndex(int index)
index
- the vertex index
final void getNormalIndices(int index, int[] normalIndices)
index
- the vertex indexnormalIndices
- array that will receive the normal indicesfinal int getTextureCoordinateIndex(int texCoordSet, int index)
texCoordSet
- the texture coordinate setindex
- the vertex index
final void getTextureCoordinateIndices(int texCoordSet, int index, int[] texCoordIndices)
texCoordSet
- the texture coordinate setindex
- the vertex indextexCoordIndices
- array that will receive the texture coordinate indicesint getVertexAttrIndex(int vertexAttrNum, int index)
void getVertexAttrIndices(int vertexAttrNum, int index, int[] vertexAttrIndices)
void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)
execute
in class GeometryArrayRetained
void buildGA(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, boolean ignoreVertexColors, Transform3D xform, Transform3D nxform)
buildGA
in class GeometryArrayRetained
void mergeGeometryArrays(java.util.ArrayList list)
mergeGeometryArrays
in class GeometryArrayRetained
boolean isWriteStatic()
isWriteStatic
in class GeometryArrayRetained
int getIndexCount(int id)
int computeMaxIndex(int initial, int count, int[] indices)
int computeMaxIndexWithCheck(int initial, int count, int[] indices)
void setValidIndexCount(int validIndexCount)
void setInitialIndexIndex(int initialIndexIndex)
int getInitialIndexIndex()
int getValidIndexCount()
void handleFrequencyChange(int bit)
handleFrequencyChange
in class GeometryArrayRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |