26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_MAPDISPLAY_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_MAPDISPLAY_H
30 #include "../../../maptools/MapDisplay.h"
31 #include "../../../srs.h"
32 #include "../Config.h"
47 namespace gm {
class Envelope; }
48 namespace map {
class AbstractLayer; }
96 MapDisplay(
const QSize& size, QWidget* parent = 0, Qt::WindowFlags f = 0);
98 MapDisplay(QWidget* parent = 0, Qt::WindowFlags f = 0);
112 virtual void refresh();
114 unsigned int getWidth()
const;
116 unsigned int getHeight()
const;
118 double getWidthMM()
const;
120 double getHeightMM()
const;
122 virtual void setSRID(
const int& srid,
bool doRefresh =
true);
133 virtual QPixmap* getDisplayPixmap()
const;
143 virtual QPixmap* getDraftPixmap()
const;
150 virtual void setResizePolicy(
const ResizePolicy& policy);
157 virtual void setResizeInterval(
int msec);
168 virtual QPointF transform(
const QPointF& p);
175 virtual QColor getBackgroundColor();
182 virtual void setBackgroundColor(
const QColor& color);
185 bool isDrawing()
const;
190 virtual double getScale()
const;
195 virtual bool setScale(
const double& scale);
200 virtual void getDPI(
int& dpiX,
int& dpiY)
const;
206 virtual void setOverrideDPI(
int dpiX,
int dpiY);
211 virtual void restoreDPI();
240 virtual void resizeAllCanvas();
248 virtual void adjustExtent(
const QSize& oldSize,
const QSize& size);
255 virtual void paintEvent(QPaintEvent* e);
262 virtual void resizeEvent(QResizeEvent* e);
266 virtual void onResizeTimeout();
271 void extentChanged();
274 void displayPaintEvent(QPainter*);
277 void displaySridChanged();
330 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_MAPDISPLAY_H
This is the base class for layers.
An Envelope defines a 2D rectangular region.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
This class controls how a set of layers are displayed.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr