public abstract static class J3DPrimitiveIterator.J3DStripIterator extends J3DPrimitiveIterator
This is a base impl for stripped geometry.
J3DPrimitiveIterator.J3DLineStripIterator, J3DPrimitiveIterator.J3DStripIterator, J3DPrimitiveIterator.J3DTriangleFanIterator, J3DPrimitiveIterator.J3DTriangleStripIterator, J3DPrimitiveIterator.JOGLQuadStripIterator
Modifier and Type | Field and Description |
---|---|
protected int[] |
arrayCount
array of strip lengths (number of vertices per strip)
|
color, component, coord, enabledVertexCount, ga, jg, loop, normal, numEnabledStrips, numStrips, pickB, pickU, prim, primCount, primInStrip, primsInStrip, strip, texCoord, validVertexCount, vertexAccessor, vertsInStrip, vertsPerPrim, vertsPerStripPrim
Constructor and Description |
---|
J3DPrimitiveIterator.J3DStripIterator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
advanceToNextStrip()
Advance
J3DPrimitiveIterator.vertexAccessor so that the next vertex accessed will
be the first one in the next enabled strip. |
protected void |
firstInStrip()
Implementation of
next() in the case that a new strip has just
started. |
J3DPrimitiveIterator |
next()
read the next primitive
|
protected abstract void |
nextInStrip()
Implementation of
next() except for the case that a new strip
has just started. |
J3DPrimitiveIterator |
reset(javax.media.j3d.GeometryArray ga,
boolean... enableComponent)
Reset this iterator so that the subsequent call to
J3DPrimitiveIterator.next() reads
the first primitive in ga. |
J3DPrimitiveIterator |
reset(JOGLGeometry jg,
boolean... enableComponent)
|
protected void |
resetImpl(int numStrips,
int vertsPerStripPrim)
resetImpl(int, int, int) with numEnabledStrips =
numStrips. |
protected void |
resetImpl(int numStrips,
int numEnabledStrips,
int vertsPerStripPrim)
Common impl of
reset(GeometryArray, boolean...) and reset(JOGLGeometry, boolean...) . |
checkFormat, checkFormat, cons, cons, consAll, consAll, copyFromAccessor, dump, getNumImplementations, getPrimName, getPrimsName, hasNext, hasNext, newInstance, pick, pickLine, pickPoint, pickQuad, pickTriangle, reset, resetImpl, swap
protected int[] arrayCount
public J3DPrimitiveIterator.J3DStripIterator()
public J3DPrimitiveIterator reset(javax.media.j3d.GeometryArray ga, boolean... enableComponent)
Reset this iterator so that the subsequent call to J3DPrimitiveIterator.next()
reads
the first primitive in ga.
reset
in class J3DPrimitiveIterator
ga
- the geometry, or null to clear the previous internal referenceenableComponent
- see J3DVertexAccessor.reset(GeometryArray,
boolean...)
public J3DPrimitiveIterator reset(JOGLGeometry jg, boolean... enableComponent)
reset
in class J3DPrimitiveIterator
protected void resetImpl(int numStrips, int numEnabledStrips, int vertsPerStripPrim)
Common impl of reset(GeometryArray, boolean...)
and reset(JOGLGeometry, boolean...)
.
protected void resetImpl(int numStrips, int vertsPerStripPrim)
resetImpl(int, int, int)
with numEnabledStrips =
numStrips.
public J3DPrimitiveIterator next()
next
in class J3DPrimitiveIterator
protected boolean advanceToNextStrip()
Advance J3DPrimitiveIterator.vertexAccessor
so that the next vertex accessed will
be the first one in the next enabled strip.
Strips with negative arrayCount
will be skipped, supporting
the JOGLGeometry
strip-disabling feature.
This can only be called before starting to iterate the fisrst strip or immediately after the end of iterating a strip.
protected void firstInStrip()
Implementation of next()
in the case that a new strip has just
started.
Default impl loads next J3DPrimitiveIterator.vertsPerPrim
verts in order.
protected abstract void nextInStrip()
Implementation of next()
except for the case that a new strip
has just started.