uk.ac.essex.ia.media.geo
Class AffineTransformOperator

java.lang.Object
  extended by uk.ac.essex.ia.media.OperatorImpl
      extended by uk.ac.essex.ia.media.geo.AffineTransformOperator
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, Operator

public class AffineTransformOperator
extends OperatorImpl

This operator performs an affine transform o the image. This can scale, shear or translate the image data in one go. You should have received a copy of GNU public license with this code. If not please visit this site

See Also:
Serialized Form

Field Summary
static java.lang.Float DEFAULT_SCALE_X
          The default scaling factor for x axis
static java.lang.Float DEFAULT_SCALE_Y
          The default scaling factor for y axis
static java.lang.Float DEFAULT_SHEAR_X
          The default shearing factor for y axis
static java.lang.Float DEFAULT_SHEAR_Y
          The default shearing factor for x axis
static java.lang.Float DEFAULT_TRANSLATE_X
          The default translation factor for y axis
static java.lang.Float DEFAULT_TRANSLATE_Y
          The default translation factor for x axis
 
Fields inherited from class uk.ac.essex.ia.media.OperatorImpl
iconURL, inputParameters, label, operatorDescriptor, operatorDialog, translator
 
Constructor Summary
AffineTransformOperator()
           
AffineTransformOperator(OperatorDescriptor operatorType)
           
 
Method Summary
 java.awt.image.RenderedImage execute(java.awt.image.renderable.ParameterBlock inData)
          Execute this operator with the input data passed as a parameter
 void showOperatorDialog()
          In this function implementations should handle displaying the OperatorImpl.operatorDialog via its show() method.
 
Methods inherited from class uk.ac.essex.ia.media.OperatorImpl
acceptsInputFrom, clone, getAllowedInputs, getAllowedOutputs, getHelpID, getIcon, getInputParameters, getInputParametersForWriting, getOperatorDialog, getOutputData, getRequiredInputs, getSingleSource, initSingleImageParameterBlock, readExternal, setInputParameters, setOperatorDialog, toString, writeExternal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SCALE_X

public static final java.lang.Float DEFAULT_SCALE_X
The default scaling factor for x axis


DEFAULT_SCALE_Y

public static final java.lang.Float DEFAULT_SCALE_Y
The default scaling factor for y axis


DEFAULT_SHEAR_Y

public static final java.lang.Float DEFAULT_SHEAR_Y
The default shearing factor for x axis


DEFAULT_SHEAR_X

public static final java.lang.Float DEFAULT_SHEAR_X
The default shearing factor for y axis


DEFAULT_TRANSLATE_Y

public static final java.lang.Float DEFAULT_TRANSLATE_Y
The default translation factor for x axis


DEFAULT_TRANSLATE_X

public static final java.lang.Float DEFAULT_TRANSLATE_X
The default translation factor for y axis

Constructor Detail

AffineTransformOperator

public AffineTransformOperator()

AffineTransformOperator

public AffineTransformOperator(OperatorDescriptor operatorType)
Method Detail

showOperatorDialog

public void showOperatorDialog()
In this function implementations should handle displaying the OperatorImpl.operatorDialog via its show() method. Also any input parameters should if instantiated be loaded into the dialog prior to it being displayed. These should then be dislpayed after it is complete. NB this is modal dialog so once the show method is called execution will block. After the call the parameters can be got via OperatorDialog.getParameter(java.lang.String).

Specified by:
showOperatorDialog in interface Operator
Overrides:
showOperatorDialog in class OperatorImpl

execute

public java.awt.image.RenderedImage execute(java.awt.image.renderable.ParameterBlock inData)
                                     throws java.lang.Exception
Execute this operator with the input data passed as a parameter

Specified by:
execute in interface Operator
Overrides:
execute in class OperatorImpl
Parameters:
inData - - The input data to this operator
Throws:
java.lang.Exception