public static class J3DIndexAccessor.J3DRefIndexAccessor extends J3DIndexAccessor
This impl handles by-ref index storage, which is necessarily coord-index-only.
J3DIndexAccessor.J3DCoordOnlyIndexAccessor, J3DIndexAccessor.J3DCopyIndexAccessor, J3DIndexAccessor.J3DRefIndexAccessor, J3DIndexAccessor.JOGLIndexAccessor
Modifier and Type | Field and Description |
---|---|
protected int[] |
coordIndices
reference to the coord indices array
|
colorIndex, coordIndex, iga, indexCount, indexIndex, initialIndexIndex, jg, normalIndex, texCoordIndex, validIndexCount
Constructor and Description |
---|
J3DIndexAccessor.J3DRefIndexAccessor() |
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, seekRaw
public J3DIndexAccessor.J3DRefIndexAccessor()
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 J3DIndexAccessor
iga
- 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 J3DIndexAccessor
public 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 J3DIndexAccessor
public J3DIndexAccessor newInstance()
newInstance
in class J3DIndexAccessor