Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Examples  

QSProjection2D Class Reference

Implementation of QSProjection for use in QSAxes2D. More...

#include <qsprojection2d.h>

Inheritance diagram for QSProjection2D:

Inheritance graph
[legend]
List of all members.

Public Types

typedef double Matrix [3][3]

Public Methods

 QSProjection2D ()
virtual ~QSProjection2D ()
double world2DToCanvasX (double x) const
double world2DToCanvasY (double y) const
double world2DToCanvasZ (double z) const
double canvasXToWorld2D (double x) const
double canvasYToWorld2D (double y) const
double canvasZToWorld2D (double z) const
virtual QSPt2f world2DToCanvas (const QSPt2f &p) const
virtual QSPt3f world2DToCanvas3 (const QSPt2f &p) const
virtual QSPt2f world3DToCanvas (const QSPt3f &p) const
virtual QSPt3f world3DToCanvas3 (const QSPt3f &p) const
virtual QSPt3f canvas3ToWorld3D (const QSPt3f &p) const
virtual QSPt2f worldTransformation (const Matrix m, const QSPt2f &p) const
void setClipRect (double x1, double y1, double x2, double y2)
void getClipRect (double *x1, double *y1, double *x2, double *y2) const

Static Public Methods

void matrixI (Matrix m)
void multiply (Matrix A, Matrix B)
void copy (Matrix dst, const Matrix src)
void applyT (Matrix m, double dx, double dy)
void applyS (Matrix m, double sx, double sy)
void inv (Matrix result, const Matrix m)
void applyViewport (Matrix m, double x, double y, double w, double h)

Public Attributes

Matrix T
Matrix IT

Detailed Description

Implementation of QSProjection for use in QSAxes2D.

Author:
Kamil Dobkowski


Constructor & Destructor Documentation

QSProjection2D::QSProjection2D  
 

constructor.

virtual QSProjection2D::~QSProjection2D   [virtual]
 

destructor.


Member Function Documentation

void QSProjection2D::applyS Matrix    m,
double    sx,
double    sy
[static]
 

Apply scaling.

void QSProjection2D::applyT Matrix    m,
double    dx,
double    dy
[static]
 

Apply shift ( translate ).

void QSProjection2D::applyViewport Matrix    m,
double    x,
double    y,
double    w,
double    h
[static]
 

Apply viewport transformation.

virtual QSPt3f QSProjection2D::canvas3ToWorld3D const QSPt3f   p const [virtual]
 

Reimplemented.

Implements QSProjection.

double QSProjection2D::canvasXToWorld2D double    x const
 

Maps the X from screen coordinates

double QSProjection2D::canvasYToWorld2D double    y const
 

Maps the Z from screen coordinates

double QSProjection2D::canvasZToWorld2D double    z const
 

Maps the Z from screen coordinates

void QSProjection2D::copy Matrix    dst,
const Matrix    src
[static]
 

Copies the given matrix : 'dst = src' .

void QSProjection2D::inv Matrix    result,
const Matrix    m
[static]
 

Calculates inversion of 'm'.

void QSProjection2D::matrixI Matrix    m [static]
 

Makes 'matrix' a unity matrix.

void QSProjection2D::multiply Matrix    A,
Matrix    B
[static]
 

Matrix multiplication : 'A = B*A'

virtual QSPt2f QSProjection2D::world2DToCanvas const QSPt2f   p const [virtual]
 

Reimplemented. Maps the point to the screen coordinates.

Implements QSProjection.

virtual QSPt3f QSProjection2D::world2DToCanvas3 const QSPt2f   p const [virtual]
 

Reimplemented. Maps the point to the screen coordinates.

Implements QSProjection.

double QSProjection2D::world2DToCanvasX double    x const
 

Maps the X to the screen coordinates.

double QSProjection2D::world2DToCanvasY double    y const
 

Maps the Y to the screen coordinates.

double QSProjection2D::world2DToCanvasZ double    z const
 

Maps the Z to the screen coordinates.

virtual QSPt2f QSProjection2D::world3DToCanvas const QSPt3f   p const [virtual]
 

Reimplemented. Maps the point to the screen coordinates.

Implements QSProjection.

virtual QSPt3f QSProjection2D::world3DToCanvas3 const QSPt3f   p const [virtual]
 

Reimplemented. Maps the point to the screen coordinates.

Implements QSProjection.

virtual QSPt2f QSProjection2D::worldTransformation const Matrix    m,
const QSPt2f   p
const [virtual]
 

Reimplemented. Applies transformation 'm' to 'p'.


The documentation for this class was generated from the following file:
Generated on Mon Mar 18 19:16:53 2002 for KMatplot library by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002