#include <TdkLayoutDisplay.h>
Inheritance diagram for TdkLayoutDisplay:
Public Member Functions | |
TdkLayoutDisplay (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 | center (double x, double y) |
Centers the layout around a given point. | |
virtual void | centerX (double x) |
Centers horizontally the layout around a given point. | |
virtual void | centerY (double y) |
Centers vertically the map around a given point. | |
virtual void | draw () |
Redraws the map (by getting all the information from the database again). | |
virtual void | resize (int xmin, int ymin, int xmax, int ymax, TdkResizeMethods met=rsmPreserveScalePos) |
Change the drawing area of the canvas. Coordinates are defined in pixels. | |
virtual void | drawSelectedObjects () |
virtual bool | getActiveRuler () |
virtual void | drawRulers () |
virtual TeBox | getFullLayoutRange () |
Calculates the bounding box of the elements in the layout (being displayed or not). | |
virtual TeBox | getVisibleRegion () |
Returns the region being displayed. | |
Protected Member Functions | |
virtual void | reset () |
virtual void | drawPage () |
virtual void | handleVSEvent (TdkEvent &event) |
virtual void | handleVSEvent (TdkRedrawEvent &event) |
virtual void | handleVSEvent (TdkRedrawDoneEvent &event) |
virtual void | handleVSEvent (TdkRefreshEvent &event) |
virtual void | handleVSEvent (TdkPickEvent &event) |
virtual void | handleVSEvent (TdkSelectObjectsEvent &event) |
virtual void | handleVSEvent (TdkLayoutSelectToEditEvent &event) |
virtual void | handleVSEvent (TdkValidateCoordinateEvent &event) |
virtual void | handleVOEvent (TdkEvent &event) |
virtual void | handleVOEvent (TdkRedrawEvent &event) |
virtual void | handleVOEvent (TdkRedrawDoneEvent &event) |
virtual void | handleVOEvent (TdkRefreshEvent &event) |
virtual void | drawVerticalRuler (int gapTick, int gapSubTick) |
virtual void | drawHorizontalRuler (int gapTick, int gapSubTick) |
virtual int | getTextGap (int gapTick, double max, double min) |
Protected Attributes | |
bool | activeRuler_ |
TdkLayoutDisplay::TdkLayoutDisplay | ( | TdkCanvas * | canvas | ) |
void TdkLayoutDisplay::fit | ( | ) | [virtual] |
void TdkLayoutDisplay::zoomArea | ( | double | x0, | |
double | y0, | |||
double | x1, | |||
double | y1 | |||
) | [virtual] |
Zoom to a given area.
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 TdkLayoutDisplay::zoom | ( | double | factor | ) | [virtual] |
Zoom by a fixed factor maintaining the center location.
factor | Zoom factor. |
Reimplemented from TdkDisplay.
void TdkLayoutDisplay::zoom | ( | double | xc, | |
double | yc, | |||
double | factor | |||
) | [virtual] |
Zoom by a fixed factor.
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 TdkLayoutDisplay::pan | ( | double | dx, | |
double | dy | |||
) | [virtual] |
Pan (drag) the map in some direction.
dx | Horizontal deslocation in world coordinates. | |
dy | Vertical deslocation in world coordinates. |
Reimplemented from TdkDisplay.
void TdkLayoutDisplay::center | ( | double | x, | |
double | y | |||
) | [virtual] |
Centers the layout around a given point.
x | X coordinate of the point. | |
y | Y coordinate of the point. |
void TdkLayoutDisplay::centerX | ( | double | x | ) | [virtual] |
Centers horizontally the layout around a given point.
x | X coordinate of the point. |
void TdkLayoutDisplay::centerY | ( | double | y | ) | [virtual] |
Centers vertically the map around a given point.
y | Y coordinate of the point. |
void TdkLayoutDisplay::draw | ( | ) | [virtual] |
Redraws the map (by getting all the information from the database again).
Reimplemented from TdkDisplay.
void TdkLayoutDisplay::resize | ( | int | xmin, | |
int | ymin, | |||
int | xmax, | |||
int | ymax, | |||
TdkResizeMethods | met = rsmPreserveScalePos | |||
) | [virtual] |
Change the drawing area of the canvas. Coordinates are defined in pixels.
Reimplemented from TdkDisplay.
void TdkLayoutDisplay::drawSelectedObjects | ( | ) | [virtual] |
bool TdkLayoutDisplay::getActiveRuler | ( | ) | [inline, virtual] |
void TdkLayoutDisplay::drawRulers | ( | ) | [virtual] |
TeBox TdkLayoutDisplay::getFullLayoutRange | ( | ) | [virtual] |
Calculates the bounding box of the elements in the layout (being displayed or not).
TeBox TdkLayoutDisplay::getVisibleRegion | ( | ) | [virtual] |
Returns the region being displayed.
void TdkLayoutDisplay::reset | ( | ) | [protected, virtual] |
void TdkLayoutDisplay::drawPage | ( | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVSEvent | ( | TdkEvent & | event | ) | [protected, virtual] |
Reimplemented from TdkDisplay.
void TdkLayoutDisplay::handleVSEvent | ( | TdkRedrawEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVSEvent | ( | TdkRedrawDoneEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVSEvent | ( | TdkRefreshEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVSEvent | ( | TdkPickEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVSEvent | ( | TdkSelectObjectsEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVSEvent | ( | TdkLayoutSelectToEditEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVSEvent | ( | TdkValidateCoordinateEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVOEvent | ( | TdkEvent & | event | ) | [protected, virtual] |
Reimplemented from TdkDisplay.
void TdkLayoutDisplay::handleVOEvent | ( | TdkRedrawEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVOEvent | ( | TdkRedrawDoneEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::handleVOEvent | ( | TdkRefreshEvent & | event | ) | [protected, virtual] |
void TdkLayoutDisplay::drawVerticalRuler | ( | int | gapTick, | |
int | gapSubTick | |||
) | [protected, virtual] |
void TdkLayoutDisplay::drawHorizontalRuler | ( | int | gapTick, | |
int | gapSubTick | |||
) | [protected, virtual] |
int TdkLayoutDisplay::getTextGap | ( | int | gapTick, | |
double | max, | |||
double | min | |||
) | [protected, virtual] |
bool TdkLayoutDisplay::activeRuler_ [protected] |