static class Transform.ImmutableTransform extends Transform
identityProperty, onTransformChangedProperty, type2DProperty
Transform.ImmutableTransform
Modifier and Type | Field and Description |
---|---|
private static int |
APPLY_3D_COMPLEX |
private static int |
APPLY_IDENTITY |
private static int |
APPLY_NON_3D |
private static int |
APPLY_SCALE |
private static int |
APPLY_SHEAR |
private static int |
APPLY_TRANSLATE |
private int |
state2d |
private int |
state3d |
private double |
xt |
private double |
xx |
private double |
xy |
private double |
xz |
private double |
yt |
private double |
yx |
private double |
yy |
private double |
yz |
private double |
zt |
private double |
zx |
private double |
zy |
private double |
zz |
Constructor and Description |
---|
ImmutableTransform() |
ImmutableTransform(double mxx,
double mxy,
double mxz,
double tx,
double myx,
double myy,
double myz,
double ty,
double mzx,
double mzy,
double mzz,
double tz) |
ImmutableTransform(Transform transform) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
apply(Affine3D trans) |
Transform |
clone()
Returns a deep copy of this transform.
|
Transform |
createConcatenation(Transform transform)
Returns the concatenation of this transform and the specified transform.
|
Affine |
createInverse()
Returns the inverse transform of this transform.
|
Point2D |
deltaTransform(double x,
double y)
Transforms the relative magnitude vector by this transform.
|
Point3D |
deltaTransform(double x,
double y,
double z)
Transforms the relative magnitude vector by this transform.
|
(package private) BaseTransform |
derive(BaseTransform trans) |
double |
determinant()
Computes determinant of the transformation matrix.
|
(package private) void |
ensureCanTransform2DPoint()
Makes sure this is a 2D transform.
|
double |
getMxx()
Gets the X coordinate scaling element of the 3x4 matrix.
|
double |
getMxy()
Gets the XY coordinate element of the 3x4 matrix.
|
double |
getMxz()
Gets the XZ coordinate element of the 3x4 matrix.
|
double |
getMyx()
Gets the YX coordinate element of the 3x4 matrix.
|
double |
getMyy()
Gets the Y coordinate scaling element of the 3x4 matrix.
|
double |
getMyz()
Gets the YZ coordinate element of the 3x4 matrix.
|
double |
getMzx()
Gets the ZX coordinate element of the 3x4 matrix.
|
double |
getMzy()
Gets the ZY coordinate element of the 3x4 matrix.
|
double |
getMzz()
Gets the Z coordinate scaling element of the 3x4 matrix.
|
(package private) int |
getState2d()
Used only by tests to check the 2d matrix state
|
(package private) int |
getState3d()
Used only by tests to check the 3d matrix state
|
double |
getTx()
Gets the X coordinate translation element of the 3x4 matrix.
|
double |
getTy()
Gets the Y coordinate translation element of the 3x4 matrix.
|
double |
getTz()
Gets the Z coordinate translation element of the 3x4 matrix.
|
Point2D |
inverseDeltaTransform(double x,
double y)
Transforms the relative magnitude vector by the inverse of this transform.
|
Point3D |
inverseDeltaTransform(double x,
double y,
double z)
Transforms the relative magnitude vector by the inverse of this transform.
|
Point2D |
inverseTransform(double x,
double y)
Transforms the specified point by the inverse of this transform.
|
Point3D |
inverseTransform(double x,
double y,
double z)
Transforms the specified point by the inverse of this transform.
|
private void |
setToConcatenation(Transform.ImmutableTransform left,
Transform.ImmutableTransform right) |
private void |
setToTransform(double mxx,
double mxy,
double mxz,
double tx,
double myx,
double myy,
double myz,
double ty,
double mzx,
double mzy,
double mzz,
double tz) |
private static void |
stateError() |
java.lang.String |
toString() |
Point2D |
transform(double x,
double y)
Transforms the specified point by this transform.
|
Point3D |
transform(double x,
double y,
double z)
Transforms the specified point by this transform.
|
private void |
updateState() |
private void |
updateState2D() |
add, addEventFilter, addEventHandler, affine, affine, appendTo, buildEventDispatchChain, checkRequestedMAT, clearInverseCache, column, column, computeIs2D, computeIsIdentity, createImmutableTransform, createImmutableTransform, createImmutableTransform, createImmutableTransform, deltaTransform, deltaTransform, fill2DArray, fill3DArray, getElement, getOnTransformChanged, identityProperty, inverseDeltaTransform, inverseDeltaTransform, inverseTransform, inverseTransform, inverseTransform, inverseTransform2DPoints, inverseTransform2DPointsImpl, inverseTransform3DPoints, inverseTransform3DPointsImpl, isIdentity, isType2D, onTransformChangedProperty, prependTo, remove, removeEventFilter, removeEventHandler, rotate, row, row, scale, scale, setOnTransformChanged, shear, shear, similarTo, toArray, toArray, transform, transform, transform, transform2DPoints, transform2DPointsImpl, transform3DPoints, transform3DPointsImpl, transformChanged, translate, type2DProperty, validate
private static final int APPLY_IDENTITY
private static final int APPLY_TRANSLATE
private static final int APPLY_SCALE
private static final int APPLY_SHEAR
private static final int APPLY_NON_3D
private static final int APPLY_3D_COMPLEX
private transient int state2d
private transient int state3d
private double xx
private double xy
private double xz
private double yx
private double yy
private double yz
private double zx
private double zy
private double zz
private double xt
private double yt
private double zt
ImmutableTransform()
ImmutableTransform(Transform transform)
ImmutableTransform(double mxx, double mxy, double mxz, double tx, double myx, double myy, double myz, double ty, double mzx, double mzy, double mzz, double tz)
private void setToTransform(double mxx, double mxy, double mxz, double tx, double myx, double myy, double myz, double ty, double mzx, double mzy, double mzz, double tz)
private void setToConcatenation(Transform.ImmutableTransform left, Transform.ImmutableTransform right)
public double getMxx()
Transform
public double getMxy()
Transform
public double getMxz()
Transform
public double getTx()
Transform
public double getMyx()
Transform
public double getMyy()
Transform
public double getMyz()
Transform
public double getTy()
Transform
public double getMzx()
Transform
public double getMzy()
Transform
public double getMzz()
Transform
public double getTz()
Transform
public double determinant()
Transform
determinant
in class Transform
public Transform createConcatenation(Transform transform)
Transform
getTransforms()
list,
this
transform first and the specified transform
second.createConcatenation
in class Transform
transform
- transform to be concatenated with this transformpublic Affine createInverse() throws NonInvertibleTransformException
Transform
createInverse
in class Transform
NonInvertibleTransformException
- if this transform
cannot be invertedpublic Transform clone()
Transform
public Point2D transform(double x, double y)
Transform
public Point3D transform(double x, double y, double z)
Transform
public Point2D deltaTransform(double x, double y)
Transform
deltaTransform
in class Transform
x
- vector magnitude in the direction of the X axisy
- vector magnitude in the direction of the Y axisPoint2D
instancepublic Point3D deltaTransform(double x, double y, double z)
Transform
deltaTransform
in class Transform
x
- vector magnitude in the direction of the X axisy
- vector magnitude in the direction of the Y axisz
- vector magnitude in the direction of the Z axisPoint3D
instancepublic Point2D inverseTransform(double x, double y) throws NonInvertibleTransformException
Transform
inverseTransform
in class Transform
x
- the X coordinate of the pointy
- the Y coordinate of the pointNonInvertibleTransformException
- if this transform
cannot be invertedpublic Point3D inverseTransform(double x, double y, double z) throws NonInvertibleTransformException
Transform
inverseTransform
in class Transform
x
- the X coordinate of the pointy
- the Y coordinate of the pointz
- the Z coordinate of the pointNonInvertibleTransformException
- if this transform
cannot be invertedpublic Point2D inverseDeltaTransform(double x, double y) throws NonInvertibleTransformException
Transform
inverseDeltaTransform
in class Transform
x
- vector magnitude in the direction of the X axisy
- vector magnitude in the direction of the Y axisPoint2D
instanceNonInvertibleTransformException
- if this transform
cannot be invertedpublic Point3D inverseDeltaTransform(double x, double y, double z) throws NonInvertibleTransformException
Transform
inverseDeltaTransform
in class Transform
x
- vector magnitude in the direction of the X axisy
- vector magnitude in the direction of the Y axisz
- vector magnitude in the direction of the Z axisPoint3D
instanceNonInvertibleTransformException
- if this transform
cannot be invertedpublic java.lang.String toString()
toString
in class java.lang.Object
private void updateState()
private void updateState2D()
void ensureCanTransform2DPoint() throws java.lang.IllegalStateException
Transform
ensureCanTransform2DPoint
in class Transform
java.lang.IllegalStateException
- if this is a 2D transformprivate static void stateError()
int getState2d()
int getState3d()