TGfxAffineTransform Class Reference
class TGfxAffineTransform
|
This class implements operations of a 2D transform matrix.
Public Member Functions
|
|
TGfxAffineTransform
()
|
|
TGfxAffineTransform
(
TReal32
,
TReal32
,
TReal32
,
TReal32
,
TReal32
,
TReal32
)
|
void
|
AppendTransform
(const
TGfxAffineTransform
&)
|
void
|
Concatenate
(const
TGfxAffineTransform
&)
|
TGfxAffineTransform
|
CreateInverse
()
|
TReal32
|
Determinant
()
|
TGfxAffineTransform
|
GetRotateInstance
(
TReal32
)
|
TGfxAffineTransform
|
GetRotateInstance
(
TReal32
, const
TFloatFixPt
&, const
TFloatFixPt
&)
|
TGfxAffineTransform
|
GetScaleInstance
(
TReal32
,
TReal32
)
|
TGfxAffineTransform
|
GetShearInstance
(
TReal32
,
TReal32
)
|
TGfxAffineTransform
|
GetTranslateInstance
(const
TFloatFixPt
&, const
TFloatFixPt
&)
|
TGfxAffineTransform
|
GetZoomInstance
(
TReal32
, const
TFloatFixPt
&, const
TFloatFixPt
&)
|
TBool
|
IsIdentity
()
|
void
|
Print
()
|
void
|
Rotate
(
TReal32
)
|
void
|
Rotate
(
TReal32
, const
TFloatFixPt
&, const
TFloatFixPt
&)
|
void
|
Scale
(
TReal32
,
TReal32
)
|
TReal32
|
ScaleX
()
|
TReal32
|
ScaleY
()
|
TFloatFixPt
|
ScalingFactor
()
|
void
|
SetTransform
(
TReal32
,
TReal32
,
TReal32
,
TReal32
,
TReal32
,
TReal32
)
|
void
|
Shear
(
TReal32
,
TReal32
)
|
TReal32
|
ShearX
()
|
TReal32
|
ShearY
()
|
void
|
Transform
(
TGfxPoint2D
*,
TGfxPoint2D
*,
TInt32
)
|
void
|
Transform
(
TFloatFixPt
*,
TFloatFixPt
*,
TInt32
)
|
void
|
Transform
(
TFloatFixPt
*,
TInt32
)
|
TUint32
|
TransformType
()
|
void
|
Translate
(const
TFloatFixPt
&, const
TFloatFixPt
&)
|
TReal32
|
TranslateX
()
|
TReal32
|
TranslateY
()
|
void
|
UserPan
(const
TFloatFixPt
&, const
TFloatFixPt
&)
|
void
|
UserRotate
(
TReal32
, const
TFloatFixPt
&, const
TFloatFixPt
&)
|
void
|
UserZoom
(
TReal32
, const
TFloatFixPt
&, const
TFloatFixPt
&)
|
Constructor & Destructor Documentation
TGfxAffineTransform()
Construct an identity matrix.
TGfxAffineTransform(TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)
Parameters
TReal32
aM00
|
: row 0, column 0 value of matrix.
|
TReal32
aM10
|
: row 1, column 0 value of matrix.
|
TReal32
aM01
|
: row 0, column 1 value of matrix.
|
TReal32
aM11
|
: row 1, column 1 value of matrix.
|
TReal32
aM02
|
: row 0, column 2 value of matrix.
|
TReal32
aM12
|
: row 1, column 2 value of matrix.
|
TGfxAffineTransform(TReal32, TReal32, TReal32, TReal32, TReal32, TReal32, TGfxTransformType)
Parameters
TReal32
aM00
|
: row 0, column 0 value of matrix.
|
TReal32
aM10
|
: row 1, column 0 value of matrix.
|
TReal32
aM01
|
: row 0, column 1 value of matrix.
|
TReal32
aM11
|
: row 1, column 1 value of matrix.
|
TReal32
aM02
|
: row 0, column 2 value of matrix.
|
TReal32
aM12
|
: row 1, column 2 value of matrix.
|
TGfxTransformType
aType
|
: transform type.
|
Member Functions Documentation
AppendTransform(const TGfxAffineTransform &)
Appends this transform with the existing transform Multiply in reverse order For Ex: In cases of zoom, rotate and pan of already transformed content. If T is the existing transform and zoom operation has to be applied to it the resultant transform would be Z*T.
-
Since
-
1.0
Concatenate(const TGfxAffineTransform &)
Muliply this given matrix with this matrix.
CreateInverse()
Create the inverse tranformation matrix of this matrix.
Determinant()
Return the determinate value of this matrix.
GetRotateInstance(TReal32)
Parameters
TReal32
aTheta
|
: angle to create a rotation affine transform.
|
GetRotateInstance(TReal32, const TFloatFixPt &, const TFloatFixPt &)
Return a
TGfxAffineTransform
object with the rotation info of the given angle, rotated at the given point.
Parameters
TReal32
aTheta
|
: angle to create a rotation affine transform.
|
const
TFloatFixPt
& aX
|
: x value of rotation center.
|
const
TFloatFixPt
& aY
|
: x value of rotation center.
|
GetScaleInstance(TReal32, TReal32)
Parameters
TReal32
aSx
|
: scaling factor in the x axis.
|
TReal32
aSy
|
: scaling factor in the y axis.
|
GetShearInstance(TReal32, TReal32)
Parameters
TReal32
aShx
|
: shearing factor in the x axis.
|
TReal32
aShy
|
: shearing factor in the y axis.
|
GetTranslateInstance(const TFloatFixPt &, const TFloatFixPt &)
Parameters
const
TFloatFixPt
& aTx
|
: translation value in the x axis.
|
const
TFloatFixPt
& aTy
|
: translation value in the y axis.
|
GetZoomInstance(TReal32, const TFloatFixPt &, const TFloatFixPt &)
Return a
TGfxAffineTransform
object with the zoom info of the given scalefactor, scaled at the given point.
IsIdentity()
TBool
|
IsIdentity
|
(
|
)
|
const
|
Return wether this matrix is an indentity matrix.
Rotate(TReal32)
Apply the given rotation angle to this matrix.
Rotate(TReal32, const TFloatFixPt &, const TFloatFixPt &)
Apply the given rotation angle about this given point to this matrix.
Parameters
TReal32
aTheta
|
: angle of rotation
|
const
TFloatFixPt
& aX
|
: x coordinate for center of rotation.
|
const
TFloatFixPt
& aY
|
: y coordinate for center of rotation.
|
Scale(TReal32, TReal32)
Apply the given scale factors to this matrix.
Parameters
TReal32
aSx
|
: scaling factor in the x axis.
|
TReal32
aSy
|
: scaling factor in the y axis.
|
ScaleX()
Return the scaling factor in the x axis.
ScaleY()
Return the scaling factor in the y axis.
ScalingFactor()
Get the scaling factor set in this transform. This function returns correctly for a uniform scaling in both directions only.
-
Since
-
1.0
SetToRotate(TReal32)
void
|
SetToRotate
|
(
|
TReal32
|
aTheta
|
)
|
[private]
|
The the the rotation info to the give angle.
SetTransform(TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)
Set the transformation info of this matrix to the given values.
Parameters
TReal32
aM00
|
: row 0, column 0 value of matrix.
|
TReal32
aM10
|
: row 1, column 0 value of matrix.
|
TReal32
aM01
|
: row 0, column 1 value of matrix.
|
TReal32
aM11
|
: row 1, column 1 value of matrix.
|
TReal32
aM02
|
: row 0, column 2 value of matrix.
|
TReal32
aM12
|
: row 1, column 2 value of matrix.
|
Shear(TReal32, TReal32)
Apply the given shearing values to this matrix.
ShearX()
Return the shearing factor in the x axis.
ShearY()
Return the shearing factor in the y axis.
Transform(TGfxPoint2D *, TGfxPoint2D *, TInt32)
Apply the transformation described by this matrix to the array of
TGfxPoint2D
.
Parameters
TGfxPoint2D
* aSrcPts
|
: array of TGfxPoint2D values to transform.
|
TGfxPoint2D
* aDstPts
|
: array to store transformed points.
|
TInt32
aNumPts
|
: number of points to transform.
|
Transform(TFloatFixPt *, TFloatFixPt *, TInt32)
Apply the transformation described by this matrix to the array of
TFloatFixPt
.
Parameters
TFloatFixPt
* aSrcPts
|
: array of TFloatFixPt values to transform.
|
TFloatFixPt
* aDstPts
|
: array to store transformed points.
|
TInt32
aNumPts
|
: number of points to transform.
|
Transform(TFloatFixPt *, TInt32)
Apply the transformation described by this matrix to the array of
TFloatFixPt
. Old values are replaced.
TransformType()
Return the transformation type of this matrix.
Translate(const TFloatFixPt &, const TFloatFixPt &)
Apply the given translation values to this matrix.
Parameters
const
TFloatFixPt
& aTx
|
: translation value in the x axis.
|
const
TFloatFixPt
& aTy
|
: translation value in the y axis.
|
TranslateX()
Return the translation value in the x axis.
TranslateY()
Return the translation value in the y axis.
UpdateState()
void
|
UpdateState
|
(
|
)
|
[private]
|
UserPan(const TFloatFixPt &, const TFloatFixPt &)
Apply the given translation values to this matrix.
Parameters
const
TFloatFixPt
& aTx
|
: translation value in the x axis.
|
const
TFloatFixPt
& aTy
|
: translation value in the y axis.
|
UserRotate(TReal32, const TFloatFixPt &, const TFloatFixPt &)
Apply the given rotation angle about this given point to this matrix.
Parameters
TReal32
aTheta
|
: angle of rotation
|
const
TFloatFixPt
& aX
|
: x coordinate for center of rotation.
|
const
TFloatFixPt
& aY
|
: y coordinate for center of rotation.
|
UserZoom(TReal32, const TFloatFixPt &, const TFloatFixPt &)
Member Data Documentation
TGfxTransformType
iTransType
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.