javax.media.j3d
Class DepthComponentFloatRetained
java.lang.Object
javax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.DepthComponentRetained
javax.media.j3d.DepthComponentFloatRetained
- All Implemented Interfaces:
- java.lang.Cloneable
class DepthComponentFloatRetained
- extends DepthComponentRetained
A 2D array of depth (Z) values in floating point format in the range [0,1].
A value of 0.0 indicates the closest Z value to the user while a value of
1.0 indicates the farthest Z value.
Field Summary |
(package private) float[] |
depthData
|
Method Summary |
(package private) void |
getDepthData(float[] depthData)
Copies the depth data from this object to the specified array. |
(package private) void |
initialize(int width,
int height)
Constructs a new floating-point depth (z-buffer) component object with
the specified width and height. |
(package private) void |
retrieveDepth(float[] buf,
int wRead,
int hRead)
|
(package private) void |
setDepthData(float[] depthData)
Copies the specified depth data to this object. |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, createMirrorObject, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, initMirrorObject, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLive, updateMirrorObject |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, handleFrequencyChange, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
depthData
float[] depthData
DepthComponentFloatRetained
DepthComponentFloatRetained()
initialize
void initialize(int width,
int height)
- Constructs a new floating-point depth (z-buffer) component object with
the specified width and height.
- Parameters:
width
- the width of the array of depth valuesheight
- the height of the array of depth values
setDepthData
void setDepthData(float[] depthData)
- Copies the specified depth data to this object.
- Parameters:
depthData
- array of floats containing the depth data
getDepthData
void getDepthData(float[] depthData)
- Copies the depth data from this object to the specified array.
- Parameters:
depthData
- array of floats that will receive a copy of
the depth data
retrieveDepth
final void retrieveDepth(float[] buf,
int wRead,
int hRead)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.