/** * Constructs a Clip node with the specified back clip distance. */ public Clip(double backDistance) { // set default read capabilities setDefaultReadCapabilities(readCapabilities); ((ClipRetained)this.retained).initBackDistance(backDistance); }
/** * Sets the back clip distance to the specified value. * There are several considerations that need to be taken into * account when choosing values for the front and back clip * distances. These are enumerated in the description of * <a href=View.html#setFrontClipDistance(double)> * View.setFrontClipDistance</a>. * @param backDistance the new back clip distance in meters * @see View#setFrontClipDistance * @see View#setBackClipDistance */ public void setBackDistance(double backDistance) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_BACK_DISTANCE_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Clip0")); if (isLive()) ((ClipRetained)this.retained).setBackDistance(backDistance); else ((ClipRetained)this.retained).initBackDistance(backDistance); }
ClipRetained rt = (ClipRetained) retained; rt.initBackDistance(attr.getBackDistance()); rt.initApplicationBounds(attr.getApplicationBounds());