j3d.org Aviatrix3D

org.j3d.aviatrix3d
Class LineStripArray

java.lang.Object
  extended byorg.j3d.aviatrix3d.SceneGraphObject
      extended byorg.j3d.aviatrix3d.NodeComponent
          extended byorg.j3d.aviatrix3d.Geometry
              extended byorg.j3d.aviatrix3d.VertexGeometry
                  extended byorg.j3d.aviatrix3d.LineStripArray
All Implemented Interfaces:
PickableObject

public class LineStripArray
extends VertexGeometry

An OpenGL LineStripArray.

Version:
$Revision: 1.10 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.j3d.aviatrix3d.VertexGeometry
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, NORMAL_CLEAR, normalBuffer, normals, NORMALS, numCoords, 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
 
Fields inherited from class org.j3d.aviatrix3d.Geometry
bounds, implicitBounds, internalUpdater, lastParentList, parentList, pickFlags, validAlpha
 
Fields inherited from class org.j3d.aviatrix3d.NodeComponent
liveCount
 
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject
alive, updateHandler, WRITE_TIMING_MSG
 
Fields inherited from interface org.j3d.aviatrix3d.PickableObject
COLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECT
 
Constructor Summary
LineStripArray()
          Constructs a LineStripArray with default values.
 
Method Summary
 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.
 void renderState(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
          Issue ogl commands needed for this renderable object.
 void restoreState(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
          Restore all openGL state.
 void setStripCount(int[] counts, int num)
          Set the number of valid strips to use.
 
Methods inherited from class org.j3d.aviatrix3d.VertexGeometry
getValidVertexCount, getVertexType, getVertices, initPolygonDetails, markBoundsDirty, pickLineRay, pickLineSegment, ray3DQuadChecked, ray3DTriangleChecked, recomputeBounds, setColors, setFogCoordinates, setLive, setNormals, setSecondaryColors, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureSetMap, setTextureSetMap, setValidVertexCount, setVertices, setVertices, updateBounds
 
Methods inherited from class org.j3d.aviatrix3d.Geometry
addParent, boundsChanged, getBounds, getPickMask, hasTransparency, pickBatch, pickSingle, removeParent, setBounds, setPickMask
 
Methods inherited from class org.j3d.aviatrix3d.NodeComponent
addParent, getParents, hasChanged, numParents, removeParent
 
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject
checkForCyclicChild, checkForCyclicParent, dataChanged, getUserData, isLive, setUpdateHandler, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineStripArray

public LineStripArray()
Constructs a LineStripArray with default values.

Method Detail

setStripCount

public void setStripCount(int[] counts,
                          int num)
                   throws InvalidWriteTimingException
Set the number of valid strips to use. A check is performed to make sure that the number of vertices high enough to support the total of all the strip counts so make sure to call setVertex() with the required array length before calling this method. Each strip must be a minumum length of three.

Parameters:
counts - The array of counts
num - The number of valid items to read from the array
Throws:
java.lang.IllegalArgumentException - Invalid total strip count or individual strip count < 2
InvalidWriteTimingException - An attempt was made to write outside of the NodeUpdateListener callback method

getValidStripCount

public int getValidStripCount()
Get the number of valid strips that are defined for this geometry.

Returns:
a positive number

getStripCount

public void getStripCount(int[] values)
Get the sizes of the valid strips. The passed array must be big enough to contain all the strips.

Parameters:
values - An array to copy the strip values into

renderState

public void renderState(net.java.games.jogl.GL gl,
                        net.java.games.jogl.GLU glu)
Issue ogl commands needed for this renderable object.

Overrides:
renderState in class NodeComponent
Parameters:
gl - The gl context to draw with
glu - The utility context to draw with

restoreState

public void restoreState(net.java.games.jogl.GL gl,
                         net.java.games.jogl.GLU glu)
Restore all openGL state.

Overrides:
restoreState in class NodeComponent
Parameters:
gl - The gl context to draw with
glu - The utility context to draw with

j3d.org Aviatrix3D

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - j3d.org