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

Transformer Class Reference

The Transformer is an interface specifying how to compute the transformation Matrix from an initial mouse click (screen position) and final mouse click. More...

#include <Transformer.h>

Inheritance diagram for Transformer:

TransformerArcBall TransformerPan TransformerZoom List of all members.

Public Methods

virtual ~Transformer ()
 Virtual (emtpy) destructor defined to ensure that derived classes' destructors are invoked.

virtual void reshape (int width, int height)=0
 Update the Transformer screen dimensions.

virtual void start (float x, float y)=0
 Starts a transformation at the given screen coordinates.

virtual const Matrix end (float x, float y)=0
 Computes the Matrix representing the transformation from the initial screen coordinates (start) and the current screen coordinates.


Detailed Description

The Transformer is an interface specifying how to compute the transformation Matrix from an initial mouse click (screen position) and final mouse click.


Constructor & Destructor Documentation

virtual Transformer::~Transformer   [inline, virtual]
 

Virtual (emtpy) destructor defined to ensure that derived classes' destructors are invoked.


Member Function Documentation

virtual const Matrix Transformer::end float    x,
float    y
[pure virtual]
 

Computes the Matrix representing the transformation from the initial screen coordinates (start) and the current screen coordinates.

Implemented in TransformerArcBall, TransformerPan, and TransformerZoom.


The documentation for this class was generated from the following file:
Generated on Sat Mar 22 15:12:08 2003 for Bumpmap by doxygen1.3-rc2