TdkPrintPreviewDisplay Class Reference
[The Control Module]

Defines the TdkPrintPreviewDisplay class. More...

#include <TdkPrintPreviewDisplay.h>

Inheritance diagram for TdkPrintPreviewDisplay:

TdkDisplay TdkEventHandler List of all members.

Public Member Functions

 TdkPrintPreviewDisplay (TdkCanvas *canvas)
virtual void fit ()
 Zoom to a level where all objects in the map can be seen.
virtual void zoomArea (double x0, double y0, double x1, double y1)
 Zoom to a given area.
virtual void zoom (double factor)
 Zoom by a fixed factor maintaining the center location.
virtual void zoom (double xc, double yc, double factor)
 Zoom by a fixed factor.
virtual void pan (double dx, double dy)
 Pan (drag) the map in some direction.
virtual void draw ()
 Redraws the map (by getting all the information from the database again).
virtual void getCenter (double &x, double &y)

Protected Member Functions

virtual void reset ()
virtual void drawPage ()
virtual void drawObjects ()
virtual void handleVSEvent (TdkRedrawEvent &event)
virtual void handleVSEvent (TdkEvent &event)
virtual void handleVSEvent (TdkPanEvent &event)
virtual void handleVSEvent (TdkPanFeedbackEvent &event)

Detailed Description

Defines the TdkPrintPreviewDisplay class.


Constructor & Destructor Documentation

TdkPrintPreviewDisplay::TdkPrintPreviewDisplay ( TdkCanvas canvas  ) 


Member Function Documentation

void TdkPrintPreviewDisplay::fit (  )  [virtual]

Zoom to a level where all objects in the map can be seen.

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::zoomArea ( double  x0,
double  y0,
double  x1,
double  y1 
) [virtual]

Zoom to a given area.

Parameters:
x0 X world coordinate of the location at the top left corner of the area.
y0 Y world coordinate of the location at the top left corner of the area.
x1 X world coordinate of the location at the bottom right corner of the area.
y1 Y world coordinate of the location at the bottom right corner of the area.

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::zoom ( double  factor  )  [virtual]

Zoom by a fixed factor maintaining the center location.

Parameters:
factor Zoom factor.

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::zoom ( double  xc,
double  yc,
double  factor 
) [virtual]

Zoom by a fixed factor.

Parameters:
xc X world coordinate of the location to be centralized in the new zoom level.
yc Y world coordinate of the location to be centralized in the new zoom level.
factor Zoom factor.

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::pan ( double  dx,
double  dy 
) [virtual]

Pan (drag) the map in some direction.

Parameters:
dx Horizontal deslocation in world coordinates.
dy Vertical deslocation in world coordinates.

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::draw (  )  [virtual]

Redraws the map (by getting all the information from the database again).

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::getCenter ( double &  x,
double &  y 
) [virtual]

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::reset (  )  [protected, virtual]

void TdkPrintPreviewDisplay::drawPage (  )  [protected, virtual]

void TdkPrintPreviewDisplay::drawObjects (  )  [protected, virtual]

void TdkPrintPreviewDisplay::handleVSEvent ( TdkRedrawEvent event  )  [protected, virtual]

void TdkPrintPreviewDisplay::handleVSEvent ( TdkEvent event  )  [protected, virtual]

Reimplemented from TdkDisplay.

void TdkPrintPreviewDisplay::handleVSEvent ( TdkPanEvent event  )  [protected, virtual]

void TdkPrintPreviewDisplay::handleVSEvent ( TdkPanFeedbackEvent event  )  [protected, virtual]


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:51 2007 for TDK by  doxygen 1.5.2