com.anji.imaging
Class TransformParameters
java.lang.Object
com.anji.imaging.TransformParameters
public class TransformParameters
- extends java.lang.Object
TransformParameters Parameters for a full transform, as when transforming from surface to eye
image based on location, rotation, zoom factor, and size of eye.
Constructor Summary |
TransformParameters(int aTranslateX,
int aTranslateY,
double aRotate,
double aScaleX,
double aScaleY,
int aCropX,
int aCropY)
|
TransformParameters(int aTranslateX,
int aTranslateY,
double aRotate,
double aScaleX,
double aScaleY,
int aCropX,
int aCropY,
boolean aFlipHorizontal)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TransformParameters
public TransformParameters(int aTranslateX,
int aTranslateY,
double aRotate,
double aScaleX,
double aScaleY,
int aCropX,
int aCropY)
- Parameters:
aTranslateX
- aTranslateY
- aRotate
- aScaleX
- aScaleY
- aCropX
- aCropY
- - See Also:
TransformParameters(int, int, double, double, double, int, int,
boolean)
TransformParameters
public TransformParameters(int aTranslateX,
int aTranslateY,
double aRotate,
double aScaleX,
double aScaleY,
int aCropX,
int aCropY,
boolean aFlipHorizontal)
- Parameters:
aTranslateX
- aTranslateY
- aRotate
- in radiansaScaleX
- aScaleY
- aCropX
- aCropY
- aFlipHorizontal
-
newTranslateParameters
public static final TransformParameters newTranslateParameters(int aTranslateX,
int aTranslateY,
int aCropX,
int aCropY)
- Parameters:
aTranslateX
- aTranslateY
- aCropX
- aCropY
-
- Returns:
- new parameters to perform only a translation and crop
newRotateParameters
public static final TransformParameters newRotateParameters(double aRotate,
int aCropX,
int aCropY)
- Parameters:
aRotate
- aCropX
- aCropY
-
- Returns:
- new parameters to perform only a rotation and crop
newScaleParameters
public static final TransformParameters newScaleParameters(double aScaleX,
double aScaleY,
int aCropX,
int aCropY)
- Parameters:
aScaleX
- aScaleY
- aCropX
- aCropY
-
- Returns:
- new parameters to perform only a rotation and crop
getCropWidth
public int getCropWidth()
- Returns:
- returns cropWidth.
getCropHeight
public int getCropHeight()
- Returns:
- returns cropHeight.
getRotate
public double getRotate()
- Returns:
- returns rotate.
getScaleX
public double getScaleX()
- Returns:
- returns scaleX.
getScaleY
public double getScaleY()
- Returns:
- returns scaleY.
getTranslateX
public int getTranslateX()
- Returns:
- returns translateX.
getTranslateY
public int getTranslateY()
- Returns:
- returns translateY.
isFlipHorizontal
public boolean isFlipHorizontal()
- Returns:
- returns flipHorizontal.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()