@Override protected org.scijava.java3d.SceneGraphObject createNode() { return new RotationInterpolator( null, null ); } }
/** * Used to create a new instance of the node. This routine is called * by <code>cloneTree</code> to duplicate the current node. * @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#cloneNode * @see Node#duplicateNode * @see NodeComponent#setDuplicateOnCloneTree */ @Override public Node cloneNode(boolean forceDuplicate) { RotationInterpolator ri = new RotationInterpolator(); ri.duplicateNode(this, forceDuplicate); return ri; }
Alpha rotationAlpha = new Alpha(-1, 4000); RotationInterpolator rotator = new RotationInterpolator( rotationAlpha, objSpin, yAxis, 0.0f, (float) Math.PI*2.0f);