ionflux.org | Impressum

Ionflux::Tools::Cairo::Matrix Class Reference
[Cairo]

Cairo matrix. More...

#include <CairoMatrix.hpp>

Inheritance diagram for Ionflux::Tools::Cairo::Matrix:

Inheritance graph
[legend]
Collaboration diagram for Ionflux::Tools::Cairo::Matrix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Matrix ()
 Constructor.
 Matrix (const Matrix &initMatrix)
 Constructor.
 Matrix (const cairo_matrix_t &initMatrix)
 Constructor.
 Matrix (double xx, double yx, double xy, double yy, double x0, double y0)
 Constructor.
virtual ~Matrix ()
 Destructor.
void initIdentity ()
 Matrix identity.
void initTranslate (double tx, double ty)
 Matrix translate.
void initScale (double sx, double sy)
 Matrix scale.
void initRotate (double radians)
 Matrix rotate.
void translate (double tx, double ty)
 Matrix.
void scale (double sx, double sy)
 Matrix.
void rotate (double radians)
 Matrix.
void transformDistance (Distance &distance)
 Transform distance.
void transformPoint (Point &point)
 Transform point.
virtual Matrixoperator= (const Matrix3 &newMatrix)
 Assignment operator.
virtual Matrixoperator= (const Matrix &newCairoMatrix)
 Assignment operator.
virtual Matrixoperator= (const cairo_matrix_t &newCairoMatrix)
 Assignment operator.
void toCairoMatrix (cairo_matrix_t &cairoMatrix) const
 Convert to Cairo matrix.

Detailed Description

Cairo matrix.

A wrapper for the Cairo vector graphics API matrix type (see http://www.cairographics.org/).

Note:
Not all features of Cairo are supported yet by this wrapper.


Constructor & Destructor Documentation

Ionflux::Tools::Cairo::Matrix::Matrix  ) 
 

Constructor.

Construct new Matrix object.

Ionflux::Tools::Cairo::Matrix::Matrix const Matrix initMatrix  ) 
 

Constructor.

Construct new Matrix object.

Parameters:
initMatrix Cairo matrix.

Ionflux::Tools::Cairo::Matrix::Matrix const cairo_matrix_t &  initMatrix  ) 
 

Constructor.

Construct new Matrix object.

Parameters:
initMatrix Cairo matrix.

Ionflux::Tools::Cairo::Matrix::Matrix double  xx,
double  yx,
double  xy,
double  yy,
double  x0,
double  y0
 

Constructor.

Construct new Matrix object.

Parameters:
xx Xx.
yx Yx.
xy Xy.
yy Yy.
x0 X0.
y0 Y0.

Ionflux::Tools::Cairo::Matrix::~Matrix  )  [virtual]
 

Destructor.

Destruct Matrix object.


Member Function Documentation

void Ionflux::Tools::Cairo::Matrix::initIdentity  ) 
 

Matrix identity.

Matrix identity

void Ionflux::Tools::Cairo::Matrix::initRotate double  radians  ) 
 

Matrix rotate.

Matrix rotate

Parameters:
radians Radians.

void Ionflux::Tools::Cairo::Matrix::initScale double  sx,
double  sy
 

Matrix scale.

Matrix scale

Parameters:
sx Sx.
sy Sy.

void Ionflux::Tools::Cairo::Matrix::initTranslate double  tx,
double  ty
 

Matrix translate.

Matrix translate

Parameters:
tx Tx.
ty Ty.

Matrix & Ionflux::Tools::Cairo::Matrix::operator= const cairo_matrix_t &  newCairoMatrix  )  [virtual]
 

Assignment operator.

Assign a cairo matrix to this matrix object.

Parameters:
newCairoMatrix Cairo matrix.
Returns:
The object itself.

Matrix & Ionflux::Tools::Cairo::Matrix::operator= const Matrix newCairoMatrix  )  [virtual]
 

Assignment operator.

Assign a matrix to another matrix.

Parameters:
newCairoMatrix Cairo matrix.
Returns:
The object itself.

Matrix & Ionflux::Tools::Cairo::Matrix::operator= const Matrix3 newMatrix  )  [virtual]
 

Assignment operator.

Assign a matrix (R3) to a Cairo matrix.

Parameters:
newMatrix Matrix (R3).
Returns:
The object itself.

Reimplemented from Ionflux::Tools::Matrix3.

void Ionflux::Tools::Cairo::Matrix::rotate double  radians  ) 
 

Matrix.

Matrix

Parameters:
radians Radians.

void Ionflux::Tools::Cairo::Matrix::scale double  sx,
double  sy
 

Matrix.

Matrix

Parameters:
sx Sx.
sy Sy.

void Ionflux::Tools::Cairo::Matrix::toCairoMatrix cairo_matrix_t &  cairoMatrix  )  const
 

Convert to Cairo matrix.

Convert the matrix to a Cairo matrix.

Parameters:
cairoMatrix Where to store the Cairo matrix.

void Ionflux::Tools::Cairo::Matrix::transformDistance Distance distance  ) 
 

Transform distance.

Transform distance.

Parameters:
distance Distance.

void Ionflux::Tools::Cairo::Matrix::transformPoint Point point  ) 
 

Transform point.

Transform point.

Parameters:
point Point.

void Ionflux::Tools::Cairo::Matrix::translate double  tx,
double  ty
 

Matrix.

Matrix

Parameters:
tx Tx.
ty Ty.


The documentation for this class was generated from the following files:
Generated on Tue Mar 14 21:12:33 2006 for Ionflux Tools Class Library (iftools) by  doxygen 1.4.6