public class SortedPointArray extends BufferGeometry implements CustomGeometryRenderable
Points cannot be picked in the traditional manner using geometry-based picking. The only way to pick them is based on their bounds.
Warning: Current implementation does not render correctly for multiple parent heirarchies.
ATTRIB_CLEAR, ATTRIB_MASK, attribIds, ATTRIBS, attributes, COLOR_3, COLOR_4, COLOR_CLEAR, COLOR_MASK, COLOR2, COLOR2_CLEAR, COLOR2_MASK, color2Buffer, colorBuffer, COORDINATE_2, COORDINATE_3, COORDINATE_4, COORDINATE_CLEAR, COORDINATE_MASK, EDGE_CLEAR, EDGE_MASK, EDGES, FOG, FOG_CLEAR, FOG_MASK, fogBuffer, NORMAL_CLEAR, normalBuffer, 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, textureSets, textureTypes, vertexBuffer, vertexFormat, wkPolygonbounds, implicitBounds, internalUpdater, INVALID_BOUNDS, lastParentList, parentList, pickFlags, validAlphalastParent, liveCountalive, LISTENER_SET_TIMING_ERR_PROP, updateHandlerCOLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECTCUSTOM_PICK_TYPE, GROUP_PICK_TYPE, LEAF_PICK_TYPE, SINGLE_PICK_TYPE| Constructor and Description |
|---|
SortedPointArray()
Constructs a PointArray with default values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares this object with the specified object for order.
|
int |
compareTo(SortedPointArray ta)
Compares this object with the specified object for order.
|
boolean |
equals(Object o)
Compare this object for equality to the given object.
|
boolean |
equals(SortedPointArray ta)
Compares this object with the specified object to check for equivalence.
|
Object |
processCull(org.j3d.maths.vector.Matrix4d vworldTx,
org.j3d.maths.vector.Matrix4d viewTransform,
org.j3d.maths.vector.Vector4d[] viewFrustum,
float angularRes)
Process the sorting on this node now.
|
void |
render(com.jogamp.opengl.GL2 gl)
Issue ogl commands needed for this renderable object.
|
void |
render(com.jogamp.opengl.GL2 gl,
Object externalData)
Render the geometry now.
|
clearVertexState, getColors, getFogCoordinates, getNormals, getSecondaryColors, getTextureCoordinates, getValidVertexCount, getVertexType, getVertices, initPolygonDetails, is2D, isVisible, ray3DQuadChecked, ray3DTriangleChecked, recomputeBounds, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setColors, setFogCoordinates, setLive, setNormals, setSecondaryColors, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureSetMap, setTextureSetMap, setValidVertexCount, setVertexState, setVertices, setVertices, updateBoundsaddParent, boundsChanged, checkPickMask, getBounds, getPickableBounds, getPickMask, getPickTargetType, hasTransparency, markBoundsDirty, pickBatch, pickLineRay, pickLineSegment, pickSingle, removeParent, setBounds, setPickMaskaddParent, getParents, numParents, removeParentcheckForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUpdateHandler, setUserDataclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasTransparencypublic SortedPointArray()
public Object processCull(org.j3d.maths.vector.Matrix4d vworldTx, org.j3d.maths.vector.Matrix4d viewTransform, org.j3d.maths.vector.Vector4d[] viewFrustum, float angularRes)
processCull in interface CustomGeometryRenderablevworldTx - The transformation from the root of the scene to
this node according to the current traversal pathviewTransform - The transformation from the root of the scene
graph to the active viewpointviewFrustum - The points of the viewfrustumangularRes - Angular resolution of the screen, or 0 if not
calculable from the available data.public void render(com.jogamp.opengl.GL2 gl,
Object externalData)
render in interface CustomGeometryRenderablegl - The GL context to render withexternalData - Some implementation-specific external data to
aid in the rendering that was generated in the processCull method.public void render(com.jogamp.opengl.GL2 gl)
render in interface GeometryRenderablegl - The gl context to draw withpublic int compareTo(Object o) throws ClassCastException
compareTo in interface Comparableo - The objec to be comparedClassCastException - The specified object's type prevents it from
being compared to this Objectpublic boolean equals(Object o)
public int compareTo(SortedPointArray ta)
ta - The argument instance to be comparedpublic boolean equals(SortedPointArray ta)
ta - The geometry instance to be compared
Copyright © 2001 - 2015 j3d.org