My Project
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
ParaEngine::QTransform Class Reference

Public Types

enum  TransformationType {
  TxNone = 0x00, TxTranslate = 0x01, TxScale = 0x02, TxRotate = 0x04,
  TxShear = 0x08, TxProject = 0x10
}
 

Public Member Functions

 QTransform (float h11, float h12, float h13, float h21, float h22, float h23, float h31, float h32, float h33=1.0)
 
 QTransform (float h11, float h12, float h21, float h22, float dx, float dy)
 
 QTransform (const QMatrix &mtx)
 
bool isAffine () const
 
bool isIdentity () const
 
bool isInvertible () const
 
bool isScaling () const
 
bool isRotating () const
 
bool isTranslating () const
 
TransformationType type () const
 
float determinant () const
 
float det () const
 
float m11 () const
 
float m12 () const
 
float m13 () const
 
float m21 () const
 
float m22 () const
 
float m23 () const
 
float m31 () const
 
float m32 () const
 
float m33 () const
 
float dx () const
 
float dy () const
 
void setMatrix (float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
 
QTransform inverted (bool *invertible=0) const
 
QTransform adjoint () const
 
QTransform transposed () const
 
QTransformtranslate (float dx, float dy)
 
QTransformscale (float sx, float sy)
 
QTransformshear (float sh, float sv)
 
QTransformrotate (float a, ParaEngine::Axis axis=ZAxis)
 
QTransformrotateRadians (float a, ParaEngine::Axis axis=ZAxis)
 
bool operator== (const QTransform &) const
 
bool operator!= (const QTransform &) const
 
QTransformoperator*= (const QTransform &)
 
QTransform operator* (const QTransform &o) const
 
QTransformoperator= (const QTransform &)
 
void reset ()
 
QPoint map (const QPoint &p) const
 
QPointF map (const QPointF &p) const
 
QLine map (const QLine &l) const
 
QLineF map (const QLineF &l) const
 
QRegion map (const QRegion &r) const
 
QRect mapRect (const QRect &) const
 
QRectF mapRect (const QRectF &) const
 
void map (int x, int y, int *tx, int *ty) const
 
void map (float x, float y, float *tx, float *ty) const
 
const QMatrixtoAffine () const
 
QTransformoperator*= (float div)
 
QTransformoperator/= (float div)
 
QTransformoperator+= (float div)
 
QTransformoperator-= (float div)
 

Static Public Member Functions

static QTransform fromTranslate (float dx, float dy)
 
static QTransform fromScale (float dx, float dy)
 

Friends

class ParaPainter
 

Member Function Documentation

§ type()

QTransform::TransformationType QTransform::type ( ) const

Returns the transformation type of this matrix.

The transformation type is the highest enumeration value capturing all of the matrix's transformations. For example, if the matrix both scales and shears, the type would be TxShear, because TxShear has a higher enumeration value than TxScale.

Knowing the transformation type of a matrix is useful for optimization: you can often handle specific types more optimally than handling the generic case.


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