java.lang.Object
eu.hansolo.fx.geometry.transform.BaseTransform
eu.hansolo.fx.geometry.transform.AffineBase
- Direct Known Subclasses:
Affine
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.hansolo.fx.geometry.transform.BaseTransform
BaseTransform.Degree -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected intprotected intFields inherited from class eu.hansolo.fx.geometry.transform.BaseTransform
IDENTITY_TRANSFORM, TYPE_AFFINE_3D, TYPE_AFFINE2D_MASK, TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intvoidvoiddeltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) doubledoublegetMxt()doublegetMxx()doublegetMxy()doublegetMyt()doublegetMyx()doublegetMyy()intgetType()voidinverseDeltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) voidinverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) inverseTransform(BaseBounds src, BaseBounds dst) voidinverseTransform(Rectangle src, Rectangle dst) eu.hansolo.toolboxfx.geom.PointinverseTransform(eu.hansolo.toolboxfx.geom.Point ptSrc, eu.hansolo.toolboxfx.geom.Point ptDst) voidinvert()booleanbooleanvoidrotate(double theta) protected final voidprotected final voidprotected final voidrotate90()voidscale(double sx, double sy) voidvoidsetToShear(double shx, double shy) voidsetTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt) voidshear(double shx, double shy) protected static voidvoidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) transform(BaseBounds src, BaseBounds dst) voideu.hansolo.toolboxfx.geom.Pointtransform(eu.hansolo.toolboxfx.geom.Point pt) eu.hansolo.toolboxfx.geom.Pointtransform(eu.hansolo.toolboxfx.geom.Point ptSrc, eu.hansolo.toolboxfx.geom.Point ptDst) voidtranslate(double tx, double ty) protected voidMethods inherited from class eu.hansolo.fx.geometry.transform.BaseTransform
copy, createInverse, deriveWithConcatenation, deriveWithConcatenation, deriveWithNewTransform, deriveWithPreConcatenation, deriveWithPreTranslation, deriveWithTranslation, equals, getDegree, getInstance, getInstance, getMxz, getMyz, getMzt, getMzx, getMzy, getMzz, getRotateInstance, getScaleInstance, getTranslateInstance, restoreTransform, restoreTransform, setTransform
-
Field Details
-
APPLY_IDENTITY
protected static final int APPLY_IDENTITY- See Also:
-
APPLY_TRANSLATE
protected static final int APPLY_TRANSLATE- See Also:
-
APPLY_SCALE
protected static final int APPLY_SCALE- See Also:
-
APPLY_SHEAR
protected static final int APPLY_SHEAR- See Also:
-
APPLY_2D_MASK
protected static final int APPLY_2D_MASK- See Also:
-
APPLY_2D_DELTA_MASK
protected static final int APPLY_2D_DELTA_MASK- See Also:
-
HI_SHIFT
protected static final int HI_SHIFT- See Also:
-
HI_IDENTITY
protected static final int HI_IDENTITY- See Also:
-
HI_TRANSLATE
protected static final int HI_TRANSLATE- See Also:
-
HI_SCALE
protected static final int HI_SCALE- See Also:
-
HI_SHEAR
protected static final int HI_SHEAR- See Also:
-
mxx
protected double mxx -
myx
protected double myx -
mxy
protected double mxy -
myy
protected double myy -
mxt
protected double mxt -
myt
protected double myt -
state
protected transient int state -
type
protected transient int type
-
-
Constructor Details
-
AffineBase
public AffineBase()
-
-
Method Details
-
stateError
protected static void stateError() -
updateState
protected void updateState() -
getType
public int getType()- Specified by:
getTypein classBaseTransform
-
calculateType
protected int calculateType() -
getMxx
public double getMxx()- Overrides:
getMxxin classBaseTransform
-
getMyy
public double getMyy()- Overrides:
getMyyin classBaseTransform
-
getMxy
public double getMxy()- Overrides:
getMxyin classBaseTransform
-
getMyx
public double getMyx()- Overrides:
getMyxin classBaseTransform
-
getMxt
public double getMxt()- Overrides:
getMxtin classBaseTransform
-
getMyt
public double getMyt()- Overrides:
getMytin classBaseTransform
-
isIdentity
public boolean isIdentity()- Specified by:
isIdentityin classBaseTransform
-
isTranslateOrIdentity
public boolean isTranslateOrIdentity()- Specified by:
isTranslateOrIdentityin classBaseTransform
-
getDeterminant
public double getDeterminant()- Specified by:
getDeterminantin classBaseTransform
-
setToIdentity
public void setToIdentity()- Specified by:
setToIdentityin classBaseTransform
-
setTransform
public void setTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt) -
setToShear
public void setToShear(double shx, double shy) -
transform
public eu.hansolo.toolboxfx.geom.Point transform(eu.hansolo.toolboxfx.geom.Point pt) -
transform
public eu.hansolo.toolboxfx.geom.Point transform(eu.hansolo.toolboxfx.geom.Point ptSrc, eu.hansolo.toolboxfx.geom.Point ptDst) - Specified by:
transformin classBaseTransform
-
transform
- Specified by:
transformin classBaseTransform
-
transform
- Specified by:
transformin classBaseTransform
-
transform
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) - Specified by:
transformin classBaseTransform
-
deltaTransform
public void deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) - Specified by:
deltaTransformin classBaseTransform
-
inverseTransform
public eu.hansolo.toolboxfx.geom.Point inverseTransform(eu.hansolo.toolboxfx.geom.Point ptSrc, eu.hansolo.toolboxfx.geom.Point ptDst) throws NonInvertibleTransformException - Specified by:
inverseTransformin classBaseTransform- Throws:
NonInvertibleTransformException
-
inverseTransform
public BaseBounds inverseTransform(BaseBounds src, BaseBounds dst) throws NonInvertibleTransformException - Specified by:
inverseTransformin classBaseTransform- Throws:
NonInvertibleTransformException
-
inverseTransform
- Specified by:
inverseTransformin classBaseTransform- Throws:
NonInvertibleTransformException
-
inverseTransform
public void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NonInvertibleTransformException - Specified by:
inverseTransformin classBaseTransform- Throws:
NonInvertibleTransformException
-
inverseDeltaTransform
public void inverseDeltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NonInvertibleTransformException - Specified by:
inverseDeltaTransformin classBaseTransform- Throws:
NonInvertibleTransformException
-
createTransformedShape
- Specified by:
createTransformedShapein classBaseTransform
-
translate
public void translate(double tx, double ty) -
rotate90
protected final void rotate90() -
rotate180
protected final void rotate180() -
rotate270
protected final void rotate270() -
rotate
public void rotate(double theta) -
scale
public void scale(double sx, double sy) -
shear
public void shear(double shx, double shy) -
concatenate
-
invert
- Specified by:
invertin classBaseTransform- Throws:
NonInvertibleTransformException
-