| java.lang.Object javax.media.j3d.IndexedObject javax.media.j3d.SceneGraphObjectRetained javax.media.j3d.NodeComponentRetained javax.media.j3d.GeometryRetained javax.media.j3d.CompressedGeometryRetained
CompressedGeometryRetained | class CompressedGeometryRetained extends GeometryRetained (Code) | | The compressed geometry object is used to store geometry in a
compressed format. Using compressed geometry reduces the amount
of memory needed by a Java 3D application and increases the speed
objects can be sent over the network. Once geometry decompression
hardware support becomes available, increased rendering performance
will also result from the use of compressed geometry.
|
Method Summary | |
void | computeBoundingBox() Compressed geometry is immutable so this method does nothing. | void | copy(byte[] buff) Copies compressed geometry data into the given array of bytes. | void | createCompressedGeometry(CompressedGeometryHeader hdr, byte[] geometry, boolean byReference) Creates the retained compressed geometry data. | void | duplicate(CompressedGeometryRetained cgr) Copies all retained data for cloneNodeComponent() on the non-retained
side. | void | execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors) Method for calling native execute() method on behalf of the J3D renderer. | int | getBufferType() Return a buffer type that's compatible with CompressedGeometryHeader. | int | getClassType() | GeometryRetained | getGeometry(boolean forceDecompression, Canvas3D cv) Decompress this object into a GeometryArrayRetained if hardware
decompression is not available. | GeometryRetained | getPickGeometry() This method always decompresses the geometry and retains the result in
order to support geometry-based picking and collision detection. | byte[] | getReference() Returns a reference to the original compressed geometry byte array,
which may have been copied even if by-reference semantics have been
requested. | int | getVertexFormat() Return a vertex format mask that's compatible with GeometryArray
objects. | boolean | intersect(PickShape pickShape, PickInfo pickInfo, int flags, Point3d iPnt, GeometryRetained geom, int geomIndex) | boolean | intersect(Bounds targetBound) | boolean | intersect(Transform3D thisToOtherVworld, GeometryRetained g) | boolean | intersect(Point3d[] pnts) | boolean | isByReference() Return true if the data access mode is by-reference. | void | update() Update this object. |
TYPE_LINE | final static byte TYPE_LINE(Code) | | |
TYPE_POINT | final static byte TYPE_POINT(Code) | | |
TYPE_TRIANGLE | final static byte TYPE_TRIANGLE(Code) | | |
bufferContents | int bufferContents(Code) | | |
bufferType | int bufferType(Code) | | |
compressedGeometry | byte[] compressedGeometry(Code) | | |
majorVersionNumber | int majorVersionNumber(Code) | | |
minorMinorVersionNumber | int minorMinorVersionNumber(Code) | | |
minorVersionNumber | int minorVersionNumber(Code) | | |
packedVersion | int packedVersion(Code) | | |
renderFlags | int renderFlags(Code) | | |
CompressedGeometryRetained | CompressedGeometryRetained()(Code) | | The package-scoped constructor.
|
computeBoundingBox | void computeBoundingBox()(Code) | | Compressed geometry is immutable so this method does nothing.
|
copy | void copy(byte[] buff)(Code) | | Copies compressed geometry data into the given array of bytes.
The internal header information is not copied.
Parameters: buff - array of bytes into which to copy compressed geometry |
createCompressedGeometry | void createCompressedGeometry(CompressedGeometryHeader hdr, byte[] geometry, boolean byReference)(Code) | | Creates the retained compressed geometry data. Data from the header is
always copied; the compressed geometry is copied as well if the data
access mode is not by-reference.
Parameters: hdr - the compressed geometry header Parameters: geometry - the compressed geometry Parameters: byReference - if true then by-reference semantics requested |
duplicate | void duplicate(CompressedGeometryRetained cgr)(Code) | | Copies all retained data for cloneNodeComponent() on the non-retained
side. This is unlike GeometryArray subclasses which just call the
public API constructors and then duplicateNodeComponent() to invoke the
GeometryArray implementation of duplicateAttributes(), since the
CompressedGeometry class directly subclasses Geometry and calling the
public constructors would cause a lot of redundant data copying.
|
execute | void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)(Code) | | Method for calling native execute() method on behalf of the J3D renderer.
|
getBufferType | int getBufferType()(Code) | | Return a buffer type that's compatible with CompressedGeometryHeader.
|
getClassType | int getClassType()(Code) | | |
getGeometry | GeometryRetained getGeometry(boolean forceDecompression, Canvas3D cv)(Code) | | Decompress this object into a GeometryArrayRetained if hardware
decompression is not available. Once decompressed the resulting
geometry replaces the geometry reference in the associated RenderAtom
as well as the mirror geometry reference in this object.
|
getPickGeometry | GeometryRetained getPickGeometry()(Code) | | This method always decompresses the geometry and retains the result in
order to support geometry-based picking and collision detection. The
returned GeometryRetained object will contain only positions and
connections.
|
getReference | byte[] getReference()(Code) | | Returns a reference to the original compressed geometry byte array,
which may have been copied even if by-reference semantics have been
requested. It will be null if byCopy is in effect.
reference to array of bytes containing the compressed geometry. |
getVertexFormat | int getVertexFormat()(Code) | | Return a vertex format mask that's compatible with GeometryArray
objects.
|
intersect | boolean intersect(Point3d[] pnts)(Code) | | |
isByReference | boolean isByReference()(Code) | | Return true if the data access mode is by-reference.
|
update | void update()(Code) | | Update this object. Compressed geometry is immutable so there's
nothing to do.
|
Methods inherited from javax.media.j3d.GeometryRetained | void addUser(Shape3DRetained s)(Code)(Java Doc) boolean canBeInDisplayList(boolean alphaEditable)(Code)(Java Doc) abstract void computeBoundingBox()(Code)(Java Doc) void computeCentroid()(Code)(Java Doc) void decrComputeGeoBounds()(Code)(Java Doc) void doSetLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc) abstract void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)(Code)(Java Doc) abstract int getClassType()(Code)(Java Doc) int getVertexFormat()(Code)(Java Doc) void incrComputeGeoBounds()(Code)(Java Doc) abstract boolean intersect(PickShape pickShape, PickInfo pickInfo, int flags, Point3d iPnt, GeometryRetained geom, int geomIndex)(Code)(Java Doc) abstract boolean intersect(Bounds targetBound)(Code)(Java Doc) abstract boolean intersect(Point3d[] pnts)(Code)(Java Doc) abstract boolean intersect(Transform3D thisToOtherVworld, GeometryRetained geom)(Code)(Java Doc) boolean intersect(Transform3D thisLocalToVworld, Transform3D otherLocalToVworld, GeometryRetained geom)(Code)(Java Doc) boolean intersect(Transform3D thisLocalToVworld, Bounds targetBound)(Code)(Java Doc) boolean isEquivalenceClass(GeometryRetained geometry)(Code)(Java Doc) void removeUser(Shape3DRetained s)(Code)(Java Doc) void setLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc) void storeInterestData(PickInfo pickInfo, int flags, GeometryRetained geom, int geomIndex, int[] vtxIndexArr, Point3d iPnt, double dist)(Code)(Java Doc) abstract void update()(Code)(Java Doc) public void updateObject()(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.IndexedObject | int[][] listIdx(Code)(Java Doc)
|
|
|