pleyo.com

WKAL::AffineTransform Class Reference

List of all members.

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
AffineTransformmultiply (const AffineTransform &)
 multiply matrix
AffineTransformscale (double)
 scale
AffineTransformscale (double sx, double sy)
 scale
AffineTransformscaleNonUniform (double sx, double sy)
 scale non uniform
AffineTransformrotate (double d)
 rotate
AffineTransformrotateFromVector (double x, double y)
 rotate from vector
AffineTransformtranslate (double tx, double ty)
 translate
AffineTransformshear (double sx, double sy)
 shear
AffineTransformflipX ()
 flip on X axis
AffineTransformflipY ()
 flip on Y axis
AffineTransformskew (double angleX, double angleY)
 skew
AffineTransformskewX (double angle)
 skew on x axis
AffineTransformskewY (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!=
AffineTransformoperator*= (const AffineTransform &)
 operator*=
AffineTransform operator* (const AffineTransform &)
 operator*


Constructor & Destructor Documentation

WKAL::AffineTransform::AffineTransform (  ) 

AffineTransform default contructor.

WKAL::AffineTransform::AffineTransform ( double  a,
double  b,
double  c,
double  d,
double  e,
double  f 
)

AffineTransform constructor.

Parameters:
[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.

Parameters:
[in] : platform matrix
 AffineTransform *a = new AffineTransform(balMatrix);


Member Function Documentation

void WKAL::AffineTransform::setMatrix ( double  a,
double  b,
double  c,
double  d,
double  e,
double  f 
)

set Matrix

Parameters:
[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.

Parameters:
[in] : x value
[in] : y value
[out] : x value
[out] : y value
 a->map(x1, y1, &x2, &y2);

IntPoint WKAL::AffineTransform::mapPoint ( const IntPoint  )  const

Maps the given coordinates x and y into the coordinate system defined by this matrix.

Parameters:
[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.

Parameters:
[in] : point
[out] : point
 FloatPoint p = a->mapPoint(p1);

IntRect WKAL::AffineTransform::mapRect ( const IntRect  )  const

Maps the given rect into the coordinate system defined by this matrix.

Parameters:
[in] : rectangle
[out] : rectangle
 IntRect r = a->mapRect(r1);

FloatRect WKAL::AffineTransform::mapRect ( const FloatRect  )  const

Maps the given rect into the coordinate system defined by this matrix.

Parameters:
[in] : rectangle
[out] : rectangle
 FloatRect r = a->mapRect(r1);

bool WKAL::AffineTransform::isIdentity (  )  const

test if the matrix is the identity matrix

Parameters:
[out] : true if the matrix is the identity matrix
 bool id = a->isIdentity();

double WKAL::AffineTransform::a (  )  const

get a value

Parameters:
[out] : a value
 double a = af->a();

void WKAL::AffineTransform::setA ( double  a  ) 

set a value

Parameters:
[in] : a value
 af->setA(3.3);

double WKAL::AffineTransform::b (  )  const

get b value

Parameters:
[out] : b value
 double b = af->b();

void WKAL::AffineTransform::setB ( double  b  ) 

set b value

Parameters:
[in] : b value
 af->setB(3.3);

double WKAL::AffineTransform::c (  )  const

get c value

Parameters:
[out] : c value
 double c = af->c();

void WKAL::AffineTransform::setC ( double  c  ) 

set c value

Parameters:
[in] : c value
 af->setC(3.3);

double WKAL::AffineTransform::d (  )  const

get d value

Parameters:
[out] : d value
 double d = af->d();

void WKAL::AffineTransform::setD ( double  d  ) 

set d value

Parameters:
[in] : d value
 af->setD(3.3);

double WKAL::AffineTransform::e (  )  const

get e value

Parameters:
[out] : e value
 double e = af->e();

void WKAL::AffineTransform::setE ( double  e  ) 

set e value

Parameters:
[in] : e value
 af->setE(3.3);

double WKAL::AffineTransform::f (  )  const

get f value

Parameters:
[out] : f value
 double f = af->f();

void WKAL::AffineTransform::setF ( double  f  ) 

set f value

Parameters:
[in] : f value
 af->setF(3.3);

void WKAL::AffineTransform::reset (  ) 

reset matrix

 af->reset();

AffineTransform& WKAL::AffineTransform::multiply ( const AffineTransform  ) 

multiply matrix

Parameters:
[in] : affineTransform
[out] : affineTransform
 af = af->multiply(af1);

AffineTransform& WKAL::AffineTransform::scale ( double   ) 

scale

Parameters:
[in] : scale value
[out] : affineTransform
 af = af->scale(3.0);

AffineTransform& WKAL::AffineTransform::scale ( double  sx,
double  sy 
)

scale

Parameters:
[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

Parameters:
[in] : scale x value
[in] : scale y value
[out] : affineTransform
 af = af->scaleNonUniform(3.0, 1.0);

AffineTransform& WKAL::AffineTransform::rotate ( double  d  ) 

rotate

Parameters:
[in] : rotate value in radian
[out] : affineTransform
 af = af->rotate(2.0);

AffineTransform& WKAL::AffineTransform::rotateFromVector ( double  x,
double  y 
)

rotate from vector

Parameters:
[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

Parameters:
[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

Parameters:
[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

Parameters:
[out] : affineTransform
 af = af->flipX();

AffineTransform& WKAL::AffineTransform::flipY (  ) 

flip on Y axis

Parameters:
[out] : affineTransform
 af = af->flipY();

AffineTransform& WKAL::AffineTransform::skew ( double  angleX,
double  angleY 
)

skew

Parameters:
[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

Parameters:
[in] : angle value
[out] : affineTransform
 af = af->skewX(2.0);

AffineTransform& WKAL::AffineTransform::skewY ( double  angle  ) 

skew on y axis

Parameters:
[in] : angle value
[out] : affineTransform
 af = af->skewY(2.0);

double WKAL::AffineTransform::det (  )  const

get the matrix's determinant

Parameters:
[out] : det value
 double det = af->det();

bool WKAL::AffineTransform::isInvertible (  )  const

test if the matrix is invertible

Parameters:
[out] : true if the matrix is invertible
 bool rev = af->isInvertible();

AffineTransform WKAL::AffineTransform::inverse (  )  const

inverse the matrix

Parameters:
[out] : affineTransform
 af = af->inverse();

WKAL::AffineTransform::operator BalMatrix (  )  const

platform Matrix operator

Parameters:
[out] : platform matrix

bool WKAL::AffineTransform::operator== ( const AffineTransform  )  const

operator==

Parameters:
[in] : affineTransform
[out] : true if the two affineTransform are equal
 bool e = af == af2;

bool WKAL::AffineTransform::operator!= ( const AffineTransform other  )  const

operator!=

Parameters:
[in] : affineTransform
[out] : true if the two affineTransform are different
 bool d = af != af2;

AffineTransform& WKAL::AffineTransform::operator*= ( const AffineTransform  ) 

operator*=

Parameters:
[in] : affineTransform
[out] : affineTransform
 af *= af2;

AffineTransform WKAL::AffineTransform::operator* ( const AffineTransform  ) 

operator*

Parameters:
[in] : affineTransform
[out] : affineTransform
 af = af * af2;


The documentation for this class was generated from the following file:

Generated on Mon Jun 30 16:22:07 2008 for Origyn Web Browser by Doxygen 1.5.5

pleyo.com
pleyo.com