public abstract class NodeComponent extends SceneGraphObject
For more information, see the Introduction to the Java 3D API.
Constructor and Description |
---|
NodeComponent()
Constructs a NodeComponent object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
public NodeComponent()
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)
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(org.scijava.java3d.NodeComponent)
,
Node.cloneNode(boolean)
,
Node.cloneTree()
Copyright © 2016–2022 SciJava. All rights reserved.