Public Member Functions | |
| AffineTransform () | |
| AffineTransform default contructor. | |
| AffineTransform (double a, double b, double c, double d, double e, double f) | |
| AffineTransform constructor. | |
| AffineTransform (const BalMatrix &matrix) | |
| AffineTransform constructor. | |
| void | setMatrix (double a, double b, double c, double d, double e, double f) |
| set Matrix | |
| void | map (double x, double y, double *x2, double *y2) const |
| Maps the given coordinates x and y into the coordinate system defined by this matrix. | |
| IntPoint | mapPoint (const IntPoint &) const |
| Maps the given coordinates x and y into the coordinate system defined by this matrix. | |
| FloatPoint | mapPoint (const FloatPoint &) const |
| Maps the given coordinates x and y into the coordinate system defined by this matrix. | |
| IntRect | mapRect (const IntRect &) const |
| Maps the given rect into the coordinate system defined by this matrix. | |
| FloatRect | mapRect (const FloatRect &) const |
| Maps the given rect into the coordinate system defined by this matrix. | |
| bool | isIdentity () const |
| test if the matrix is the identity matrix | |
| double | a () const |
| get a value | |
| void | setA (double a) |
| set a value | |
| double | b () const |
| get b value | |
| void | setB (double b) |
| set b value | |
| double | c () const |
| get c value | |
| void | setC (double c) |
| set c value | |
| double | d () const |
| get d value | |
| void | setD (double d) |
| set d value | |
| double | e () const |
| get e value | |
| void | setE (double e) |
| set e value | |
| double | f () const |
| get f value | |
| void | setF (double f) |
| set f value | |
| void | reset () |
| reset matrix | |
| AffineTransform & | multiply (const AffineTransform &) |
| multiply matrix | |
| AffineTransform & | scale (double) |
| scale | |
| AffineTransform & | scale (double sx, double sy) |
| scale | |
| AffineTransform & | scaleNonUniform (double sx, double sy) |
| scale non uniform | |
| AffineTransform & | rotate (double d) |
| rotate | |
| AffineTransform & | rotateFromVector (double x, double y) |
| rotate from vector | |
| AffineTransform & | translate (double tx, double ty) |
| translate | |
| AffineTransform & | shear (double sx, double sy) |
| shear | |
| AffineTransform & | flipX () |
| flip on X axis | |
| AffineTransform & | flipY () |
| flip on Y axis | |
| AffineTransform & | skew (double angleX, double angleY) |
| skew | |
| AffineTransform & | skewX (double angle) |
| skew on x axis | |
| AffineTransform & | skewY (double angle) |
| skew on y axis | |
| double | det () const |
| get the matrix's determinant | |
| bool | isInvertible () const |
| test if the matrix is invertible | |
| AffineTransform | inverse () const |
| inverse the matrix | |
| operator BalMatrix () const | |
| platform Matrix operator | |
| bool | operator== (const AffineTransform &) const |
| operator== | |
| bool | operator!= (const AffineTransform &other) const |
| operator!= | |
| AffineTransform & | operator*= (const AffineTransform &) |
| operator*= | |
| AffineTransform | operator* (const AffineTransform &) |
| operator* | |
| WKAL::AffineTransform::AffineTransform | ( | ) |
| WKAL::AffineTransform::AffineTransform | ( | double | a, | |
| double | b, | |||
| double | c, | |||
| double | d, | |||
| double | e, | |||
| double | f | |||
| ) |
AffineTransform constructor.
| [in] | : | a value |
| [in] | : | b value |
| [in] | : | c value |
| [in] | : | d value |
| [in] | : | dx value |
| [in] | : | dy value AffineTransform *a = new AffineTransform(0, 1, 0, 1, 0, 0); |
| WKAL::AffineTransform::AffineTransform | ( | const BalMatrix & | matrix | ) |
AffineTransform constructor.
| [in] | : | platform matrix AffineTransform *a = new AffineTransform(balMatrix); |
| void WKAL::AffineTransform::setMatrix | ( | double | a, | |
| double | b, | |||
| double | c, | |||
| double | d, | |||
| double | e, | |||
| double | f | |||
| ) |
set Matrix
| [in] | : | a value |
| [in] | : | b value |
| [in] | : | c value |
| [in] | : | d value |
| [in] | : | dx value |
| [in] | : | dy value a->setMatrix(0, 1, 0, 1, 0, 0); |
| void WKAL::AffineTransform::map | ( | double | x, | |
| double | y, | |||
| double * | x2, | |||
| double * | y2 | |||
| ) | const |
Maps the given coordinates x and y into the coordinate system defined by this matrix.
The resulting values are put in x2 and y2, respectively.
| [in] | : | x value |
| [in] | : | y value |
| [out] | : | x value |
| [out] | : | y value a->map(x1, y1, &x2, &y2); |
Maps the given coordinates x and y into the coordinate system defined by this matrix.
| [in] | : | point |
| [out] | : | point IntPoint p = a->mapPoint(p1); |
| FloatPoint WKAL::AffineTransform::mapPoint | ( | const FloatPoint & | ) | const |
Maps the given coordinates x and y into the coordinate system defined by this matrix.
| [in] | : | point |
| [out] | : | point FloatPoint p = a->mapPoint(p1); |
Maps the given rect into the coordinate system defined by this matrix.
| [in] | : | rectangle |
| [out] | : | rectangle IntRect r = a->mapRect(r1); |
Maps the given rect into the coordinate system defined by this matrix.
| [in] | : | rectangle |
| [out] | : | rectangle FloatRect r = a->mapRect(r1); |
| bool WKAL::AffineTransform::isIdentity | ( | ) | const |
test if the matrix is the identity matrix
| [out] | : | true if the matrix is the identity matrix bool id = a->isIdentity(); |
| double WKAL::AffineTransform::a | ( | ) | const |
get a value
| [out] | : | a value double a = af->a();
|
| void WKAL::AffineTransform::setA | ( | double | a | ) |
set a value
| [in] | : | a value af->setA(3.3); |
| double WKAL::AffineTransform::b | ( | ) | const |
get b value
| [out] | : | b value double b = af->b();
|
| void WKAL::AffineTransform::setB | ( | double | b | ) |
set b value
| [in] | : | b value af->setB(3.3); |
| double WKAL::AffineTransform::c | ( | ) | const |
get c value
| [out] | : | c value double c = af->c();
|
| void WKAL::AffineTransform::setC | ( | double | c | ) |
set c value
| [in] | : | c value af->setC(3.3); |
| double WKAL::AffineTransform::d | ( | ) | const |
get d value
| [out] | : | d value double d = af->d();
|
| void WKAL::AffineTransform::setD | ( | double | d | ) |
set d value
| [in] | : | d value af->setD(3.3); |
| double WKAL::AffineTransform::e | ( | ) | const |
get e value
| [out] | : | e value double e = af->e();
|
| void WKAL::AffineTransform::setE | ( | double | e | ) |
set e value
| [in] | : | e value af->setE(3.3); |
| double WKAL::AffineTransform::f | ( | ) | const |
get f value
| [out] | : | f value double f = af->f();
|
| void WKAL::AffineTransform::setF | ( | double | f | ) |
set f value
| [in] | : | f value af->setF(3.3); |
| void WKAL::AffineTransform::reset | ( | ) |
reset matrix
af->reset();
| AffineTransform& WKAL::AffineTransform::multiply | ( | const AffineTransform & | ) |
multiply matrix
| [in] | : | affineTransform |
| [out] | : | affineTransform af = af->multiply(af1); |
| AffineTransform& WKAL::AffineTransform::scale | ( | double | ) |
scale
| [in] | : | scale value |
| [out] | : | affineTransform af = af->scale(3.0); |
| AffineTransform& WKAL::AffineTransform::scale | ( | double | sx, | |
| double | sy | |||
| ) |
scale
| [in] | : | scale x value |
| [in] | : | scale y value |
| [out] | : | affineTransform af = af->scale(3.0, 1.0); |
| AffineTransform& WKAL::AffineTransform::scaleNonUniform | ( | double | sx, | |
| double | sy | |||
| ) |
scale non uniform
| [in] | : | scale x value |
| [in] | : | scale y value |
| [out] | : | affineTransform af = af->scaleNonUniform(3.0, 1.0); |
| AffineTransform& WKAL::AffineTransform::rotate | ( | double | d | ) |
rotate
| [in] | : | rotate value in radian |
| [out] | : | affineTransform af = af->rotate(2.0); |
| AffineTransform& WKAL::AffineTransform::rotateFromVector | ( | double | x, | |
| double | y | |||
| ) |
rotate from vector
| [in] | : | rotate x value |
| [in] | : | rotate y value |
| [out] | : | affineTransform af = af->rotateFromVector(1.0, 2.0); |
| AffineTransform& WKAL::AffineTransform::translate | ( | double | tx, | |
| double | ty | |||
| ) |
translate
| [in] | : | translate x value |
| [in] | : | translate y value |
| [out] | : | affineTransform af = af->translate(1.0, 2.0); |
| AffineTransform& WKAL::AffineTransform::shear | ( | double | sx, | |
| double | sy | |||
| ) |
shear
| [in] | : | shear x value |
| [in] | : | shear y value |
| [out] | : | affineTransform af = af->shear(1.0, 2.0); |
| AffineTransform& WKAL::AffineTransform::flipX | ( | ) |
flip on X axis
| [out] | : | affineTransform af = af->flipX(); |
| AffineTransform& WKAL::AffineTransform::flipY | ( | ) |
flip on Y axis
| [out] | : | affineTransform af = af->flipY(); |
| AffineTransform& WKAL::AffineTransform::skew | ( | double | angleX, | |
| double | angleY | |||
| ) |
skew
| [in] | : | angle x |
| [in] | : | angle y |
| [out] | : | affineTransform af = af->skew(2.0, 3.0) |
| AffineTransform& WKAL::AffineTransform::skewX | ( | double | angle | ) |
skew on x axis
| [in] | : | angle value |
| [out] | : | affineTransform af = af->skewX(2.0); |
| AffineTransform& WKAL::AffineTransform::skewY | ( | double | angle | ) |
skew on y axis
| [in] | : | angle value |
| [out] | : | affineTransform af = af->skewY(2.0); |
| double WKAL::AffineTransform::det | ( | ) | const |
| bool WKAL::AffineTransform::isInvertible | ( | ) | const |
test if the matrix is invertible
| [out] | : | true if the matrix is invertible bool rev = af->isInvertible();
|
| AffineTransform WKAL::AffineTransform::inverse | ( | ) | const |
inverse the matrix
| [out] | : | affineTransform af = af->inverse(); |
| WKAL::AffineTransform::operator BalMatrix | ( | ) | const |
platform Matrix operator
| [out] | : | platform matrix |
| bool WKAL::AffineTransform::operator== | ( | const AffineTransform & | ) | const |
operator==
| [in] | : | affineTransform |
| [out] | : | true if the two affineTransform are equal bool e = af == af2;
|
| bool WKAL::AffineTransform::operator!= | ( | const AffineTransform & | other | ) | const |
operator!=
| [in] | : | affineTransform |
| [out] | : | true if the two affineTransform are different bool d = af != af2;
|
| AffineTransform& WKAL::AffineTransform::operator*= | ( | const AffineTransform & | ) |
operator*=
| [in] | : | affineTransform |
| [out] | : | affineTransform af *= af2; |
| AffineTransform WKAL::AffineTransform::operator* | ( | const AffineTransform & | ) |
operator*
| [in] | : | affineTransform |
| [out] | : | affineTransform af = af * af2; |