Class DepthComponentNative
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.NodeComponent
javax.media.j3d.DepthComponent
javax.media.j3d.DepthComponentNative
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
Fields inherited from class DepthComponent
ALLOW_DATA_READ, ALLOW_SIZE_READ -
Constructor Summary
ConstructorsConstructorDescriptionDepthComponentNative(int width, int height) Constructs a new native depth (z-buffer) component object with the specified width and height. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new DepthComponentNative object.Methods inherited from class DepthComponent
getHeight, getWidthMethods inherited from class NodeComponent
cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
-
Constructor Details
-
DepthComponentNative
public DepthComponentNative(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 valuesheight- the height of the array of depth values
-
-
Method Details
-
cloneNodeComponent
Creates a new DepthComponentNative object. Called from a Leaf node'sduplicateNodemethod.- Overrides:
cloneNodeComponentin classNodeComponent- Returns:
- a duplicate of the DepthComponentNative object.
- See Also:
-