javax.media.j3d
Class DepthComponentNativeRetained

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.DepthComponentNativeRetained
All Implemented Interfaces:
java.lang.Cloneable

 class DepthComponentNativeRetained
extends DepthComponentRetained

A 2D array of depth (Z) values stored in the most efficient format for a particular device. Values are not accessible by the user and may only be used to read the Z values and subsequently write them back.


Field Summary
(package private)  int[] 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
DepthComponentNativeRetained()
           
 
Method Summary
(package private)  void getDepthData(int[] depthData)
          Copies the depth data from this object to the specified array.
(package private)  void initialize(int width, int height)
          Constructs a new native depth (z-buffer) component object with the specified width and height.
(package private)  void retrieveDepth(int[] buf, int wRead, int hRead)
          retrieve depth data from input buffer
 
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

int[] depthData
Constructor Detail

DepthComponentNativeRetained

DepthComponentNativeRetained()
Method Detail

initialize

void initialize(int width,
                int height)
Constructs a new native 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

getDepthData

void getDepthData(int[] depthData)
Copies the depth data from this object to the specified array.

Parameters:
depthData - array of ints that will receive a copy of the depth data

retrieveDepth

final void retrieveDepth(int[] buf,
                         int wRead,
                         int hRead)
retrieve depth data from input buffer



Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.