|
|||||||||
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
public abstract class NodeComponent
NodeComponent is a common superclass for all scene graph node component objects such as: Geometry, Appearance, Material, Texture, etc.
For more information, see the Introduction to the Java 3D API.
Field Summary | |
---|---|
(package private) boolean |
forceDuplicate
|
Fields inherited from class javax.media.j3d.SceneGraphObject |
---|
nodeHashtable, retained |
Constructor Summary | |
---|---|
NodeComponent()
Constructs a NodeComponent object with default parameters. |
Method Summary | |
---|---|
(package private) void |
checkDuplicateNodeComponent(NodeComponent originalNodeComponent)
Copies all node information from originalNodeComponent into
the current node component. |
NodeComponent |
cloneNodeComponent()
Deprecated. As of Java 3D version 1.2, replaced by cloneNodeComponent(boolean forceDuplicate) |
NodeComponent |
cloneNodeComponent(boolean forceDuplicate)
Used to create a new instance of a NodeComponent object. |
(package private) void |
createRetained()
Creates the retained mode NodeComponentRetained object that this NodeComponent object will point to. |
(package private) void |
duplicateAttributes(NodeComponent originalNode,
boolean forceDuplicate)
Copies all NodeComponent information from originalNode into
the current node. |
(package private) boolean |
duplicateChild()
This function is called from getNodeComponent() to see if any of the sub-NodeComponents duplicateOnCloneTree flag is true. |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Deprecated. As of Java 3D version 1.2, replaced by duplicateNodeComponent(NodeComponent
originalNodeComponent, boolean forceDuplicate) |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent,
boolean forceDuplicate)
Copies all node information from originalNodeComponent
into the current node. |
boolean |
getDuplicateOnCloneTree()
Returns this node's duplicateOnCloneTree value. |
void |
setDuplicateOnCloneTree(boolean duplicate)
Sets this node's duplicateOnCloneTree value. |
(package private) void |
validateImageIllegalSharing(ImageComponent image)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
boolean forceDuplicate
Constructor Detail |
---|
public NodeComponent()
Method Detail |
---|
public void setDuplicateOnCloneTree(boolean duplicate)
cloneTree
operation. A value of true
means
that this NodeComponent object should be duplicated, while a value
of false
indicates that this NodeComponent object's
reference will be copied into the newly cloned object. This value
can be overriden via the forceDuplicate
parameter of
the cloneTree
method.
duplicate
- the value to set.Node.cloneTree()
public boolean getDuplicateOnCloneTree()
cloneTree
operation. A value of true
means
that this NodeComponent object should be duplicated, while a value
of false
indicates that this NodeComponent object's
reference will be copied into the newly cloned object. This value
can be overriden via the forceDuplicate
parameter of
the cloneTree
method.
Node.cloneTree()
public NodeComponent cloneNodeComponent()
cloneNodeComponent(boolean forceDuplicate)
public void duplicateNodeComponent(NodeComponent originalNodeComponent)
duplicateNodeComponent(NodeComponent
originalNodeComponent, boolean forceDuplicate)
final void checkDuplicateNodeComponent(NodeComponent originalNodeComponent)
originalNodeComponent
into
the current node component. This method is called from subclass of
duplicateNodeComponent
method which is, in turn, called by the
cloneNodeComponent
method.
For any NodeComponent objects
contained by the object being duplicated, each NodeComponent
object's duplicateOnCloneTree
value is used to determine
whether the NodeComponent should be duplicated in the new node
or if just a reference to the current node should be placed in the
new node. This flag can be overridden by setting the
forceDuplicate
parameter in the cloneTree
method to true
.
originalNodeComponent
- the original node component to duplicate.public void duplicateNodeComponent(NodeComponent originalNodeComponent, boolean forceDuplicate)
originalNodeComponent
into the current node. This method is called from the
cloneNodeComponent
method which is, in turn, called
by the cloneNode
method.
originalNodeComponent
- the 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.
RestrictedAccessException
- if forceDuplicate is set and
this object is part of a compiled scenegraphcloneNodeComponent()
,
Node.cloneNode(boolean)
,
Node.cloneTree()
public NodeComponent cloneNodeComponent(boolean forceDuplicate)
cloneNode
to duplicate the
current node. cloneNodeComponent
should be overridden by any user
subclassed NodeComponent objects. All subclasses must have their
cloneNodeComponent
method consist of the following lines:
public NodeComponent cloneNodeComponent(boolean forceDuplicate) { UserNodeComponent unc = new UserNodeComponent(); unc.duplicateNodeComponent(this, forceDuplicate); return unc; }
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.
RestrictedAccessException
- if forceDuplicate is set and
this object is part of a compiled scenegraphduplicateNodeComponent(javax.media.j3d.NodeComponent)
,
Node.cloneNode(boolean)
,
Node.cloneTree()
void duplicateAttributes(NodeComponent originalNode, boolean forceDuplicate)
originalNode
into
the current node. This method is called from the
cloneNode
method which is, in turn, called by the
cloneTree
method.
originalNode
- 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.Group.cloneNode(boolean)
,
Node.duplicateNode(javax.media.j3d.Node, boolean)
,
Node.cloneTree()
,
setDuplicateOnCloneTree(boolean)
void createRetained()
createRetained
in class SceneGraphObject
boolean duplicateChild()
void validateImageIllegalSharing(ImageComponent image)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |