org.j3d.aviatrix3d
Class LineArray
java.lang.Object
org.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.NodeComponent
org.j3d.aviatrix3d.Geometry
org.j3d.aviatrix3d.VertexGeometry
org.j3d.aviatrix3d.LineArray
- All Implemented Interfaces:
- PickableObject, Renderable, RenderableObject
- public class LineArray
- extends VertexGeometry
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.
- Version:
- $Revision: 1.11 $
- Author:
- Alan Hudson
Fields inherited from class org.j3d.aviatrix3d.VertexGeometry |
ATTRIB_CLEAR, ATTRIB_MASK, attribIds, ATTRIBS, attributes, COLOR_3, COLOR_4, COLOR_CLEAR, COLOR_MASK, 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, NORMAL_CLEAR, normalBuffer, normals, NORMALS, numCoords, 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 |
LineArray()
Constructs a LineArray with default values. |
Method Summary |
void |
postRender(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
Restore all openGL state. |
void |
render(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
Issue ogl commands needed for this renderable object. |
void |
setValidVertexCount(int count)
Set the number of vertices to the new number. |
void |
setVertices(int type,
float[] vertices,
int numValid)
Set the vertex array reference to the new array. |
Methods inherited from class org.j3d.aviatrix3d.VertexGeometry |
clearVertexState, getColors, getFogCoordinates, getNormals, getSecondaryColors, getTextureCoordinates, getValidVertexCount, getVertexType, getVertices, initPolygonDetails, isMultiTextureAllowed, isVisible, ray3DQuadChecked, ray3DTriangleChecked, recomputeBounds, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setColors, setFogCoordinates, setLive, setNormals, setSecondaryColors, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureSetMap, setTextureSetMap, setVertexState, setVertices, updateBounds |
Methods inherited from class org.j3d.aviatrix3d.Geometry |
addParent, boundsChanged, getBounds, getPickMask, hasTransparency, markBoundsDirty, pickBatch, pickLineRay, pickLineSegment, pickSingle, removeParent, setBounds, setPickMask |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineArray
public LineArray()
- Constructs a LineArray with default values.
setValidVertexCount
public void setValidVertexCount(int count)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException,
InvalidWriteTimingException
- Set the number of vertices to the new number.
In a live scene graph, can only be called during the bounds changed
callback.
- Overrides:
setValidVertexCount
in class VertexGeometry
- Parameters:
count
- The new number, must be >= 0
- Throws:
java.lang.IllegalStateException
- This call was not made during the update
callback if the node is live
java.lang.IllegalArgumentException
- The number is negative
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback method
setVertices
public void setVertices(int type,
float[] vertices,
int numValid)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException,
InvalidWriteTimingException
- Set the vertex array reference to the new array. The number of valid
items is taken from the second parameter. This replaces the existing
vertex list array reference with the new reference.
In a live scene graph, can only be called during the bounds changed
callback.
- Overrides:
setVertices
in class VertexGeometry
- Parameters:
type
- The number of dimensions to the coordinates - 2D, 3D or 4Dvertices
- The new array reference to use for vertex informationnumValid
- The number of valid values to use in the array
- Throws:
java.lang.IllegalStateException
- This call was not made during the update
callback if the node is live
java.lang.IllegalArgumentException
- The number is negative
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback method
render
public void render(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
- Issue ogl commands needed for this renderable object.
- Parameters:
gl
- The gl context to draw withglu
- The utility context to draw with
postRender
public void postRender(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
- Restore all openGL state.
- Parameters:
gl
- The gl context to draw withglu
- The utility context to draw with
Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2005 j3d.org