co.uk.sentinelweb.views.draw.model
Class TransformOperatorInOut

java.lang.Object
  extended by co.uk.sentinelweb.views.draw.model.TransformOperatorInOut

public class TransformOperatorInOut
extends java.lang.Object


Nested Class Summary
static class TransformOperatorInOut.Axis
           
static class TransformOperatorInOut.Trans
           
 
Field Summary
 PointF anchor
           
 TransformOperatorInOut.Axis axis
           
 double[][] matrix2
           
 double[][] matrix3
           
 java.util.HashSet<TransformOperatorInOut.Trans> ops
           
 double rotateValue
           
 double scaleValue
           
 double scaleXValue
           
 double scaleYValue
           
 double skewXValue
           
 double skewYValue
           
 PointF trans
           
 
Constructor Summary
TransformOperatorInOut()
           
 
Method Summary
 void correctTranslation(PointF p)
           
 void generate()
           
 double[][] get2x2()
           
 PointF getTranslationForCOGAndAnchor(double[][] matrix, PointF anchor)
          Calculates a difference vector between the transformed origin and the original origin (anchor)
 TransformOperatorInOut invert()
           
static TransformOperatorInOut makeScale(float scale, RectF bounds)
           
static TransformOperatorInOut makeScale(PointF scale, RectF bounds)
           
static TransformOperatorInOut makeScaleAndTranslate(PointF trans, float scale, RectF bounds)
           
static TransformOperatorInOut makeTranslate(PointF trans)
           
 void operate(PointF pin, PointF pout)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ops

public java.util.HashSet<TransformOperatorInOut.Trans> ops

axis

public TransformOperatorInOut.Axis axis

scaleValue

public double scaleValue

scaleXValue

public double scaleXValue

scaleYValue

public double scaleYValue

rotateValue

public double rotateValue

skewXValue

public double skewXValue

skewYValue

public double skewYValue

matrix3

public double[][] matrix3

matrix2

public double[][] matrix2

anchor

public PointF anchor

trans

public PointF trans
Constructor Detail

TransformOperatorInOut

public TransformOperatorInOut()
Method Detail

generate

public void generate()

operate

public final void operate(PointF pin,
                          PointF pout)

getTranslationForCOGAndAnchor

public PointF getTranslationForCOGAndAnchor(double[][] matrix,
                                            PointF anchor)
Calculates a difference vector between the transformed origin and the original origin (anchor)

Parameters:
matrix - 2x2
anchor -
Returns:

correctTranslation

public void correctTranslation(PointF p)

get2x2

public double[][] get2x2()

invert

public TransformOperatorInOut invert()

makeTranslate

public static TransformOperatorInOut makeTranslate(PointF trans)

makeScale

public static TransformOperatorInOut makeScale(PointF scale,
                                               RectF bounds)

makeScale

public static TransformOperatorInOut makeScale(float scale,
                                               RectF bounds)

makeScaleAndTranslate

public static TransformOperatorInOut makeScaleAndTranslate(PointF trans,
                                                           float scale,
                                                           RectF bounds)