public final class Identity extends BaseTransform
BaseTransform.Degree
EPSILON_ABSOLUTE, 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 and Description |
---|
Identity() |
Modifier and Type | Method and Description |
---|---|
BaseTransform |
copy() |
BaseTransform |
createInverse()
This function always returns a new object, unless the transform
is an identity transform in which case it might return the
Identity singleton. |
Shape |
createTransformedShape(Shape s) |
void |
deltaTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
void |
deltaTransform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts) |
Vec3d |
deltaTransform(Vec3d src,
Vec3d dst) |
BaseTransform |
deriveWithConcatenation(BaseTransform tx) |
BaseTransform |
deriveWithConcatenation(double mxx,
double myx,
double mxy,
double myy,
double mxt,
double myt) |
BaseTransform |
deriveWithConcatenation(double mxx,
double mxy,
double mxz,
double mxt,
double myx,
double myy,
double myz,
double myt,
double mzx,
double mzy,
double mzz,
double mzt) |
BaseTransform |
deriveWithNewTransform(BaseTransform tx) |
BaseTransform |
deriveWithPreConcatenation(BaseTransform tx) |
BaseTransform |
deriveWithPreTranslation(double mxt,
double myt) |
BaseTransform |
deriveWithRotation(double theta,
double axisX,
double axisY,
double axisZ) |
BaseTransform |
deriveWithScale(double mxx,
double myy,
double mzz) |
BaseTransform |
deriveWithTranslation(double mxt,
double myt) |
BaseTransform |
deriveWithTranslation(double mxt,
double myt,
double mzt) |
boolean |
equals(java.lang.Object obj)
Returns
true if this BaseTransform
represents the same coordinate transform as the specified
argument. |
BaseTransform.Degree |
getDegree() |
double |
getDeterminant() |
int |
getType()
Retrieves the flag bits describing the conversion properties of
this transform.
|
int |
hashCode()
Returns the hashcode for this transform.
|
void |
inverseDeltaTransform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts) |
Vec3d |
inverseDeltaTransform(Vec3d src,
Vec3d dst) |
BaseBounds |
inverseTransform(BaseBounds bounds,
BaseBounds result) |
void |
inverseTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
void |
inverseTransform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts) |
Point2D |
inverseTransform(Point2D src,
Point2D dst) |
void |
inverseTransform(Rectangle rect,
Rectangle result) |
Vec3d |
inverseTransform(Vec3d src,
Vec3d dst) |
void |
invert()
This function inverts the
BaseTransform in place. |
boolean |
is2D() |
boolean |
isIdentity() |
boolean |
isTranslateOrIdentity() |
void |
restoreTransform(double mxx,
double myx,
double mxy,
double myy,
double mxt,
double myt)
This function is only guaranteed to succeed if the transform is
of degree AFFINE2D or less and the matrix
parameters specified came from this same instance.
|
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)
This function is only guaranteed to succeed if the matrix
parameters specified came from this same instance.
|
void |
setToIdentity() |
void |
setTransform(BaseTransform xform) |
java.lang.String |
toString()
Returns the matrix elements and degree of this transform as a string.
|
BaseBounds |
transform(BaseBounds bounds,
BaseBounds result) |
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
void |
transform(double[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts) |
void |
transform(float[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
void |
transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts) |
Point2D |
transform(Point2D src,
Point2D dst) |
void |
transform(Rectangle rect,
Rectangle result) |
Vec3d |
transform(Vec3d src,
Vec3d dst) |
almostZero, degreeError, getInstance, getInstance, getInstance, getMxt, getMxx, getMxy, getMxz, getMyt, getMyx, getMyy, getMyz, getMzt, getMzx, getMzy, getMzz, getRotateInstance, getScaleInstance, getTranslateInstance, makePoint
public BaseTransform.Degree getDegree()
getDegree
in class BaseTransform
public int getType()
BaseTransform
getType
in class BaseTransform
BaseTransform.TYPE_IDENTITY
,
BaseTransform.TYPE_TRANSLATION
,
BaseTransform.TYPE_UNIFORM_SCALE
,
BaseTransform.TYPE_GENERAL_SCALE
,
BaseTransform.TYPE_QUADRANT_ROTATION
,
BaseTransform.TYPE_GENERAL_ROTATION
,
BaseTransform.TYPE_GENERAL_TRANSFORM
public boolean isIdentity()
isIdentity
in class BaseTransform
public boolean isTranslateOrIdentity()
isTranslateOrIdentity
in class BaseTransform
public boolean is2D()
is2D
in class BaseTransform
public double getDeterminant()
getDeterminant
in class BaseTransform
public Point2D transform(Point2D src, Point2D dst)
transform
in class BaseTransform
public Point2D inverseTransform(Point2D src, Point2D dst)
inverseTransform
in class BaseTransform
public Vec3d transform(Vec3d src, Vec3d dst)
transform
in interface CanTransformVec3d
transform
in class BaseTransform
public Vec3d deltaTransform(Vec3d src, Vec3d dst)
deltaTransform
in class BaseTransform
public Vec3d inverseTransform(Vec3d src, Vec3d dst)
inverseTransform
in class BaseTransform
public Vec3d inverseDeltaTransform(Vec3d src, Vec3d dst)
inverseDeltaTransform
in class BaseTransform
public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
transform
in class BaseTransform
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
transform
in class BaseTransform
public void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
transform
in class BaseTransform
public void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
transform
in class BaseTransform
public void deltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
deltaTransform
in class BaseTransform
public void deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
deltaTransform
in class BaseTransform
public void inverseTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
inverseTransform
in class BaseTransform
public void inverseDeltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
inverseDeltaTransform
in class BaseTransform
public void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
inverseTransform
in class BaseTransform
public BaseBounds transform(BaseBounds bounds, BaseBounds result)
transform
in class BaseTransform
public void transform(Rectangle rect, Rectangle result)
transform
in class BaseTransform
public BaseBounds inverseTransform(BaseBounds bounds, BaseBounds result)
inverseTransform
in class BaseTransform
public void inverseTransform(Rectangle rect, Rectangle result)
inverseTransform
in class BaseTransform
public Shape createTransformedShape(Shape s)
createTransformedShape
in class BaseTransform
public void setToIdentity()
setToIdentity
in class BaseTransform
public void setTransform(BaseTransform xform)
setTransform
in class BaseTransform
public void invert()
BaseTransform
BaseTransform
in place. All
current implementations can support their own inverted form, and
that should likely remain true in the future as well.invert
in class BaseTransform
public void restoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt)
BaseTransform
restoreTransform
in class BaseTransform
public 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)
BaseTransform
restoreTransform
in class BaseTransform
public BaseTransform deriveWithTranslation(double mxt, double myt)
deriveWithTranslation
in class BaseTransform
public BaseTransform deriveWithPreTranslation(double mxt, double myt)
deriveWithPreTranslation
in class BaseTransform
public BaseTransform deriveWithTranslation(double mxt, double myt, double mzt)
deriveWithTranslation
in class BaseTransform
public BaseTransform deriveWithScale(double mxx, double myy, double mzz)
deriveWithScale
in class BaseTransform
public BaseTransform deriveWithRotation(double theta, double axisX, double axisY, double axisZ)
deriveWithRotation
in class BaseTransform
public BaseTransform deriveWithConcatenation(double mxx, double myx, double mxy, double myy, double mxt, double myt)
deriveWithConcatenation
in class BaseTransform
public BaseTransform deriveWithConcatenation(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
deriveWithConcatenation
in class BaseTransform
public BaseTransform deriveWithConcatenation(BaseTransform tx)
deriveWithConcatenation
in class BaseTransform
public BaseTransform deriveWithPreConcatenation(BaseTransform tx)
deriveWithPreConcatenation
in class BaseTransform
public BaseTransform deriveWithNewTransform(BaseTransform tx)
deriveWithNewTransform
in class BaseTransform
public BaseTransform createInverse()
BaseTransform
Identity
singleton.createInverse
in class BaseTransform
public java.lang.String toString()
BaseTransform
toString
in class BaseTransform
public BaseTransform copy()
copy
in class BaseTransform
public boolean equals(java.lang.Object obj)
BaseTransform
true
if this BaseTransform
represents the same coordinate transform as the specified
argument.equals
in class BaseTransform
obj
- the Object
to test for equality with this
BaseTransform
true
if obj
equals this
BaseTransform
object; false
otherwise.public int hashCode()
BaseTransform
hashCode
in class BaseTransform