Tabnine Logo
Shape3D.duplicateNode
Code IndexAdd Tabnine to your IDE (free)

How to use
duplicateNode
method
in
org.scijava.java3d.Shape3D

Best Java code snippets using org.scijava.java3d.Shape3D.duplicateNode (Showing top 1 results out of 315)

origin: org.scijava/j3dcore

/**
 * Used to create a new instance of the node.  This routine is called
 * by <code>cloneTree</code> to duplicate the current node.
 * <code>cloneNode</code> should be overridden by any user subclassed
 * objects.  All subclasses must have their <code>cloneNode</code>
 * method consist of the following lines:
 * <P><blockquote><pre>
 *     public Node cloneNode(boolean forceDuplicate) {
 *         UserSubClass usc = new UserSubClass();
 *         usc.duplicateNode(this, forceDuplicate);
 *         return usc;
 *     }
 * </pre></blockquote>
 * @param forceDuplicate when set to <code>true</code>, causes the
 *  <code>duplicateOnCloneTree</code> flag to be ignored.  When
 *  <code>false</code>, the value of each node's
 *  <code>duplicateOnCloneTree</code> variable determines whether
 *  NodeComponent data is duplicated or copied.
 *
 * @see Node#cloneTree
 * @see Node#duplicateNode
 * @see NodeComponent#setDuplicateOnCloneTree
 */
@Override
public Node cloneNode(boolean forceDuplicate) {
  Shape3D s = new Shape3D();
  s.duplicateNode(this, forceDuplicate);
  return s;
}
org.scijava.java3dShape3DduplicateNode

Javadoc

Copies all node information from originalNode into the current node. This method is called from the cloneNode method which is, in turn, called by the cloneTree 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.
NOTE: Applications should not call this method directly. It should only be called by the cloneNode method.

Popular methods of Shape3D

  • <init>
    Constructs and initializes a Shape3D node with the specified geometry and appearance components. The
  • getGeometry
    Retrieves the geometry component at the specified index from this Shape3D node's list of geometry co
  • getAppearance
    Retrieves the appearance component of this shape node.
  • addGeometry
    Appends the specified geometry component to this Shape3D node's list of geometry components. If ther
  • setAppearance
    Sets the appearance component of this Shape3D node. Setting it to null specifies that default values
  • setCapability
  • setGeometry
    Replaces the geometry component at the specified index in this Shape3D node's list of geometry compo
  • intersect
    Checks whether the geometry in this shape node intersects with the specified pickShape.
  • numGeometries
    Returns the number of geometry components in this Shape3D node's list of geometry components.
  • checkDuplicateNode
  • checkForCycle
  • cloneTree
  • checkForCycle,
  • cloneTree,
  • duplicateAttributes,
  • getCapability,
  • getCollisionBounds,
  • getNodeComponent,
  • getUserData,
  • isLive,
  • isLiveOrCompiled

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JPanel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now