public static class J3DIndexAccessor.J3DCopyIndexAccessor extends J3DIndexAccessor
This impl handles by-copy index storage.
J3DIndexAccessor.J3DCoordOnlyIndexAccessor, J3DIndexAccessor.J3DCopyIndexAccessor, J3DIndexAccessor.J3DRefIndexAccessor, J3DIndexAccessor.JOGLIndexAccessor| Modifier and Type | Field and Description |
|---|---|
protected boolean |
readColor
whether to read color indices
|
protected boolean |
readNormal
whether to read normal indices
|
protected boolean |
readTexCoord
whether to read texCoord indices
|
colorIndex, coordIndex, iga, indexCount, indexIndex, initialIndexIndex, jg, normalIndex, texCoordIndex, validIndexCount| Constructor and Description |
|---|
J3DIndexAccessor.J3DCopyIndexAccessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFormat(javax.media.j3d.IndexedGeometryArray iga)
Check if the class, storage type, and vertex format of iga is
compatible with this accessor implementation.
|
J3DIndexAccessor |
newInstance()
make a new instance of this accessor implementation
|
J3DIndexAccessor |
read()
Access the index storage and read the index at
J3DIndexAccessor.indexIndex. |
J3DIndexAccessor |
reset(javax.media.j3d.IndexedGeometryArray iga)
Reset this accessor so that the subsequent call to
J3DIndexAccessor.next() reads
the first valid vertex in ga. |
advance, checkFormat, componentIndicesSame, cons, cons, consAll, consAll, getNumImplementations, hasNext, hasNext, next, read, readRaw, reset, reset, resetImpl, seek, seekRawprotected boolean readTexCoord
protected boolean readColor
protected boolean readNormal
public J3DIndexAccessor.J3DCopyIndexAccessor()
public J3DIndexAccessor reset(javax.media.j3d.IndexedGeometryArray iga)
Reset this accessor so that the subsequent call to J3DIndexAccessor.next() reads
the first valid vertex in ga.
reset in class J3DIndexAccessoriga - the geometry, or null to clear the previous internal referencepublic J3DIndexAccessor read()
Access the index storage and read the index at J3DIndexAccessor.indexIndex.
Note: if J3DIndexAccessor.indexIndex is outside the legal bounds for the index
storage then the underlying access method will throw an exception
according to the storage type.
read in class J3DIndexAccessorpublic boolean checkFormat(javax.media.j3d.IndexedGeometryArray iga)
Check if the class, storage type, and vertex format of iga is compatible with this accessor implementation.
checkFormat in class J3DIndexAccessorpublic J3DIndexAccessor newInstance()
newInstance in class J3DIndexAccessor