org.opensourcephysics.drawing3d.utils
Interface TransformationWrapper

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
ControlAlignment3DTransformation, ControlMatrix3DTransformation, ControlQuaternionTransformation, ControlRotation3DTransformation, ControlRotationAxis3DTransformation, ControlRotationX3DTransformation, ControlRotationY3DTransformation, ControlRotationZ3DTransformation, ControlTransformation3D

public interface TransformationWrapper
extends java.lang.Cloneable

A TransformationWrapper is a wrapper for a transformation that can be enabled and disabled in run time. This way, a transformation can be added to an element, but can be turned on and off at will

Author:
Paco

Method Summary
 java.lang.Object clone()
          Provides a copy of this optional transformation.
 Transformation getTransformation()
          An optional transformation may actually be the wrap of a Transformation object.
 boolean isEnabled()
          Whether the transformation is enabled
 void setEnabled(boolean _enable)
          Enables/Disables the transformation
 

Method Detail

clone

java.lang.Object clone()
Provides a copy of this optional transformation. This is used by an OSP 3D Element that will explicitely get a clone of it.


setEnabled

void setEnabled(boolean _enable)
Enables/Disables the transformation

Parameters:
_enable -

isEnabled

boolean isEnabled()
Whether the transformation is enabled

Returns:
boolean

getTransformation

Transformation getTransformation()
An optional transformation may actually be the wrap of a Transformation object. Some users may ask for this wrapped transformation

Returns:
the wrapped transformation or 'this' if it is not a wrap