|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.NodeComponent
javax.media.j3d.DepthComponent
javax.media.j3d.DepthComponentInt
public class 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 javax.media.j3d.DepthComponent |
---|
ALLOW_DATA_READ, ALLOW_SIZE_READ |
Fields inherited from class javax.media.j3d.NodeComponent |
---|
forceDuplicate |
Fields inherited from class javax.media.j3d.SceneGraphObject |
---|
nodeHashtable, retained |
Constructor Summary | |
---|---|
DepthComponentInt()
Package scope default constructor |
|
DepthComponentInt(int width,
int height)
Constructs a new integer depth (z-buffer) component object with the specified width and height. |
Method Summary | |
---|---|
NodeComponent |
cloneNodeComponent()
Deprecated. replaced with cloneNodeComponent(boolean forceDuplicate) |
(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. |
void |
getDepthData(int[] depthData)
Copies the depth data from this object to the specified array. |
void |
setDepthData(int[] depthData)
Copies the specified depth data to this object. |
Methods inherited from class javax.media.j3d.DepthComponent |
---|
getHeight, getWidth |
Methods inherited from class javax.media.j3d.NodeComponent |
---|
checkDuplicateNodeComponent, cloneNodeComponent, duplicateChild, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree, validateImageIllegalSharing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
DepthComponentInt()
public DepthComponentInt(int width, int height)
width
- the width of the array of depth valuesheight
- the height of the array of depth valuesMethod Detail |
---|
public void setDepthData(int[] depthData)
depthData
- array of ints containing the depth data
RestrictedAccessException
- if the method is called
when this object is part of live or compiled scene graph.public void getDepthData(int[] depthData)
depthData
- array of ints that will receive a copy of
the depth data
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphvoid createRetained()
createRetained
in class NodeComponent
public NodeComponent cloneNodeComponent()
cloneNodeComponent
in class NodeComponent
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 NodeComponent
originalNodeComponent
- 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |