| |
|
| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.NodeComponent javax.media.j3d.DepthComponent javax.media.j3d.DepthComponentFloat
DepthComponentFloat | public class DepthComponentFloat extends DepthComponent (Code) | | A 2D array of depth (Z) values in floating point format in the range [0,1].
A value of 0.0 indicates the closest Z value to the user while a value of
1.0 indicates the farthest Z value.
|
Constructor Summary | |
| DepthComponentFloat() | public | DepthComponentFloat(int width, int height) Constructs a new floating-point depth (z-buffer) component object with
the specified width and height. |
Method Summary | |
public NodeComponent | cloneNodeComponent() | void | createRetained() Creates a retained mode DepthComponentFloatRetained object that this
DepthComponentFloat component object will point to. | void | duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate) Copies all node information from originalNodeComponent into
the current node. | public void | getDepthData(float[] depthData) Copies the depth data from this object to the specified array.
The array must be large enough to hold all of the floats. | public void | setDepthData(float[] depthData) Copies the specified depth data to this object. |
DepthComponentFloat | DepthComponentFloat()(Code) | | Package scope defualt constructor used by cloneNodeComponent
|
DepthComponentFloat | public DepthComponentFloat(int width, int height)(Code) | | Constructs a new floating-point depth (z-buffer) component object with
the specified width and height.
Parameters: width - the width of the array of depth values Parameters: height - the height of the array of depth values |
createRetained | void createRetained()(Code) | | Creates a retained mode DepthComponentFloatRetained object that this
DepthComponentFloat component object will point to.
|
duplicateAttributes | void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code) | | Copies all node information from 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).
Parameters: originalNodeComponent - the original node to duplicate. Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. See Also: Node.cloneTree See Also: NodeComponent.setDuplicateOnCloneTree |
getDepthData | public void getDepthData(float[] depthData)(Code) | | Copies the depth data from this object to the specified array.
The array must be large enough to hold all of the floats.
Parameters: depthData - array of floats that will receive a copy ofthe depth data exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setDepthData | public void setDepthData(float[] depthData)(Code) | | Copies the specified depth data to this object.
Parameters: depthData - array of floats containing the depth data exception: RestrictedAccessException - if the method is calledwhen this object is part of live or compiled scene graph. |
Fields inherited from javax.media.j3d.DepthComponent | final public static int ALLOW_DATA_READ(Code)(Java Doc) final public static int ALLOW_SIZE_READ(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.NodeComponent | boolean forceDuplicate(Code)(Java Doc)
|
|
|
|