|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.SceneGraphObject org.j3d.aviatrix3d.NodeComponent org.j3d.aviatrix3d.Geometry org.j3d.aviatrix3d.VertexGeometry org.j3d.aviatrix3d.IndexedVertexGeometry org.j3d.aviatrix3d.IndexedLineStripArray
public class IndexedLineStripArray
An OpenGL LineStripArray.
Part of the optimisation we make is to only copy into the underlying structures the exact number of coordinates, normals etc that are needed. To know this number, we need to know how many coordinates exist before attempting to set anything else. When constructing, or updating, geometry, you should always make sure that you first set the vertex list, then the sizing information for the strip or fan counts, and then set normals as needed.
Internationalisation Resource Names
Field Summary | |
---|---|
protected int |
numStripIndicesUsed
The number of indices required for the strip geometry |
Fields inherited from class org.j3d.aviatrix3d.IndexedVertexGeometry |
---|
indexBuffer, indices, numIndices, numIndicesUsed, vboElementIdMap |
Fields inherited from class org.j3d.aviatrix3d.Geometry |
---|
bounds, implicitBounds, internalUpdater, INVALID_BOUNDS, lastParentList, parentList, pickFlags, validAlpha |
Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
---|
lastParent, liveCount |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Fields inherited from interface org.j3d.aviatrix3d.picking.PickableObject |
---|
COLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECT |
Fields inherited from interface org.j3d.aviatrix3d.picking.PickTarget |
---|
CUSTOM_PICK_TYPE, GROUP_PICK_TYPE, LEAF_PICK_TYPE, SINGLE_PICK_TYPE |
Constructor Summary | |
---|---|
IndexedLineStripArray()
Constructs a LineStripArray with default values. |
|
IndexedLineStripArray(boolean useVbo,
int vboHint)
Constructs an instance. |
Method Summary | |
---|---|
int |
compareTo(IndexedLineStripArray ta)
Compares this object with the specified object for order. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(IndexedLineStripArray ta)
Compares this object with the specified object to check for equivalence. |
boolean |
equals(java.lang.Object o)
Compare this object for equality to the given object. |
void |
getStripCount(int[] values)
Get the sizes of the valid strips. |
int |
getValidStripCount()
Get the number of valid strips that are defined for this geometry. |
protected boolean |
isVisible()
Check to see if this geometry is making the geometry visible or not. |
protected void |
recomputeBounds()
Internal method to recalculate the implicit bounds of this Node. |
void |
render(javax.media.opengl.GL gl)
Issue ogl commands needed for this renderable object. |
void |
setStripCount(int[] counts,
int num)
Set the number of valid strips to use. |
Methods inherited from class org.j3d.aviatrix3d.IndexedVertexGeometry |
---|
cleanup, createBuffer, fillBufferData, getIndices, getValidIndexCount, setIndices, setVBOEnabled, setVertexStateVBO |
Methods inherited from class org.j3d.aviatrix3d.Geometry |
---|
addParent, boundsChanged, checkPickMask, getBounds, getPickableBounds, getPickMask, getPickTargetType, hasTransparency, markBoundsDirty, pickBatch, pickLineRay, pickLineSegment, pickSingle, removeParent, setBounds, setPickMask |
Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
---|
addParent, getParents, numParents, removeParent |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.j3d.aviatrix3d.rendering.GeometryRenderable |
---|
hasTransparency |
Field Detail |
---|
protected int numStripIndicesUsed
Constructor Detail |
---|
public IndexedLineStripArray()
public IndexedLineStripArray(boolean useVbo, int vboHint)
useVbo
- Should we use vertex buffer objectsvboHint
- Hints for how to setup VBO. Valid values are VBO_HINT_*Method Detail |
---|
protected boolean isVisible()
isVisible
in class IndexedVertexGeometry
protected void recomputeBounds()
recomputeBounds
in class IndexedVertexGeometry
public void render(javax.media.opengl.GL gl)
gl
- The gl context to draw withpublic int compareTo(java.lang.Object o) throws java.lang.ClassCastException
o
- The objec to be compared
java.lang.ClassCastException
- The specified object's type prevents it from
being compared to this Objectpublic boolean equals(java.lang.Object o)
equals
in interface Renderable
equals
in class java.lang.Object
o
- The object to be compared
public void setStripCount(int[] counts, int num) throws java.lang.IllegalArgumentException, InvalidWriteTimingException
counts
- The array of countsnum
- The number of valid items to read from the array
java.lang.IllegalArgumentException
- Invalid total strip count or
individual strip count < 2
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener bounds changed callback methodpublic int getValidStripCount()
public void getStripCount(int[] values)
values
- An array to copy the strip values intopublic int compareTo(IndexedLineStripArray ta)
ta
- The argument instance to be compared
public boolean equals(IndexedLineStripArray ta)
ta
- The geometry instance to be compared
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |