/** * Copies the transform component of this TransformGroup into * the passed transform object. * @param t1 the transform object to be copied into * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void getTransform(Transform3D t1) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TRANSFORM_READ)) throw new CapabilityNotSetException(J3dI18N.getString("TransformGroup2")); ((TransformGroupRetained)this.retained).getTransform(t1); }
/** * Sets the transform component of this TransformGroup to the value of * the passed transform. * @param t1 the transform to be copied * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph * @exception BadTransformException if the transform is not affine. */ public void setTransform(Transform3D t1) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TRANSFORM_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("TransformGroup1")); if (!t1.isAffine()) { throw new BadTransformException(J3dI18N.getString("TransformGroup0")); } ((TransformGroupRetained)this.retained).setTransform(t1); }