public class DepthComponentNative extends DepthComponent
ALLOW_DATA_READ, ALLOW_SIZE_READforceDuplicatenodeHashtable, retained| Constructor and Description |
|---|
DepthComponentNative()
Package scope defualt constructor for use by cloneNodeComponent
|
DepthComponentNative(int width,
int height)
Constructs a new native depth (z-buffer) component object with the
specified width and height.
|
| Modifier and Type | Method and Description |
|---|---|
NodeComponent |
cloneNodeComponent()
Creates a new DepthComponentNative object.
|
(package private) void |
createRetained()
Creates a retained mode DepthComponentIntRetained object that this
DepthComponentInt component object will point to.
|
(package private) void |
duplicateAttributes(NodeComponent originalNodeComponent,
boolean forceDuplicate)
Copies all node information from
originalNodeComponent into
the current node. |
(package private) void |
getDepthData(int[] depthData)
Copies the depth data from this object to the specified array.
|
getHeight, getWidthcheckDuplicateNodeComponent, cloneNodeComponent, duplicateChild, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree, validateImageIllegalSharingcapabilityBitsEmpty, checkForLiveOrCompiled, clearCapability, clearCapabilityIsFrequent, clearLive, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getNamePrefix, getNodeComponent, getUserData, isCompiled, isLive, isLiveOrCompiled, setCapability, setCapabilityIsFrequent, setCompiled, setDefaultReadCapabilities, setLive, setName, setUserData, toString, updateNodeReferencesDepthComponentNative()
public DepthComponentNative(int width,
int height)
width - the width of the array of depth valuesheight - the height of the array of depth valuesvoid getDepthData(int[] depthData)
depthData - array of ints that will receive a copy of
the depth datavoid createRetained()
createRetained in class NodeComponentpublic NodeComponent cloneNodeComponent()
duplicateNode method.cloneNodeComponent in class NodeComponentNode.duplicateNode(javax.media.j3d.Node, boolean),
Node.cloneTree(),
NodeComponent.setDuplicateOnCloneTree(boolean)void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)
originalNodeComponent into
the current node. This method is called from the
duplicateNode method. This routine does
the actual duplication of all "local data" (any data defined in
this object).duplicateAttributes in class NodeComponentoriginalNodeComponent - the original node to duplicate.forceDuplicate - when set to true, causes the
duplicateOnCloneTree flag to be ignored. When
false, the value of each node's
duplicateOnCloneTree variable determines whether
NodeComponent data is duplicated or copied.Node.cloneTree(),
NodeComponent.setDuplicateOnCloneTree(boolean)Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.