org.j3d.aviatrix3d
Class IndexedLineArray
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.IndexedLineArray
- All Implemented Interfaces:
- java.lang.Comparable, LeafPickTarget, PickableObject, PickTarget, Renderable, RenderableGeometry
- public class IndexedLineArray
- extends IndexedVertexGeometry
An OpenGL LineArray.
Lines cannot be picked in the traditional manner using geometry-based
picking. The only way to pick them is based on their bounds.
Setting geometry
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.
- Version:
- $Revision: 1.14 $
- Author:
- Justin Couch
Fields inherited from class org.j3d.aviatrix3d.VertexGeometry |
ATTRIB_CLEAR, ATTRIB_MASK, attribIds, ATTRIBS, attributes, COLOR_3, COLOR_4, COLOR_CLEAR, COLOR_MASK, COLOR_SINGLE, COLOR2, COLOR2_CLEAR, COLOR2_MASK, color2Buffer, color2s, colorBuffer, colors, COORDINATE_2, COORDINATE_3, COORDINATE_4, COORDINATE_CLEAR, COORDINATE_MASK, coordinates, EDGE_CLEAR, EDGE_MASK, EDGES, FOG, FOG_CLEAR, FOG_MASK, fogBuffer, fogCoords, hasMultiTextureAPI, INTERSECT_ALL, INTERSECT_COLOR, INTERSECT_COORDS, INTERSECT_NORMAL, INTERSECT_TEXCOORDS_MULTI, INTERSECT_TEXCOORDS_SINGLE, maxTextureUnits, NORMAL_CLEAR, normalBuffer, normals, NORMALS, numCoords, numRenderedTextureSets, numRequiredCoords, numTextureArrays, numTextureSets, TEXTURE_CLEAR, TEXTURE_COORDINATE_1, TEXTURE_COORDINATE_2, TEXTURE_COORDINATE_3, TEXTURE_COORDINATE_4, TEXTURE_COORDINATE_MULTI, TEXTURE_COORDINATE_SINGLE, TEXTURE_MASK, TEXTURE_SET_AVAILABLE, TEXTURE_SET_CLEAR, textureBuffer, textures, textureSets, textureTypes, vertexBuffer, vertexFormat, wkPolygon |
Constructor Summary |
IndexedLineArray()
Constructs a LineArray with default values. |
Method Summary |
int |
compareTo(IndexedLineArray 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(IndexedLineArray 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 |
render(javax.media.opengl.GL gl)
Issue ogl commands needed for this renderable object. |
Methods inherited from class org.j3d.aviatrix3d.VertexGeometry |
clearVertexState, getColors, getFogCoordinates, getNormals, getSecondaryColors, getTextureCoordinates, getValidVertexCount, getVertexType, getVertices, initPolygonDetails, isMultiTextureAllowed, numTextureUnits, ray3DQuadChecked, ray3DTriangleChecked, recomputeBounds, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setColors, setFogCoordinates, setLive, setNormals, setSecondaryColors, setSingleColor, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureSetMap, setTextureSetMap, setValidVertexCount, setVertexState, setVertices, setVertices, updateBounds |
Methods inherited from class org.j3d.aviatrix3d.Geometry |
addParent, boundsChanged, checkPickMask, getBounds, getPickableBounds, getPickMask, getPickTargetType, getRenderable, hasTransparency, markBoundsDirty, pickBatch, pickLineRay, pickLineSegment, pickSingle, removeParent, setBounds, setPickMask |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexedLineArray
public IndexedLineArray()
- Constructs a LineArray with default values.
render
public void render(javax.media.opengl.GL gl)
- Issue ogl commands needed for this renderable object.
- Parameters:
gl
- The gl context to draw with
compareTo
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
- Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is less
than, equal to, or greater than the specified object.
- Parameters:
o
- The objec to be compared
- Returns:
- -1, 0 or 1 depending on order
- Throws:
java.lang.ClassCastException
- The specified object's type prevents it from
being compared to this Object
equals
public boolean equals(java.lang.Object o)
- Compare this object for equality to the given object.
- Parameters:
o
- The object to be compared
- Returns:
- True if these represent the same values
compareTo
public int compareTo(IndexedLineArray ta)
- Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is less
than, equal to, or greater than the specified object.
- Parameters:
ta
- The argument instance to be compared
- Returns:
- -1, 0 or 1 depending on order
equals
public boolean equals(IndexedLineArray ta)
- Compares this object with the specified object to check for equivalence.
- Parameters:
ta
- The geometry instance to be compared
- Returns:
- true if the objects represent identical values
Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2005 j3d.org