java.lang.Object
eu.hansolo.fx.geometry.transform.BaseTransform
- Direct Known Subclasses:
AffineBase,Identity,Translate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BaseTransformstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BaseTransformcopy()abstract BaseTransformabstract Shapeabstract voiddeltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) abstract BaseTransformderiveWithConcatenation(double mxx, double myx, double mxy, double myy, double mxt, double myt) abstract BaseTransformabstract BaseTransformabstract BaseTransformderiveWithPreConcatenation(BaseTransform transform) abstract BaseTransformderiveWithPreTranslation(double mxt, double myt) abstract BaseTransformderiveWithTranslation(double mxt, double myt) booleanabstract BaseTransform.Degreeabstract doublestatic BaseTransformgetInstance(double mxx, double myx, double mxy, double myy, double mxt, double myt) static BaseTransformdoublegetMxt()doublegetMxx()doublegetMxy()doublegetMxz()doublegetMyt()doublegetMyx()doublegetMyy()doublegetMyz()doublegetMzt()doublegetMzx()doublegetMzy()doublegetMzz()static BaseTransformgetRotateInstance(double theta, double x, double y) static BaseTransformgetScaleInstance(double mxx, double myy) static BaseTransformgetTranslateInstance(double mxt, double myt) abstract intgetType()abstract voidinverseDeltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) abstract voidinverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) abstract BaseBoundsinverseTransform(BaseBounds bounds, BaseBounds result) abstract voidinverseTransform(Rectangle rect, Rectangle result) abstract eu.hansolo.toolboxfx.geom.PointinverseTransform(eu.hansolo.toolboxfx.geom.Point src, eu.hansolo.toolboxfx.geom.Point dst) abstract voidinvert()abstract booleanabstract booleanabstract voidrestoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt) abstract voidrestoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) abstract voidabstract voidsetTransform(BaseTransform xform) abstract voidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) abstract BaseBoundstransform(BaseBounds bounds, BaseBounds result) abstract voidabstract eu.hansolo.toolboxfx.geom.Pointtransform(eu.hansolo.toolboxfx.geom.Point src, eu.hansolo.toolboxfx.geom.Point dst)
-
Field Details
-
IDENTITY_TRANSFORM
-
TYPE_UNKNOWN
protected static final int TYPE_UNKNOWN- See Also:
-
TYPE_IDENTITY
public static final int TYPE_IDENTITY- See Also:
-
TYPE_TRANSLATION
public static final int TYPE_TRANSLATION- See Also:
-
TYPE_UNIFORM_SCALE
public static final int TYPE_UNIFORM_SCALE- See Also:
-
TYPE_GENERAL_SCALE
public static final int TYPE_GENERAL_SCALE- See Also:
-
TYPE_MASK_SCALE
public static final int TYPE_MASK_SCALE- See Also:
-
TYPE_FLIP
public static final int TYPE_FLIP- See Also:
-
TYPE_QUADRANT_ROTATION
public static final int TYPE_QUADRANT_ROTATION- See Also:
-
TYPE_GENERAL_ROTATION
public static final int TYPE_GENERAL_ROTATION- See Also:
-
TYPE_MASK_ROTATION
public static final int TYPE_MASK_ROTATION- See Also:
-
TYPE_GENERAL_TRANSFORM
public static final int TYPE_GENERAL_TRANSFORM- See Also:
-
TYPE_AFFINE_3D
public static final int TYPE_AFFINE_3D- See Also:
-
TYPE_AFFINE2D_MASK
public static final int TYPE_AFFINE2D_MASK- See Also:
-
-
Constructor Details
-
BaseTransform
public BaseTransform()
-
-
Method Details
-
getInstance
-
getInstance
public static BaseTransform getInstance(double mxx, double myx, double mxy, double myy, double mxt, double myt) -
getTranslateInstance
-
getScaleInstance
-
getRotateInstance
-
getDegree
-
getType
public abstract int getType() -
isIdentity
public abstract boolean isIdentity() -
isTranslateOrIdentity
public abstract boolean isTranslateOrIdentity() -
getDeterminant
public abstract double getDeterminant() -
getMxx
public double getMxx() -
getMxy
public double getMxy() -
getMxz
public double getMxz() -
getMxt
public double getMxt() -
getMyx
public double getMyx() -
getMyy
public double getMyy() -
getMyz
public double getMyz() -
getMyt
public double getMyt() -
getMzx
public double getMzx() -
getMzy
public double getMzy() -
getMzz
public double getMzz() -
getMzt
public double getMzt() -
transform
public abstract eu.hansolo.toolboxfx.geom.Point transform(eu.hansolo.toolboxfx.geom.Point src, eu.hansolo.toolboxfx.geom.Point dst) -
inverseTransform
public abstract eu.hansolo.toolboxfx.geom.Point inverseTransform(eu.hansolo.toolboxfx.geom.Point src, eu.hansolo.toolboxfx.geom.Point dst) throws NonInvertibleTransformException - Throws:
NonInvertibleTransformException
-
transform
public abstract void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) -
deltaTransform
public abstract void deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) -
inverseTransform
public abstract void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NonInvertibleTransformException - Throws:
NonInvertibleTransformException
-
inverseDeltaTransform
public abstract void inverseDeltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NonInvertibleTransformException - Throws:
NonInvertibleTransformException
-
transform
-
transform
-
inverseTransform
public abstract BaseBounds inverseTransform(BaseBounds bounds, BaseBounds result) throws NonInvertibleTransformException - Throws:
NonInvertibleTransformException
-
inverseTransform
public abstract void inverseTransform(Rectangle rect, Rectangle result) throws NonInvertibleTransformException - Throws:
NonInvertibleTransformException
-
createTransformedShape
-
setToIdentity
public abstract void setToIdentity() -
setTransform
-
invert
- Throws:
NonInvertibleTransformException
-
restoreTransform
public abstract void restoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt) -
restoreTransform
public abstract void restoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) -
deriveWithTranslation
-
deriveWithPreTranslation
-
deriveWithConcatenation
public abstract BaseTransform deriveWithConcatenation(double mxx, double myx, double mxy, double myy, double mxt, double myt) -
deriveWithPreConcatenation
-
deriveWithConcatenation
-
deriveWithNewTransform
-
createInverse
- Throws:
NonInvertibleTransformException
-
copy
-
equals
-