|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SeparateTransforms
Provides the interface to keep a geometric object in its original state while buffering applied transformations separately.
ConcreteSeparateTransforms
Method Summary | |
---|---|
Transformable |
getGeometry()
Returns the original geometric object. |
AffineTransform |
getRotation()
Returns the buffered rotation. |
AffineTransform |
getScaling()
Returns the buffered scaling. |
AffineTransform |
getTransformation()
Returns the buffered generic transformation. |
Transformable |
getTransformed()
Returns the transformed geometric object. |
AffineTransform |
getTranslation()
Returns the buffered translation. |
Transformable |
rotateTo(float phi)
Rotates the geometric object by the given angle around the origin. |
Transformable |
rotateTo(float phi,
float x,
float y)
Rotates the geometric object by the given angle around the given point. |
Transformable |
scaleTo(float sx,
float sy)
Scales the geomtric object by the given values in x- and y-coordinates with the origin as center. |
Transformable |
scaleTo(float sx,
float sy,
float x,
float y)
Scales the geomtric object by the given values in x- and y-coordinates with the given center (x, y). |
void |
setGeometry(Transformable geometry)
Sets the original geometric object. |
void |
setRotation(AffineTransform rotation)
Sets the buffered rotation. |
void |
setScaling(AffineTransform scaling)
Sets the buffered scaling. |
void |
setTransformation(AffineTransform transformation)
Sets the buffered generic transformation. |
void |
setTranslation(AffineTransform translation)
Sets the buffered translation. |
Transformable |
translateTo(float dx,
float dy)
Translates the geometric object by the given coordinates. |
Methods inherited from interface ch.unizh.ini.friend.graphics.Transformable |
---|
apply, clone, rotate, rotate, scale, scale, translate |
Method Detail |
---|
Transformable getGeometry()
void setGeometry(Transformable geometry)
geometry
- The geometric object.Transformable getTransformed()
getTransformed
in interface BufferedTransform
AffineTransform getTransformation()
void setTransformation(AffineTransform transformation)
transformation
- The generic transformation.AffineTransform getScaling()
void setScaling(AffineTransform scaling)
scaling
- The scaling.AffineTransform getRotation()
void setRotation(AffineTransform rotation)
rotation
- The rotation.AffineTransform getTranslation()
void setTranslation(AffineTransform translation)
translation
- The translation.Transformable translateTo(float dx, float dy)
dx
- Translation in x-coordinates.dy
- Translation in y-coordinates.
Transformable rotateTo(float phi, float x, float y)
phi
- Rotation angle.x
- x-coordinate of the rotation center.y
- y-coordinate of the rotation center.
Transformable rotateTo(float phi)
phi
- Rotation angle.
Transformable scaleTo(float sx, float sy, float x, float y)
sx
- Scalar for x-coordinates.sy
- Scalar for y-coordinates.x
- x-coordinate of the center.y
- y-coordinate of the center.
Transformable scaleTo(float sx, float sy)
sx
- Scalar for x-coordinates.sy
- Scalar for y-coordinates.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |