|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.GeometryRetained
javax.media.j3d.GeometryArrayRetained
abstract class GeometryArrayRetained
The GeometryArray object contains arrays of positional coordinates, colors, normals and/or texture coordinates that describe point, line, or surface geometry. It is extended to create the various primitive types (e.g., lines, triangle_strips, etc.)
Field Summary | |
---|---|
(package private) static int |
AF
|
(package private) static int |
BOUNDS_CHANGED
|
(package private) ByteBufferWrapper |
byteBufferRefColors
|
(package private) byte[] |
byteRefColors
|
(package private) static float |
ByteToFloatScale
|
(package private) Color3b[] |
c3bRefColors
|
(package private) static int |
C3F
|
(package private) Color3f[] |
c3fRefColors
|
(package private) static int |
C3UB
|
(package private) Color4b[] |
c4bRefColors
|
(package private) static int |
C4F
|
(package private) int |
c4fAllocated
|
(package private) Color4f[] |
c4fRefColors
|
(package private) static int |
C4UB
|
(package private) static int |
CF
|
(package private) IndexedGeometryArrayRetained |
cloneSourceArray
|
(package private) static int |
COLOR_BYTE
|
(package private) static int |
COLOR_CHANGED
|
(package private) static int |
COLOR_DEFINED
|
(package private) static int |
COLOR_FLOAT
|
(package private) int |
colorChanged
|
(package private) int |
colorOffset
|
(package private) J3DBuffer |
colorRefBuffer
|
(package private) int[] |
compileVcount
|
(package private) static int |
COORD_DOUBLE
|
(package private) static int |
COORD_FLOAT
|
(package private) static int |
COORDINATE_CHANGED
|
(package private) int |
coordinateOffset
|
(package private) J3DBuffer |
coordRefBuffer
|
(package private) static int |
CUB
|
(package private) static int[] |
defaultTexCoordSetMap
|
(package private) int |
dirtyFlag
|
(package private) int |
dlistId
|
(package private) java.lang.Integer |
dlistObj
|
private java.util.HashMap |
dlistUsers
|
(package private) DoubleBufferWrapper |
doubleBufferRefCoords
|
(package private) double[] |
doubleRefCoords
|
(package private) static double |
EPS
|
(package private) FloatBufferWrapper |
floatBufferRefColors
|
(package private) FloatBufferWrapper |
floatBufferRefCoords
|
(package private) FloatBufferWrapper |
floatBufferRefNormals
|
(package private) FloatBufferWrapper[] |
floatBufferRefVertexAttrs
|
(package private) float[] |
floatRefColors
|
(package private) float[] |
floatRefCoords
|
(package private) float[] |
floatRefNormals
|
(package private) float[][] |
floatRefVertexAttrs
|
(package private) static float |
FloatToByteScale
|
(package private) java.util.ArrayList |
gaList
|
(package private) int[] |
geoOffset
|
(package private) static int |
INDEX_CHANGED
|
(package private) static int |
INIT_MIRROR_GEOMETRY
|
(package private) int |
initialColorIndex
|
(package private) int |
initialCoordIndex
|
(package private) int |
initialNormalIndex
|
(package private) int[] |
initialTexCoordIndex
|
(package private) int[] |
initialVertexAttrIndex
|
(package private) int |
initialVertexIndex
|
(package private) FloatBufferWrapper |
interleavedFloatBufferImpl
|
(package private) J3DBuffer |
interleavedVertexBuffer
|
(package private) float[] |
interLeavedVertexData
|
(package private) boolean |
inUpdater
|
(package private) boolean |
isCompiled
|
(package private) boolean |
isShared
|
private float[] |
lastAlpha
|
(package private) float |
lastScreenAlpha
|
(package private) int |
mirrorColorAllocated
|
(package private) double[] |
mirrorDoubleRefCoords
|
(package private) float[][] |
mirrorFloatRefColors
|
(package private) float[] |
mirrorFloatRefCoords
|
(package private) float[] |
mirrorFloatRefNormals
|
(package private) float[] |
mirrorFloatRefTexCoords
|
(package private) float[][] |
mirrorFloatRefVertexAttrs
|
(package private) float[][] |
mirrorInterleavedColorPointer
|
(package private) boolean |
mirrorNormalAllocated
|
(package private) java.lang.Object[] |
mirrorRefTexCoords
|
(package private) byte[][] |
mirrorUnsignedByteRefColors
|
(package private) int |
mirrorVertexAllocated
|
(package private) java.util.ArrayList |
morphUniverseList
|
(package private) java.util.ArrayList |
morphUserLists
|
private float[][] |
mvertexData
|
(package private) static int |
N3F
|
(package private) static int |
NF
|
(package private) java.lang.Object[] |
nioFloatBufferRefVertexAttrs
|
(package private) static int |
NORMAL_CHANGED
|
(package private) static int |
NORMAL_DEFINED
|
(package private) static int |
NORMAL_FLOAT
|
(package private) int |
normalOffset
|
(package private) J3DBuffer |
normalRefBuffer
|
(package private) static int |
P3D
|
(package private) Point3d[] |
p3dRefCoords
|
(package private) static int |
P3F
|
(package private) Point3f[] |
p3fRefCoords
|
(package private) static int |
PD
|
(package private) static int |
PF
|
(package private) long |
pVertexBuffers
|
(package private) java.lang.Object[] |
refTexCoords
|
(package private) java.lang.Object[] |
refTexCoordsBuffer
|
(package private) int |
resourceCreationMask
|
(package private) int |
stride
|
(package private) static int |
STRIPCOUNT_CHANGED
|
(package private) static int |
T2F
|
(package private) TexCoord2f[] |
t2fRefTexCoords
|
(package private) static int |
T3F
|
(package private) TexCoord3f[] |
t3fRefTexCoords
|
(package private) static int |
targetThreads
|
(package private) static int |
TEXCOORD_DEFINED
|
(package private) static int |
TEXCOORD_FLOAT
|
(package private) int |
texCoordSetCount
|
(package private) int[] |
texCoordSetMap
|
(package private) int[] |
texCoordSetMapOffset
|
(package private) int |
texCoordStride
|
private int |
texCoordType
|
(package private) static int |
TEXTURE_CHANGED
|
(package private) int |
textureOffset
|
(package private) static int |
TF
|
private long[] |
timeStampPerDlist
|
(package private) Vector3f[] |
v3fRefNormals
|
(package private) int |
validVertexCount
|
(package private) static int |
VATTR_CHANGED
|
(package private) static int |
VATTR_DEFINED
|
(package private) static int |
VATTR_FLOAT
|
(package private) static int |
VERTEX_CHANGED
|
(package private) static int |
VERTEX_DEFINED
|
(package private) int |
vertexAttrCount
|
(package private) int[] |
vertexAttrOffsets
|
(package private) int[] |
vertexAttrSizes
|
(package private) J3DBuffer[] |
vertexAttrsRefBuffer
|
(package private) int |
vertexAttrStride
|
private int |
vertexAttrType
|
(package private) int |
vertexCount
|
(package private) float[] |
vertexData
|
(package private) int |
vertexFormat
|
(package private) int |
vertexType
|
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
GeometryArrayRetained()
|
Method Summary | |
---|---|
(package private) void |
addDlistUser(RenderBin renderBin,
RenderAtomListInfo ra)
|
(package private) void |
addMorphUser(MorphRetained m)
|
(package private) void |
assignDlistId()
|
(package private) void |
buildGA(Canvas3D cv,
RenderAtom ra,
boolean isNonUniformScale,
boolean updateAlpha,
float alpha,
boolean ignoreVertexColors,
Transform3D xform,
Transform3D nxform)
|
(package private) void |
clearLive(int refCount)
|
(package private) int |
colorOffset()
Returns the offset in number of floats from the start of a vertex to the per-vertex color data. |
(package private) void |
compile(CompileState compState)
This is the default compile() method, which just marks the sgo as compiled. |
(package private) void |
computeBoundingBox()
|
(package private) void |
computeBoundingBox(double[] coords)
|
(package private) void |
computeBoundingBox(DoubleBufferWrapper buffer)
|
(package private) void |
computeBoundingBox(float[] coords)
|
(package private) void |
computeBoundingBox(FloatBufferWrapper buffer)
|
(package private) void |
computeBoundingBox(int vIndex,
float[] vdata)
|
(package private) void |
computeBoundingBox(int vIndex,
FloatBufferWrapper vdata)
|
(package private) void |
computeBoundingBox(Point3d[] coords)
|
(package private) void |
computeBoundingBox(Point3f[] coords)
|
(package private) void |
computeMinDistance(Point3d[] coordinates,
Point3d center,
Vector3d normal,
double[] dist,
Point3d iPnt)
|
(package private) int |
coordinateOffset()
Returns the offset in number of floats from the start of a vertex to the per vertex coordinate data. |
(package private) boolean |
coplanarTriTri(Vector3d normal,
Point3d v0,
Point3d v1,
Point3d v2,
Point3d u0,
Point3d u1,
Point3d u2)
|
(package private) void |
createGeometryArrayData(int vertexCount,
int vertexFormat)
|
(package private) void |
createGeometryArrayData(int vertexCount,
int vertexFormat,
int texCoordSetCount,
int[] texCoordSetMap)
|
(package private) void |
createGeometryArrayData(int vertexCount,
int vertexFormat,
int texCoordSetCount,
int[] texCoordSetMap,
int vertexAttrCount,
int[] vertexAttrSizes)
|
(package private) double |
det2D(Point2d a,
Point2d b,
Point2d p)
|
(package private) void |
disableGlobalAlpha(Context ctx,
boolean useAlpha,
boolean ignoreVC)
|
private void |
doSetupMirrorTexCoordPointer(int texCoordSet,
int type)
|
private void |
doSetupMirrorVertexAttrPointer(int vertexAttrNum,
int type)
|
(package private) boolean |
edgeAgainstEdge(Point3d v0,
Point3d u0,
Point3d u1,
double aX,
double aY,
int i0,
int i1)
|
(package private) boolean |
edgeAgainstTriEdges(Point3d v0,
Point3d v1,
Point3d u0,
Point3d u1,
Point3d u2,
int i0,
int i1)
|
(package private) boolean |
edgeIntersectPlane(Vector3d normal,
Point3d pnt,
Point3d start,
Point3d end,
Point3d iPnt)
|
(package private) boolean |
edgeIntersectPolygon2D(Vector3d normal,
Point3d[] coord,
Point3d[] seg)
|
(package private) boolean |
edgeIntersectSphere(BoundingSphere sphere,
Point3d start,
Point3d end)
|
(package private) void |
execute(Canvas3D cv,
RenderAtom ra,
boolean isNonUniformScale,
boolean updateAlpha,
float alpha,
int screen,
boolean ignoreVertexColors)
|
(package private) void |
freeD3DArray(boolean deleteVB)
|
(package private) void |
freeDlistId()
|
(package private) double |
generalStandardSimplexSolver(double[][] problemTableau,
double stopingValue)
|
(package private) void |
getColor(int index,
byte[] color)
Gets the color associated with the vertex at the specified index. |
(package private) void |
getColor(int index,
Color3b color)
Gets the color associated with the vertex at the specified index. |
(package private) void |
getColor(int index,
Color3f color)
Gets the color associated with the vertex at the specified index. |
(package private) void |
getColor(int index,
Color4b color)
Gets the color associated with the vertex at the specified index. |
(package private) void |
getColor(int index,
Color4f color)
Gets the color associated with the vertex at the specified index. |
(package private) void |
getColor(int index,
float[] color)
Gets the color associated with the vertex at the specified index. |
(package private) Color3b[] |
getColorRef3b()
|
(package private) Color3f[] |
getColorRef3f()
|
(package private) Color4b[] |
getColorRef4b()
|
(package private) Color4f[] |
getColorRef4f()
|
(package private) J3DBuffer |
getColorRefBuffer()
|
(package private) byte[] |
getColorRefByte()
|
(package private) float[] |
getColorRefFloat()
|
(package private) void |
getColors(int index,
byte[] colors)
Gets the colors associated with the vertices starting at the specified index. |
(package private) void |
getColors(int index,
Color3b[] colors)
Gets the colors associated with the vertices starting at the specified index. |
(package private) void |
getColors(int index,
Color3f[] colors)
Gets the colors associated with the vertices starting at the specified index. |
(package private) void |
getColors(int index,
Color4b[] colors)
Gets the colors associated with the vertices starting at the specified index. |
(package private) void |
getColors(int index,
Color4f[] colors)
Gets the colors associated with the vertices starting at the specified index. |
(package private) void |
getColors(int index,
float[] colors)
Gets the colors associated with the vertices starting at the specified index. |
(package private) int |
getColorStride()
|
(package private) double |
getCompValue(Point3d v,
int i)
|
(package private) double |
getCompValue(Point3d v0,
Point3d v1,
int i)
|
(package private) void |
getCoordinate(int index,
double[] coordinate)
Gets the coordinate associated with the vertex at the specified index. |
(package private) void |
getCoordinate(int index,
float[] coordinate)
Gets the coordinate associated with the vertex at the specified index. |
(package private) void |
getCoordinate(int index,
Point3d coordinate)
Gets the coordinate associated with the vertex at the specified index. |
(package private) void |
getCoordinate(int index,
Point3f coordinate)
Gets the coordinate associated with the vertex at the specified index. |
(package private) void |
getCoordinates(int index,
double[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index. |
(package private) void |
getCoordinates(int index,
float[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index. |
(package private) void |
getCoordinates(int index,
Point3d[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index. |
(package private) void |
getCoordinates(int index,
Point3f[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index. |
(package private) Point3d[] |
getCoordRef3d()
|
(package private) Point3f[] |
getCoordRef3f()
|
(package private) J3DBuffer |
getCoordRefBuffer()
|
(package private) double[] |
getCoordRefDouble()
|
(package private) float[] |
getCoordRefFloat()
|
(package private) void |
getCrossValue(Point3d p1,
Point3d p2,
Vector3d value)
|
(package private) long |
getDlistTimeStamp(int rdrBit)
|
(package private) int |
getIndex(int bit)
|
(package private) int |
getInitialColorIndex()
|
(package private) int |
getInitialCoordIndex()
|
(package private) int |
getInitialNormalIndex()
|
(package private) int |
getInitialTexCoordIndex(int texCoordSet)
|
(package private) int |
getInitialVertexAttrIndex(int vertexAttrNum)
Gets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object. |
(package private) int |
getInitialVertexIndex()
|
(package private) J3DBuffer |
getInterleavedVertexBuffer()
|
(package private) float[] |
getInterleavedVertices()
|
(package private) void |
getNormal(int index,
float[] normal)
Gets the normal associated with the vertex at the specified index. |
(package private) void |
getNormal(int index,
Vector3f normal)
Gets the normal associated with the vertex at the specified index. |
(package private) Vector3f[] |
getNormalRef3f()
|
(package private) J3DBuffer |
getNormalRefBuffer()
|
(package private) float[] |
getNormalRefFloat()
|
(package private) void |
getNormals(int index,
float[] normals)
Gets the normals associated with the vertices starting at the specified index. |
(package private) void |
getNormals(int index,
Vector3f[] normals)
Gets the normals associated with the vertices starting at the specified index. |
(package private) int |
getNumColorCount()
|
(package private) int |
getNumCoordCount()
|
(package private) int |
getNumNormalCount()
|
(package private) int |
getNumTexCoordCount(int i)
|
(package private) TexCoord2f[] |
getTexCoordRef2f(int texCoordSet)
|
(package private) TexCoord3f[] |
getTexCoordRef3f(int texCoordSet)
|
(package private) J3DBuffer |
getTexCoordRefBuffer(int texCoordSet)
|
(package private) float[] |
getTexCoordRefFloat(int texCoordSet)
|
(package private) int |
getTexCoordSetCount()
|
(package private) void |
getTexCoordSetMap(int[] texCoordSetMap)
|
(package private) int |
getTexCoordSetMapLength()
|
(package private) int |
getTexCoordType()
|
(package private) int |
getTexStride()
|
(package private) void |
getTextureCoordinate(int texCoordSet,
int index,
float[] texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index. |
(package private) void |
getTextureCoordinate(int texCoordSet,
int index,
TexCoord2f texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index. |
(package private) void |
getTextureCoordinate(int texCoordSet,
int index,
TexCoord3f texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index. |
(package private) void |
getTextureCoordinate(int texCoordSet,
int index,
TexCoord4f texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index. |
(package private) void |
getTextureCoordinates(int texCoordSet,
int index,
float[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index. |
(package private) void |
getTextureCoordinates(int texCoordSet,
int index,
Point2f[] texCoords)
|
(package private) void |
getTextureCoordinates(int texCoordSet,
int index,
Point3f[] texCoords)
|
(package private) void |
getTextureCoordinates(int texCoordSet,
int index,
TexCoord2f[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index. |
(package private) void |
getTextureCoordinates(int texCoordSet,
int index,
TexCoord3f[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index. |
(package private) void |
getTextureCoordinates(int texCoordSet,
int index,
TexCoord4f[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index. |
(package private) int |
getValidVertexCount()
|
void |
getVertexAttr(int vertexAttrNum,
int index,
float[] vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object. |
void |
getVertexAttr(int vertexAttrNum,
int index,
Point2f vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object. |
void |
getVertexAttr(int vertexAttrNum,
int index,
Point3f vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object. |
void |
getVertexAttr(int vertexAttrNum,
int index,
Point4f vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object. |
(package private) int |
getVertexAttrCount()
Retrieves the number of vertex attributes in this GeometryArray object. |
(package private) J3DBuffer |
getVertexAttrRefBuffer(int vertexAttrNum)
Gets the vertex attribute array buffer reference for the specified vertex attribute number. |
(package private) float[] |
getVertexAttrRefFloat(int vertexAttrNum)
Gets the float vertex attribute array reference for the specified vertex attribute number. |
void |
getVertexAttrs(int vertexAttrNum,
int index,
float[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. |
void |
getVertexAttrs(int vertexAttrNum,
int index,
Point2f[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. |
void |
getVertexAttrs(int vertexAttrNum,
int index,
Point3f[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. |
void |
getVertexAttrs(int vertexAttrNum,
int index,
Point4f[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. |
(package private) void |
getVertexAttrSizes(int[] vertexAttrSizes)
Retrieves the vertex attribute sizes array from this GeometryArray object. |
(package private) int |
getVertexAttrType()
|
(package private) int |
getVertexCount()
Returns number of vertices in the GeometryArray |
(package private) void |
getVertexData(int i,
Point3d pnts)
|
(package private) int |
getVertexFormat()
Returns vertexFormat in the GeometryArray |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initMirrorGeometry()
|
(package private) boolean |
inside(Point3d[] coordinates,
PickPoint point,
int ccw)
Return true if point is on the inside of halfspace test. |
(package private) boolean |
intersect(Transform3D thisLocalToVworld,
Transform3D otherLocalToVworld,
GeometryRetained geom)
|
(package private) boolean |
intersectBoundingBox(Point3d[] coordinates,
BoundingBox box,
double[] dist,
Point3d iPnt)
|
(package private) boolean |
intersectBoundingPolytope(Point3d[] coordinates,
BoundingPolytope polytope,
double[] dist,
Point3d iPnt)
|
(package private) boolean |
intersectBoundingSphere(Point3d[] coordinates,
BoundingSphere sphere,
double[] dist,
Point3d iPnt)
|
(package private) boolean |
intersectCone(Point3d[] coordinates,
PickCone cone,
double[] dist,
Point3d iPnt)
Return true if triangle or quad intersects with cone. |
(package private) boolean |
intersectCone(Point3d pt,
PickCone cone,
double[] dist)
Return true if point intersects with cone and the distance is stored in pi. |
(package private) boolean |
intersectCylinder(Point3d[] coordinates,
PickCylinder cyl,
double[] dist,
Point3d iPnt)
Return true if triangle or quad intersects with cylinder. |
(package private) boolean |
intersectCylinder(Point3d pt,
PickCylinder cyl,
double[] dist)
Return true if point intersects with cylinder and the distance is stored in dist. |
(package private) boolean |
intersectLineAndRay(Point3d start,
Point3d end,
Point3d ori,
Vector3d dir,
double[] dist,
Point3d iPnt)
|
(package private) boolean |
intersectPntAndPnt(Point3d pnt1,
Point3d pnt2)
|
(package private) boolean |
intersectPntAndRay(Point3d pnt,
Point3d ori,
Vector3d dir,
double[] dist)
|
(package private) boolean |
intersectPolygon(Point3d[] coord1,
Point3d[] coord2)
|
(package private) boolean |
intersectRay(Point3d[] coordinates,
PickRay ray,
double[] dist,
Point3d iPnt)
Return true if triangle or quad intersects with ray and the distance is stored in dist[0] and the intersect point in iPnt (if iPnt is not null). |
(package private) boolean |
intersectRayOrSegment(Point3d[] coordinates,
Vector3d direction,
Point3d origin,
double[] dist,
Point3d iPnt,
boolean isSegment)
Return true if triangle or quad intersects with ray and the distance is stored in pr. |
(package private) boolean |
intersectSegment(Point3d[] coordinates,
Point3d start,
Point3d end,
double[] dist,
Point3d iPnt)
Return true if triangle or quad intersects with segment and the distance is stored in dist[0]. |
(package private) boolean |
intersectTriPnt(Point3d v0,
Point3d v1,
Point3d v2,
Point3d u)
|
(package private) boolean |
intersectTriTri(Point3d v0,
Point3d v1,
Point3d v2,
Point3d u0,
Point3d u1,
Point3d u2)
Return flag indicating whether two triangles intersect. |
(package private) boolean |
isDlistUserSetEmpty(RenderBin renderBin)
|
(package private) boolean |
isMergeable()
|
(package private) static boolean |
isNonZero(double v)
|
(package private) boolean |
isWriteStatic()
|
(package private) void |
mergeGeometryArrays(java.util.ArrayList list)
|
(package private) void |
mergeTransform(TransformGroupRetained xform)
|
(package private) int |
normalOffset()
Returns the offset in number of floats from the start of a vertex to the per-vertex normal data. |
(package private) int |
numDlistUsers(RenderBin renderBin)
|
(package private) boolean |
pointIntersectPolygon2D(Vector3d normal,
Point3d[] coord,
Point3d point)
|
(package private) boolean |
pointInTri(Point3d v0,
Point3d u0,
Point3d u1,
Point3d u2,
int i0,
int i1)
|
(package private) boolean |
pointInTri(Point3d v0,
Point3d u0,
Point3d u1,
Point3d u2,
Vector3d normal)
|
(package private) void |
processCoordsChanged(boolean nullGeo)
|
(package private) void |
removeDlistUser(RenderBin renderBin,
RenderAtomListInfo ra)
|
(package private) void |
removeMorphUser(MorphRetained m)
|
(package private) void |
sendDataChangedMessage(boolean coordinatesChanged)
|
(package private) void |
setColor(int index,
byte[] color)
Sets the color associated with the vertex at the specified index. |
(package private) void |
setColor(int index,
Color3b color)
Sets the color associated with the vertex at the specified index. |
(package private) void |
setColor(int index,
Color3f color)
Sets the color associated with the vertex at the specified index. |
(package private) void |
setColor(int index,
Color4b color)
Sets the color associated with the vertex at the specified index. |
(package private) void |
setColor(int index,
Color4f color)
Sets the color associated with the vertex at the specified index. |
(package private) void |
setColor(int index,
float[] color)
Sets the color associated with the vertex at the specified index. |
(package private) void |
setColorRef3b(Color3b[] colors)
|
(package private) void |
setColorRef3f(Color3f[] colors)
|
(package private) void |
setColorRef4b(Color4b[] colors)
|
(package private) void |
setColorRef4f(Color4f[] colors)
|
(package private) void |
setColorRefBuffer(J3DBuffer colors)
|
(package private) void |
setColorRefByte(byte[] colors)
|
(package private) void |
setColorRefFloat(float[] colors)
|
(package private) void |
setColors(int index,
byte[] colors)
Sets the colors associated with the vertices starting at the specified index. |
(package private) void |
setColors(int index,
byte[] colors,
int start,
int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in color s
starting at index start for length colors. |
(package private) void |
setColors(int index,
Color3b[] colors)
Sets the colors associated with the vertices starting at the specified index. |
(package private) void |
setColors(int index,
Color3b[] colors,
int start,
int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in color s
starting at index start for length colors. |
(package private) void |
setColors(int index,
Color3f[] colors)
Sets the colors associated with the vertices starting at the specified index. |
(package private) void |
setColors(int index,
Color3f[] colors,
int start,
int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in color s
starting at index start for length colors. |
(package private) void |
setColors(int index,
Color4b[] colors)
Sets the colors associated with the vertices starting at the specified index. |
(package private) void |
setColors(int index,
Color4b[] colors,
int start,
int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in color s
starting at index start for length colors. |
(package private) void |
setColors(int index,
Color4f[] colors)
Sets the colors associated with the vertices starting at the specified index. |
(package private) void |
setColors(int index,
Color4f[] colors,
int start,
int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in color s
starting at index start for length colors. |
(package private) void |
setColors(int index,
float[] colors)
Sets the colors associated with the vertices starting at the specified index. |
(package private) void |
setColors(int index,
float[] colors,
int start,
int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in color s
starting at index start for length colors. |
(package private) void |
setCompiled(java.util.ArrayList curList)
The functions below are only used in compile mode |
(package private) void |
setCoordinate(int index,
double[] coordinate)
Sets the coordinate associated with the vertex at the specified index. |
(package private) void |
setCoordinate(int index,
float[] coordinate)
Sets the coordinate associated with the vertex at the specified index. |
(package private) void |
setCoordinate(int index,
Point3d coordinate)
Sets the coordinate associated with the vertex at the specified index. |
(package private) void |
setCoordinate(int index,
Point3f coordinate)
Sets the coordinate associated with the vertex at the specified index. |
(package private) void |
setCoordinates(int index,
double[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index. |
(package private) void |
setCoordinates(int index,
double[] coordinates,
int start,
int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices. |
(package private) void |
setCoordinates(int index,
float[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index. |
(package private) void |
setCoordinates(int index,
float[] coordinates,
int start,
int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices. |
(package private) void |
setCoordinates(int index,
Point3d[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index. |
(package private) void |
setCoordinates(int index,
Point3d[] coordinates,
int start,
int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices. |
(package private) void |
setCoordinates(int index,
Point3f[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index. |
(package private) void |
setCoordinates(int index,
Point3f[] coordinates,
int start,
int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices. |
(package private) void |
setCoordRef3d(Point3d[] coords)
|
(package private) void |
setCoordRef3f(Point3f[] coords)
|
(package private) void |
setCoordRefBuffer(J3DBuffer coords)
|
(package private) void |
setCoordRefDouble(double[] coords)
|
(package private) void |
setCoordRefFloat(float[] coords)
|
(package private) void |
setDlistTimeStamp(int rdrBit,
long timeStamp)
|
(package private) void |
setInitialColorIndex(int initialColorIndex)
|
(package private) void |
setInitialCoordIndex(int initialCoordIndex)
|
(package private) void |
setInitialNormalIndex(int initialNormalIndex)
|
(package private) void |
setInitialTexCoordIndex(int texCoordSet,
int initialTexCoordIndex)
|
(package private) void |
setInitialVertexAttrIndex(int vertexAttrNum,
int initialVertexAttrIndex)
Sets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object. |
(package private) void |
setInitialVertexIndex(int initialVertexIndex)
|
(package private) void |
setInterleavedVertexBuffer(J3DBuffer vertexData)
|
(package private) void |
setInterleavedVertices(float[] vertexData)
|
(package private) void |
setLive(boolean inBackgroundGroup,
int refCount)
|
(package private) void |
setNormal(int index,
float[] normal)
Sets the normal associated with the vertex at the specified index. |
(package private) void |
setNormal(int index,
Vector3f normal)
Sets the normal associated with the vertex at the specified index. |
(package private) void |
setNormalRef3f(Vector3f[] normals)
|
(package private) void |
setNormalRefBuffer(J3DBuffer normals)
|
(package private) void |
setNormalRefFloat(float[] normals)
|
(package private) void |
setNormals(int index,
float[] normals)
Sets the normals associated with the vertices starting at the specified index. |
(package private) void |
setNormals(int index,
float[] normals,
int start,
int length)
Sets the normals associated with the vertices starting at the specified index for this object using data in normals
starting at index start and ending at index start+length . |
(package private) void |
setNormals(int index,
Vector3f[] normals)
Sets the normals associated with the vertices starting at the specified index. |
(package private) void |
setNormals(int index,
Vector3f[] normals,
int start,
int length)
Sets the normals associated with the vertices starting at the specified index for this object using data in normals
starting at index start and ending at index start+length . |
(package private) void |
setTexCoordRef2f(int texCoordSet,
TexCoord2f[] texCoords)
|
(package private) void |
setTexCoordRef3f(int texCoordSet,
TexCoord3f[] texCoords)
|
(package private) void |
setTexCoordRefBuffer(int texCoordSet,
J3DBuffer texCoords)
|
(package private) void |
setTexCoordRefFloat(int texCoordSet,
float[] texCoords)
|
(package private) void |
setTextureCoordinates(int texCoordSet,
int index,
float[] texCoords,
int start,
int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords
starting at index start and ending at index start+length . |
(package private) void |
setTextureCoordinates(int texCoordSet,
int index,
Point2f[] texCoords,
int start,
int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords
starting at index start and ending at index start+length . |
(package private) void |
setTextureCoordinates(int texCoordSet,
int index,
Point3f[] texCoords,
int start,
int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords
starting at index start and ending at index start+length . |
(package private) void |
setTextureCoordinates(int texCoordSet,
int index,
TexCoord2f[] texCoords,
int start,
int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords
starting at index start and ending at index start+length . |
(package private) void |
setTextureCoordinates(int texCoordSet,
int index,
TexCoord3f[] texCoords,
int start,
int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords
starting at index start and ending at index start+length . |
(package private) void |
setTextureCoordinates(int texCoordSet,
int index,
TexCoord4f[] texCoords,
int start,
int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords
starting at index start and ending at index start+length . |
(package private) void |
setupMirrorColorPointer(int ctype,
boolean force)
|
(package private) void |
setupMirrorInterleavedColorPointer(boolean force)
|
(package private) void |
setupMirrorNormalPointer(int ntype)
|
(package private) void |
setupMirrorTexCoordPointer(int type)
|
(package private) void |
setupMirrorTexCoordPointer(int texCoordSet,
int type)
|
(package private) void |
setupMirrorVertexAttrPointer(int type)
|
(package private) void |
setupMirrorVertexAttrPointer(int vertexAttrNum,
int type)
|
(package private) void |
setupMirrorVertexPointer(int vType)
|
(package private) void |
setValidVertexCount(int validVertexCount)
|
(package private) void |
setVertexAttr(int vertexAttrNum,
int index,
Point2f vertexAttr)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object. |
(package private) void |
setVertexAttr(int vertexAttrNum,
int index,
Point3f vertexAttr)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object. |
(package private) void |
setVertexAttr(int vertexAttrNum,
int index,
Point4f vertexAttr)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object. |
(package private) void |
setVertexAttrRefBuffer(int vertexAttrNum,
J3DBuffer vertexAttrs)
Sets the vertex attribute buffer reference for the specified vertex attribute number to the specified buffer object. |
(package private) void |
setVertexAttrRefFloat(int vertexAttrNum,
float[] vertexAttrs)
Sets the float vertex attribute array reference for the specified vertex attribute number to the specified array. |
(package private) void |
setVertexAttrs(int vertexAttrNum,
int index,
float[] vertexAttrs,
int start,
int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and
ending at index start+length . |
(package private) void |
setVertexAttrs(int vertexAttrNum,
int index,
Point2f[] vertexAttrs,
int start,
int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and
ending at index start+length . |
(package private) void |
setVertexAttrs(int vertexAttrNum,
int index,
Point3f[] vertexAttrs,
int start,
int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and
ending at index start+length . |
(package private) void |
setVertexAttrs(int vertexAttrNum,
int index,
Point4f[] vertexAttrs,
int start,
int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and
ending at index start+length . |
(package private) void |
setVertexFormat(boolean useAlpha,
boolean ignoreVC,
Context ctx)
|
(package private) int |
stride()
Returns the vertex stride in numbers of floats as a function of the vertexFormat. |
(package private) int[] |
texCoordSetMapOffset()
|
(package private) int |
textureOffset()
Returns the offset in number of floats from the start of a vertex to the per-vertex texture coordinate data. |
(package private) void |
unIndexify(IndexedGeometryArrayRetained src)
|
private void |
unIndexifyJavaArray(IndexedGeometryArrayRetained src)
|
private void |
unIndexifyNIOBuffer(IndexedGeometryArrayRetained src)
|
(package private) void |
update()
|
(package private) byte[] |
updateAlphaInByteRefColors(Canvas3D cv,
int screen,
float alpha)
|
(package private) float[] |
updateAlphaInFloatRefColors(Canvas3D cv,
int screen,
float alpha)
|
(package private) java.lang.Object[] |
updateAlphaInInterLeavedData(Canvas3D cv,
int screen,
float alpha)
|
(package private) java.lang.Object[] |
updateAlphaInVertexData(Canvas3D cv,
int screen,
float alpha)
|
(package private) void |
updateData(GeometryUpdater updater)
Updates geometry array data. |
(package private) void |
updateMirrorGeometry()
|
private void |
validateTexCoordPointerType()
|
private void |
validateVertexAttrPointerType()
|
(package private) int[] |
vertexAttrOffsets()
Returns the offset in number of floats from the start of a vertex to each per-vertex vertex attribute. |
(package private) int |
vertexAttrStride()
Returns the stride of the set of vertex attributes. |
Methods inherited from class javax.media.j3d.GeometryRetained |
---|
addUser, canBeInDisplayList, computeCentroid, decrComputeGeoBounds, doSetLive, getClassType, incrComputeGeoBounds, intersect, intersect, intersect, intersect, intersect, isEquivalenceClass, removeUser, storeInterestData, updateObject |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clone, copyMirrorUsers, createMirrorObject, decRefCnt, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, initMirrorObject, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, updateMirrorObject |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int vertexFormat
int c4fAllocated
int vertexCount
int validVertexCount
float[] vertexData
private float[][] mvertexData
int stride
int texCoordStride
int coordinateOffset
int normalOffset
int colorOffset
int textureOffset
int[] vertexAttrOffsets
int vertexAttrStride
private float[] lastAlpha
float lastScreenAlpha
int colorChanged
static final float ByteToFloatScale
static final float FloatToByteScale
boolean inUpdater
java.util.ArrayList gaList
static final int targetThreads
float[] floatRefCoords
double[] doubleRefCoords
Point3d[] p3dRefCoords
Point3f[] p3fRefCoords
J3DBuffer coordRefBuffer
FloatBufferWrapper floatBufferRefCoords
DoubleBufferWrapper doubleBufferRefCoords
int initialCoordIndex
int initialColorIndex
int initialNormalIndex
int[] initialTexCoordIndex
int[] initialVertexAttrIndex
int initialVertexIndex
float[] floatRefColors
byte[] byteRefColors
Color3f[] c3fRefColors
Color4f[] c4fRefColors
Color3b[] c3bRefColors
Color4b[] c4bRefColors
J3DBuffer colorRefBuffer
FloatBufferWrapper floatBufferRefColors
ByteBufferWrapper byteBufferRefColors
int vertexType
static final int PF
static final int PD
static final int P3F
static final int P3D
static final int VERTEX_DEFINED
static final int CF
static final int CUB
static final int C3F
static final int C4F
static final int C3UB
static final int C4UB
static final int COLOR_DEFINED
static final int NF
static final int N3F
static final int NORMAL_DEFINED
static final int TF
static final int T2F
static final int T3F
static final int TEXCOORD_DEFINED
static final int AF
static final int VATTR_DEFINED
private int texCoordType
private int vertexAttrType
static final int COORD_FLOAT
static final int COORD_DOUBLE
static final int COLOR_FLOAT
static final int COLOR_BYTE
static final int NORMAL_FLOAT
static final int TEXCOORD_FLOAT
static final int VATTR_FLOAT
float[] floatRefNormals
Vector3f[] v3fRefNormals
J3DBuffer normalRefBuffer
FloatBufferWrapper floatBufferRefNormals
float[][] floatRefVertexAttrs
J3DBuffer[] vertexAttrsRefBuffer
FloatBufferWrapper[] floatBufferRefVertexAttrs
java.lang.Object[] nioFloatBufferRefVertexAttrs
java.lang.Object[] refTexCoords
TexCoord2f[] t2fRefTexCoords
TexCoord3f[] t3fRefTexCoords
java.lang.Object[] refTexCoordsBuffer
float[] interLeavedVertexData
J3DBuffer interleavedVertexBuffer
FloatBufferWrapper interleavedFloatBufferImpl
float[] mirrorFloatRefCoords
double[] mirrorDoubleRefCoords
float[] mirrorFloatRefNormals
float[][] mirrorFloatRefVertexAttrs
float[] mirrorFloatRefTexCoords
java.lang.Object[] mirrorRefTexCoords
float[][] mirrorFloatRefColors
byte[][] mirrorUnsignedByteRefColors
float[][] mirrorInterleavedColorPointer
int mirrorVertexAllocated
int mirrorColorAllocated
boolean mirrorNormalAllocated
static final int COORDINATE_CHANGED
static final int NORMAL_CHANGED
static final int COLOR_CHANGED
static final int TEXTURE_CHANGED
static final int BOUNDS_CHANGED
static final int INDEX_CHANGED
static final int STRIPCOUNT_CHANGED
static final int VATTR_CHANGED
static final int VERTEX_CHANGED
static final int[] defaultTexCoordSetMap
int texCoordSetCount
int[] texCoordSetMap
int[] texCoordSetMapOffset
int vertexAttrCount
int[] vertexAttrSizes
long pVertexBuffers
int dirtyFlag
int resourceCreationMask
private java.util.HashMap dlistUsers
private long[] timeStampPerDlist
int dlistId
java.lang.Integer dlistObj
static final int INIT_MIRROR_GEOMETRY
java.util.ArrayList morphUniverseList
java.util.ArrayList morphUserLists
int[] geoOffset
int[] compileVcount
boolean isCompiled
boolean isShared
IndexedGeometryArrayRetained cloneSourceArray
static final double EPS
Constructor Detail |
---|
GeometryArrayRetained()
Method Detail |
---|
void freeD3DArray(boolean deleteVB)
void setLive(boolean inBackgroundGroup, int refCount)
setLive
in class GeometryRetained
void clearLive(int refCount)
clearLive
in class NodeComponentRetained
void computeBoundingBox()
computeBoundingBox
in class GeometryRetained
void processCoordsChanged(boolean nullGeo)
void computeBoundingBox(int vIndex, float[] vdata)
void computeBoundingBox(int vIndex, FloatBufferWrapper vdata)
void computeBoundingBox(DoubleBufferWrapper buffer)
void computeBoundingBox(FloatBufferWrapper buffer)
void computeBoundingBox(float[] coords)
void computeBoundingBox(double[] coords)
void computeBoundingBox(Point3f[] coords)
void computeBoundingBox(Point3d[] coords)
void update()
update
in class GeometryRetained
void setupMirrorVertexPointer(int vType)
void setupMirrorInterleavedColorPointer(boolean force)
void setupMirrorColorPointer(int ctype, boolean force)
void setupMirrorNormalPointer(int ntype)
void setupMirrorTexCoordPointer(int type)
void setupMirrorTexCoordPointer(int texCoordSet, int type)
private void validateTexCoordPointerType()
private void doSetupMirrorTexCoordPointer(int texCoordSet, int type)
void setupMirrorVertexAttrPointer(int type)
void setupMirrorVertexAttrPointer(int vertexAttrNum, int type)
private void validateVertexAttrPointerType()
private void doSetupMirrorVertexAttrPointer(int vertexAttrNum, int type)
void createGeometryArrayData(int vertexCount, int vertexFormat)
void createGeometryArrayData(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap)
void createGeometryArrayData(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int vertexAttrCount, int[] vertexAttrSizes)
void setVertexFormat(boolean useAlpha, boolean ignoreVC, Context ctx)
void disableGlobalAlpha(Context ctx, boolean useAlpha, boolean ignoreVC)
float[] updateAlphaInFloatRefColors(Canvas3D cv, int screen, float alpha)
byte[] updateAlphaInByteRefColors(Canvas3D cv, int screen, float alpha)
java.lang.Object[] updateAlphaInVertexData(Canvas3D cv, int screen, float alpha)
java.lang.Object[] updateAlphaInInterLeavedData(Canvas3D cv, int screen, float alpha)
void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)
execute
in class GeometryRetained
void buildGA(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, boolean ignoreVertexColors, Transform3D xform, Transform3D nxform)
void unIndexify(IndexedGeometryArrayRetained src)
private void unIndexifyJavaArray(IndexedGeometryArrayRetained src)
private void unIndexifyNIOBuffer(IndexedGeometryArrayRetained src)
int stride()
int[] texCoordSetMapOffset()
int vertexAttrStride()
int[] vertexAttrOffsets()
int textureOffset()
int colorOffset()
vertexFormat
- the vertex format for this array
int normalOffset()
int coordinateOffset()
int getVertexCount()
int getVertexFormat()
getVertexFormat
in class GeometryRetained
int getVertexAttrCount()
void getVertexAttrSizes(int[] vertexAttrSizes)
vertexAttrSizes
- an array that will receive a copy of
the vertex attribute sizes array. The array must hold at least
vertexAttrCount
elements.void sendDataChangedMessage(boolean coordinatesChanged)
void setCoordinate(int index, float[] coordinate)
index
- the vertex indexcoordinate
- an array of 3 values containing the new coordinatevoid setCoordinate(int index, double[] coordinate)
index
- the vertex indexcoordinate
- an array of 3 values containing the new coordinatevoid setCoordinate(int index, Point3f coordinate)
index
- the vertex indexcoordinate
- a vector containing the new coordinatevoid setCoordinate(int index, Point3d coordinate)
index
- the vertex indexcoordinate
- a vector containing the new coordinatevoid setCoordinates(int index, float[] coordinates)
index
- the vertex indexcoordinates
- an array of 3*n values containing n new coordinatesvoid setCoordinates(int index, double[] coordinates)
index
- the vertex indexcoordinates
- an array of 3*n values containing n new coordinatesvoid setCoordinates(int index, Point3f[] coordinates)
index
- the vertex indexcoordinates
- an array of vectors containing new coordinatesvoid setCoordinates(int index, Point3d[] coordinates)
index
- the vertex indexcoordinates
- an array of vectors containing new coordinatesvoid setCoordinates(int index, float[] coordinates, int start, int length)
start
for length
vertices.
index
- the vertex indexcoordinates
- an array of vectors containing new coordinatesstart
- starting vertex index of data in coordinates
.length
- number of vertices to be copied.void setCoordinates(int index, double[] coordinates, int start, int length)
start
for length
vertices.
index
- the vertex indexcoordinates
- an array of 3*n values containing n new coordinatesstart
- starting vertex index of data in coordinates
.length
- number of vertices to be copied.void setCoordinates(int index, Point3f[] coordinates, int start, int length)
start
for length
vertices.
index
- the vertex indexcoordinates
- an array of vectors containing new coordinatesstart
- starting vertex index of data in coordinates
.length
- number of vertices to be copied.void setCoordinates(int index, Point3d[] coordinates, int start, int length)
start
for length
vertices.
index
- the vertex indexcoordinates
- an array of vectors containing new coordinatesstart
- starting vertex index of data in coordinates
.length
- number of vertices to be copied.void setColor(int index, float[] color)
index
- the vertex indexcolor
- an array of 3 or 4 values containing the new colorvoid setColor(int index, byte[] color)
index
- the vertex indexcolor
- an array of 3 or 4 values containing the new colorvoid setColor(int index, Color3f color)
index
- the vertex indexcolor
- a vector containing the new colorvoid setColor(int index, Color4f color)
index
- the vertex indexcolor
- a vector containing the new colorvoid setColor(int index, Color3b color)
index
- the vertex indexcolor
- a vector containing the new colorvoid setColor(int index, Color4b color)
index
- the vertex indexcolor
- a vector containing the new colorvoid setColors(int index, float[] colors)
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsvoid setColors(int index, byte[] colors)
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsvoid setColors(int index, Color3f[] colors)
index
- the vertex indexcolors
- an array of vectors containing new colorsvoid setColors(int index, Color4f[] colors)
index
- the vertex indexcolors
- an array of vectors containing new colorsvoid setColors(int index, Color3b[] colors)
index
- the vertex indexcolors
- an array of vectors containing new colorsvoid setColors(int index, Color4b[] colors)
index
- the vertex indexcolors
- an array of vectors containing new colorsvoid setColors(int index, float[] colors, int start, int length)
color
s
starting at index start
for length
colors.
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsstart
- starting color index of data in colors
.length
- number of colors to be copied.void setColors(int index, byte[] colors, int start, int length)
color
s
starting at index start
for length
colors.
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsstart
- starting color index of data in colors
.length
- number of colors to be copied.void setColors(int index, Color3f[] colors, int start, int length)
color
s
starting at index start
for length
colors.
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsstart
- starting color index of data in colors
.length
- number of colors to be copied.void setColors(int index, Color4f[] colors, int start, int length)
color
s
starting at index start
for length
colors.
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsstart
- starting color index of data in colors
.length
- number of colors to be copied.void setColors(int index, Color3b[] colors, int start, int length)
color
s
starting at index start
for length
colors.
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsstart
- starting color index of data in colors
.length
- number of colors to be copied.void setColors(int index, Color4b[] colors, int start, int length)
color
s
starting at index start
for length
colors.
index
- the vertex indexcolors
- an array of 3*n or 4*n values containing n new colorsstart
- starting color index of data in colors
.length
- number of colors to be copied.void setNormal(int index, float[] normal)
index
- the vertex indexnormal
- the new normalvoid setNormal(int index, Vector3f normal)
index
- the vertex indexnormal
- the vector containing the new normalvoid setNormals(int index, float[] normals)
index
- the vertex indexnormals
- the new normalsvoid setNormals(int index, Vector3f[] normals)
index
- the vertex indexnormals
- the vector containing the new normalsvoid setNormals(int index, float[] normals, int start, int length)
normals
starting at index start
and ending at index start+length
.
index
- the vertex indexnormals
- the new normalsstart
- starting normal index of data in colors
.length
- number of normals to be copied.void setNormals(int index, Vector3f[] normals, int start, int length)
normals
starting at index start
and ending at index start+length
.
index
- the vertex indexnormals
- the new normalsstart
- starting normal index of data in colors
.length
- number of normals to be copied.void setTextureCoordinates(int texCoordSet, int index, float[] texCoords, int start, int length)
texCoords
starting at index start
and ending at index start+length
.
index
- the vertex indextexCoords
- the new texture coordinatesstart
- starting texture coordinate index of data in texCoords
.length
- number of texture Coordinates to be copied.void setTextureCoordinates(int texCoordSet, int index, Point2f[] texCoords, int start, int length)
texCoords
starting at index start
and ending at index start+length
.
index
- the vertex indextexCoords
- the new texture coordinatesstart
- starting texture coordinate index of data in texCoords
.length
- number of texture Coordinates to be copied.void setTextureCoordinates(int texCoordSet, int index, Point3f[] texCoords, int start, int length)
texCoords
starting at index start
and ending at index start+length
.
index
- the vertex indextexCoords
- the new texture coordinatesstart
- starting texture coordinate index of data in texCoords
.length
- number of texture Coordinates to be copied.void setTextureCoordinates(int texCoordSet, int index, TexCoord2f[] texCoords, int start, int length)
texCoords
starting at index start
and ending at index start+length
.
index
- the vertex indextexCoords
- the new texture coordinatesstart
- starting texture coordinate index of data in texCoords
.length
- number of texture Coordinates to be copied.void setTextureCoordinates(int texCoordSet, int index, TexCoord3f[] texCoords, int start, int length)
texCoords
starting at index start
and ending at index start+length
.
index
- the vertex indextexCoords
- the new texture coordinatesstart
- starting texture coordinate index of data in texCoords
.length
- number of texture Coordinates to be copied.void setTextureCoordinates(int texCoordSet, int index, TexCoord4f[] texCoords, int start, int length)
texCoords
starting at index start
and ending at index start+length
.
index
- the vertex indextexCoords
- the new texture coordinatesstart
- starting texture coordinate index of data in texCoords
.length
- number of texture Coordinates to be copied.void setVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)
vertexAttrNum
- vertex attribute number in this geometry arrayindex
- destination vertex index in this geometry arrayvertexAttr
- the Point2f containing the new vertex attributevoid setVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)
vertexAttrNum
- vertex attribute number in this geometry arrayindex
- destination vertex index in this geometry arrayvertexAttr
- the Point3f containing the new vertex attributevoid setVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)
vertexAttrNum
- vertex attribute number in this geometry arrayindex
- destination vertex index in this geometry arrayvertexAttr
- the Point4f containing the new vertex attributevoid setVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs, int start, int length)
vertexAttrs
starting at index start
and
ending at index start+length
.
index
- starting destination vertex index in this geometry arrayvertexAttrs
- source array of 1*n, 2*n, 3*n, or 4*n values
containing n new vertex attributesstart
- starting source vertex index in vertexAttrs
array.length
- number of vertex attributes to be copied.void setVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs, int start, int length)
vertexAttrs
starting at index start
and
ending at index start+length
.
vertexAttrNum
- vertex attribute number in this geometry arrayindex
- starting destination vertex index in this geometry arrayvertexAttrs
- source array of Point2f objects containing new
vertex attributesstart
- starting source vertex index in vertexAttrs
array.length
- number of vertex attributes to be copied.void setVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs, int start, int length)
vertexAttrs
starting at index start
and
ending at index start+length
.
vertexAttrNum
- vertex attribute number in this geometry arrayindex
- starting destination vertex index in this geometry arrayvertexAttrs
- source array of Point3f objects containing new
vertex attributesstart
- starting source vertex index in vertexAttrs
array.length
- number of vertex attributes to be copied.void setVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs, int start, int length)
vertexAttrs
starting at index start
and
ending at index start+length
.
vertexAttrNum
- vertex attribute number in this geometry arrayindex
- starting destination vertex index in this geometry arrayvertexAttrs
- source array of Point4f objects containing new
vertex attributesstart
- starting source vertex index in vertexAttrs
array.length
- number of vertex attributes to be copied.void getCoordinate(int index, float[] coordinate)
index
- the vertex indexcoordinate
- an array of 3 values that will receive the new coordinatevoid getCoordinate(int index, double[] coordinate)
index
- the vertex indexcoordinate
- an array of 3 values that will receive the new coordinatevoid getCoordinate(int index, Point3f coordinate)
index
- the vertex indexcoordinate
- a vector that will receive the new coordinatevoid getCoordinate(int index, Point3d coordinate)
index
- the vertex indexcoordinate
- a vector that will receive the new coordinatevoid getCoordinates(int index, float[] coordinates)
index
- the vertex indexcoordinates
- an array of 3*n values that will receive new coordinatesvoid getCoordinates(int index, double[] coordinates)
index
- the vertex indexcoordinates
- an array of 3*n values that will receive new coordinatesvoid getCoordinates(int index, Point3f[] coordinates)
index
- the vertex indexcoordinates
- an array of vectors that will receive new coordinatesvoid getCoordinates(int index, Point3d[] coordinates)
index
- the vertex indexcoordinates
- an array of vectors that will receive new coordinatesvoid getColor(int index, float[] color)
index
- the vertex indexcolor
- an array of 3 or 4 values that will receive the new colorvoid getColor(int index, byte[] color)
index
- the vertex indexcolor
- an array of 3 or 4 values that will receive the new colorvoid getColor(int index, Color3f color)
index
- the vertex indexcolor
- a vector that will receive the new colorvoid getColor(int index, Color4f color)
index
- the vertex indexcolor
- a vector that will receive the new colorvoid getColor(int index, Color3b color)
index
- the vertex indexcolor
- a vector that will receive the new colorvoid getColor(int index, Color4b color)
index
- the vertex indexcolor
- a vector that will receive the new colorvoid getColors(int index, float[] colors)
index
- the vertex indexcolors
- an array of 3*n or 4*n values that will receive n new colorsvoid getColors(int index, byte[] colors)
index
- the vertex indexcolors
- an array of 3*n or 4*n values that will receive new colorsvoid getColors(int index, Color3f[] colors)
index
- the vertex indexcolors
- an array of vectors that will receive new colorsvoid getColors(int index, Color4f[] colors)
index
- the vertex indexcolors
- an array of vectors that will receive new colorsvoid getColors(int index, Color3b[] colors)
index
- the vertex indexcolors
- an array of vectors that will receive new colorsvoid getColors(int index, Color4b[] colors)
index
- the vertex indexcolors
- an array of vectors that will receive new colorsvoid getNormal(int index, float[] normal)
index
- the vertex indexnormal
- array that will receive the new normalvoid getNormal(int index, Vector3f normal)
index
- the vertex indexnormal
- the vector that will receive the new normalvoid getNormals(int index, float[] normals)
index
- the vertex indexnormals
- array that will receive the new normalsvoid getNormals(int index, Vector3f[] normals)
index
- the vertex indexnormals
- the vector that will receive the new normalsvoid getTextureCoordinate(int texCoordSet, int index, float[] texCoord)
index
- the vertex indextexCoord
- array that will receive the new texture co-ordinatevoid getTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)
index
- the vertex indextexCoord
- the vector that will receive the new texture co-ordinatesvoid getTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)
index
- the vertex indextexCoord
- the vector that will receive the new texture co-ordinatesvoid getTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)
index
- the vertex indextexCoord
- the vector that will receive the new texture co-ordinatesvoid getTextureCoordinates(int texCoordSet, int index, float[] texCoords)
index
- the vertex indextexCoords
- array that will receive the new texture co-ordinatesvoid getTextureCoordinates(int texCoordSet, int index, TexCoord2f[] texCoords)
index
- the vertex indextexCoords
- the vector that will receive the new texture co-ordinatesvoid getTextureCoordinates(int texCoordSet, int index, TexCoord3f[] texCoords)
index
- the vertex indextexCoords
- the vector that will receive the new texture co-ordinatesvoid getTextureCoordinates(int texCoordSet, int index, TexCoord4f[] texCoords)
index
- the vertex indextexCoords
- the vector that will receive the new texture co-ordinatesvoid getTextureCoordinates(int texCoordSet, int index, Point2f[] texCoords)
void getTextureCoordinates(int texCoordSet, int index, Point3f[] texCoords)
public void getVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)
public void getVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)
public void getVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)
public void getVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)
public void getVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)
public void getVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)
public void getVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)
public void getVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)
void updateData(GeometryUpdater updater)
boolean intersectBoundingBox(Point3d[] coordinates, BoundingBox box, double[] dist, Point3d iPnt)
boolean intersectBoundingSphere(Point3d[] coordinates, BoundingSphere sphere, double[] dist, Point3d iPnt)
boolean intersectBoundingPolytope(Point3d[] coordinates, BoundingPolytope polytope, double[] dist, Point3d iPnt)
double generalStandardSimplexSolver(double[][] problemTableau, double stopingValue)
boolean edgeIntersectSphere(BoundingSphere sphere, Point3d start, Point3d end)
double det2D(Point2d a, Point2d b, Point2d p)
boolean pointIntersectPolygon2D(Vector3d normal, Point3d[] coord, Point3d point)
boolean edgeIntersectPlane(Vector3d normal, Point3d pnt, Point3d start, Point3d end, Point3d iPnt)
boolean edgeIntersectPolygon2D(Vector3d normal, Point3d[] coord, Point3d[] seg)
double getCompValue(Point3d v, int i)
double getCompValue(Point3d v0, Point3d v1, int i)
boolean pointInTri(Point3d v0, Point3d u0, Point3d u1, Point3d u2, Vector3d normal)
boolean pointInTri(Point3d v0, Point3d u0, Point3d u1, Point3d u2, int i0, int i1)
boolean edgeAgainstEdge(Point3d v0, Point3d u0, Point3d u1, double aX, double aY, int i0, int i1)
boolean edgeAgainstTriEdges(Point3d v0, Point3d v1, Point3d u0, Point3d u1, Point3d u2, int i0, int i1)
boolean coplanarTriTri(Vector3d normal, Point3d v0, Point3d v1, Point3d v2, Point3d u0, Point3d u1, Point3d u2)
boolean intersectTriPnt(Point3d v0, Point3d v1, Point3d v2, Point3d u)
boolean intersectTriTri(Point3d v0, Point3d v1, Point3d v2, Point3d u0, Point3d u1, Point3d u2)
boolean intersectPolygon(Point3d[] coord1, Point3d[] coord2)
boolean intersectRay(Point3d[] coordinates, PickRay ray, double[] dist, Point3d iPnt)
boolean intersectSegment(Point3d[] coordinates, Point3d start, Point3d end, double[] dist, Point3d iPnt)
boolean intersectRayOrSegment(Point3d[] coordinates, Vector3d direction, Point3d origin, double[] dist, Point3d iPnt, boolean isSegment)
static final boolean isNonZero(double v)
boolean inside(Point3d[] coordinates, PickPoint point, int ccw)
boolean intersectPntAndPnt(Point3d pnt1, Point3d pnt2)
boolean intersectPntAndRay(Point3d pnt, Point3d ori, Vector3d dir, double[] dist)
boolean intersectLineAndRay(Point3d start, Point3d end, Point3d ori, Vector3d dir, double[] dist, Point3d iPnt)
boolean intersectCylinder(Point3d[] coordinates, PickCylinder cyl, double[] dist, Point3d iPnt)
boolean intersectCone(Point3d[] coordinates, PickCone cone, double[] dist, Point3d iPnt)
boolean intersectCylinder(Point3d pt, PickCylinder cyl, double[] dist)
boolean intersectCone(Point3d pt, PickCone cone, double[] dist)
void setCoordRefBuffer(J3DBuffer coords)
J3DBuffer getCoordRefBuffer()
void setCoordRefFloat(float[] coords)
float[] getCoordRefFloat()
void setCoordRefDouble(double[] coords)
double[] getCoordRefDouble()
void setCoordRef3f(Point3f[] coords)
Point3f[] getCoordRef3f()
void setCoordRef3d(Point3d[] coords)
Point3d[] getCoordRef3d()
void setColorRefFloat(float[] colors)
float[] getColorRefFloat()
void setColorRefBuffer(J3DBuffer colors)
J3DBuffer getColorRefBuffer()
void setColorRefByte(byte[] colors)
byte[] getColorRefByte()
void setColorRef3f(Color3f[] colors)
Color3f[] getColorRef3f()
void setColorRef4f(Color4f[] colors)
Color4f[] getColorRef4f()
void setColorRef3b(Color3b[] colors)
Color3b[] getColorRef3b()
void setColorRef4b(Color4b[] colors)
Color4b[] getColorRef4b()
void setNormalRefFloat(float[] normals)
float[] getNormalRefFloat()
void setNormalRefBuffer(J3DBuffer normals)
J3DBuffer getNormalRefBuffer()
void setNormalRef3f(Vector3f[] normals)
Vector3f[] getNormalRef3f()
final int getColorStride()
final int getTexStride()
void setTexCoordRefFloat(int texCoordSet, float[] texCoords)
float[] getTexCoordRefFloat(int texCoordSet)
void setTexCoordRefBuffer(int texCoordSet, J3DBuffer texCoords)
J3DBuffer getTexCoordRefBuffer(int texCoordSet)
void setTexCoordRef2f(int texCoordSet, TexCoord2f[] texCoords)
TexCoord2f[] getTexCoordRef2f(int texCoordSet)
void setTexCoordRef3f(int texCoordSet, TexCoord3f[] texCoords)
TexCoord3f[] getTexCoordRef3f(int texCoordSet)
void setVertexAttrRefFloat(int vertexAttrNum, float[] vertexAttrs)
float[] getVertexAttrRefFloat(int vertexAttrNum)
void setVertexAttrRefBuffer(int vertexAttrNum, J3DBuffer vertexAttrs)
J3DBuffer getVertexAttrRefBuffer(int vertexAttrNum)
void setInterleavedVertices(float[] vertexData)
void setInterleavedVertexBuffer(J3DBuffer vertexData)
float[] getInterleavedVertices()
J3DBuffer getInterleavedVertexBuffer()
void setValidVertexCount(int validVertexCount)
int getValidVertexCount()
void setInitialVertexIndex(int initialVertexIndex)
int getInitialVertexIndex()
void setInitialCoordIndex(int initialCoordIndex)
int getInitialCoordIndex()
void setInitialColorIndex(int initialColorIndex)
int getInitialColorIndex()
void setInitialNormalIndex(int initialNormalIndex)
int getInitialNormalIndex()
void setInitialVertexAttrIndex(int vertexAttrNum, int initialVertexAttrIndex)
int getInitialVertexAttrIndex(int vertexAttrNum)
void setInitialTexCoordIndex(int texCoordSet, int initialTexCoordIndex)
int getInitialTexCoordIndex(int texCoordSet)
int getTexCoordSetCount()
int getTexCoordSetMapLength()
void getTexCoordSetMap(int[] texCoordSetMap)
void freeDlistId()
void assignDlistId()
void addDlistUser(RenderBin renderBin, RenderAtomListInfo ra)
void removeDlistUser(RenderBin renderBin, RenderAtomListInfo ra)
boolean isDlistUserSetEmpty(RenderBin renderBin)
int numDlistUsers(RenderBin renderBin)
void setDlistTimeStamp(int rdrBit, long timeStamp)
long getDlistTimeStamp(int rdrBit)
int getIndex(int bit)
boolean isWriteStatic()
void setCompiled(java.util.ArrayList curList)
void mergeGeometryArrays(java.util.ArrayList list)
boolean isMergeable()
void compile(CompileState compState)
SceneGraphObjectRetained
compile
in class SceneGraphObjectRetained
void mergeTransform(TransformGroupRetained xform)
mergeTransform
in class SceneGraphObjectRetained
void addMorphUser(MorphRetained m)
void removeMorphUser(MorphRetained m)
void initMirrorGeometry()
void updateMirrorGeometry()
void getVertexData(int i, Point3d pnts)
void getCrossValue(Point3d p1, Point3d p2, Vector3d value)
boolean intersect(Transform3D thisLocalToVworld, Transform3D otherLocalToVworld, GeometryRetained geom)
intersect
in class GeometryRetained
int getNumCoordCount()
int getNumColorCount()
int getNumNormalCount()
int getNumTexCoordCount(int i)
void computeMinDistance(Point3d[] coordinates, Point3d center, Vector3d normal, double[] dist, Point3d iPnt)
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
int getTexCoordType()
int getVertexAttrType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |