flatscape
Class Transform2D
java.lang.Object
|
+--flatscape.Transform2D
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses:
- PaneTransform
- public class Transform2D
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
The transform used for position a uform. Contains translation, rotation and scale.
Copyright (c) 2001 Rutgers, The State University of New Jersey
- Since:
- manifold %Version%
- Version:
- %Version%, %Time%
- See Also:
- Serialized Form
|
Field Summary |
protected double |
psi
|
protected double |
rho
|
protected double |
rotateX_
|
protected double |
rotateY_
|
protected double |
theta
|
protected double |
x
|
protected double |
xScale
|
protected double |
y
|
protected double |
yScale
|
protected double |
z
|
protected double |
zScale
|
|
Method Summary |
java.lang.Object |
clone()
|
java.awt.geom.Point2D |
getPoint()
|
double |
getRotateX()
|
double |
getRotateY()
|
double |
getRotation()
|
double |
getRotationXY()
|
double |
getRotationXZ()
|
double |
getRotationYZ()
|
double |
getScaleX()
|
double |
getScaleY()
|
double |
getScaleZ()
|
java.awt.geom.AffineTransform |
getTransform()
|
java.awt.geom.AffineTransform |
getTransform(double[] plane)
transX, transY:
X, Y plane={1,2,0}
Y, Z plane={0,1,2}
X, Z plane={1,0,2} |
double |
getTranslateX()
|
double |
getTranslateY()
|
double |
getTranslateZ()
|
java.awt.geom.Point2D |
inverseTransform(java.awt.geom.Point2D p)
|
void |
setRotationXY(double angle)
|
void |
setRotationXZ(double angle)
|
void |
setRotationYZ(double angle)
|
void |
setScale(double scaleX,
double scaleY,
double scaleZ)
|
void |
setToRotate(double theta)
|
void |
setToRotate(double theta,
double x,
double y)
|
void |
setToScale(double scaleX,
double scaleY)
|
void |
setToTranslate(double x,
double y)
|
void |
setTranslation(double x,
double y,
double z)
|
double[] |
toDoubleArray()
|
java.lang.String |
toString()
|
void |
translate(double dx,
double dy)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
protected double x
y
protected double y
z
protected double z
theta
protected double theta
rho
protected double rho
psi
protected double psi
rotateX_
protected double rotateX_
rotateY_
protected double rotateY_
xScale
protected double xScale
yScale
protected double yScale
zScale
protected double zScale
Transform2D
public Transform2D()
Transform2D
public Transform2D(double x,
double y)
Transform2D
public Transform2D(double[] transform)
- This constructor is used when this Object is edited in a JTable.
Transform2D
public Transform2D(java.lang.String s)
throws java.lang.Exception
toDoubleArray
public double[] toDoubleArray()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getTranslateX
public double getTranslateX()
getTranslateY
public double getTranslateY()
getTranslateZ
public double getTranslateZ()
getRotation
public double getRotation()
getRotationXY
public double getRotationXY()
getRotationXZ
public double getRotationXZ()
getRotationYZ
public double getRotationYZ()
getRotateX
public double getRotateX()
getRotateY
public double getRotateY()
getScaleX
public double getScaleX()
getScaleY
public double getScaleY()
getScaleZ
public double getScaleZ()
setToScale
public void setToScale(double scaleX,
double scaleY)
setToRotate
public void setToRotate(double theta)
setToRotate
public void setToRotate(double theta,
double x,
double y)
getPoint
public java.awt.geom.Point2D getPoint()
translate
public void translate(double dx,
double dy)
setToTranslate
public void setToTranslate(double x,
double y)
setTranslation
public void setTranslation(double x,
double y,
double z)
setScale
public void setScale(double scaleX,
double scaleY,
double scaleZ)
setRotationXY
public void setRotationXY(double angle)
setRotationXZ
public void setRotationXZ(double angle)
setRotationYZ
public void setRotationYZ(double angle)
getTransform
public java.awt.geom.AffineTransform getTransform()
getTransform
public java.awt.geom.AffineTransform getTransform(double[] plane)
- transX, transY:
X, Y plane={1,2,0}
Y, Z plane={0,1,2}
X, Z plane={1,0,2}
inverseTransform
public java.awt.geom.Point2D inverseTransform(java.awt.geom.Point2D p)
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object
Copyright (c) 2003 Rutgers, The State University of New Jersey