Class DepthComponentInt
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.NodeComponent
javax.media.j3d.DepthComponent
javax.media.j3d.DepthComponentInt
A 2D array of depth (Z) values in integer format. Values are in the
range [0,(2**N)-1], where N is the pixel depth of the Z buffer.
-
Field Summary
Fields inherited from class DepthComponent
ALLOW_DATA_READ, ALLOW_SIZE_READ -
Constructor Summary
ConstructorsConstructorDescriptionDepthComponentInt(int width, int height) Constructs a new integer depth (z-buffer) component object with the specified width and height. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.replaced with cloneNodeComponent(boolean forceDuplicate)voidgetDepthData(int[] depthData) Copies the depth data from this object to the specified array.voidsetDepthData(int[] depthData) Copies the specified depth data to this object.Methods inherited from class DepthComponent
getHeight, getWidthMethods inherited from class NodeComponent
cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
-
Constructor Details
-
DepthComponentInt
public DepthComponentInt(int width, int height) Constructs a new integer 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
-
-
Method Details
-
setDepthData
public void setDepthData(int[] depthData) Copies the specified depth data to this object.- Parameters:
depthData- array of ints containing the depth data- Throws:
RestrictedAccessException- if the method is called when this object is part of live or compiled scene graph.
-
getDepthData
public void getDepthData(int[] depthData) Copies the depth data from this object to the specified array. The array must be large enough to hold all of the ints.- Parameters:
depthData- array of ints that will receive a copy of the depth data- Throws:
CapabilityNotSetException- if appropriate capability is not set and this object is part of live or compiled scene graph
-
cloneNodeComponent
Deprecated.replaced with cloneNodeComponent(boolean forceDuplicate)- Overrides:
cloneNodeComponentin classNodeComponent
-