javax.media.j3d
Class DepthComponentFloatRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeComponentRetained
              extended by javax.media.j3d.DepthComponentRetained
                  extended by 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
           
 
Fields inherited from class javax.media.j3d.DepthComponentRetained
DEPTH_COMPONENT_TYPE_FLOAT, DEPTH_COMPONENT_TYPE_INT, DEPTH_COMPONENT_TYPE_NATIVE, height, type, width
 
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
DepthComponentFloatRetained()
           
 
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.DepthComponentRetained
getHeight, getWidth
 
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 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

depthData

float[] depthData
Constructor Detail

DepthComponentFloatRetained

DepthComponentFloatRetained()
Method Detail

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 values
height - 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.