/* * @exception IllegalSharingException if this NodeComponent is live and * the specified image is being used by a Canvas3D as an off-screen buffer. * * @exception IllegalSharingException if this NodeComponent is * being used by an immediate mode context and * the specified image is being used by a Canvas3D as an off-screen buffer. */ void validateImageIllegalSharing(ImageComponent image) { // Do illegal sharing check if (image != null) { ImageComponentRetained imageRetained = (ImageComponentRetained) image.retained; NodeComponentRetained ncRetained = (NodeComponentRetained) this.retained; if (imageRetained.getUsedByOffScreen()) { if (isLive()) { throw new IllegalSharingException(J3dI18N.getString("NodeComponent2")); } if (ncRetained.getInImmCtx()) { throw new IllegalSharingException(J3dI18N.getString("NodeComponent3")); } } } }
protected void set(LineAttributesRetained lr) { super.set(lr); lineWidth = lr.lineWidth; linePattern = lr.linePattern; linePatternScaleFactor = lr.linePatternScaleFactor; linePatternMask = lr.linePatternMask; lineAntialiasing = lr.lineAntialiasing; }
protected void set(TexCoordGenerationRetained tr) { super.set(tr); genMode = tr.genMode; format = tr.format; enable = tr.enable; planeS.set(tr.planeS); planeT.set(tr.planeT); planeR.set(tr.planeR); }
/** * Sets this node's duplicateOnCloneTree value. The <i>duplicateOnCloneTree</i> value is used to * determine if NodeComponent objects are to be duplicated or referenced during a <code>cloneTree * </code> operation. A value of <code>true</code> means that this NodeComponent object should be * duplicated, while a value of <code>false</code> indicates that this NodeComponent object's * reference will be copied into the newly cloned object. This value can be overriden via the * <code>forceDuplicate</code> parameter of the <code>cloneTree</code> method. * * @param duplicate the value to set. * @see Node#cloneTree */ public void setDuplicateOnCloneTree(boolean duplicate) { ((NodeComponentRetained) retained).setDuplicateOnCloneTree(duplicate); }