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"
46 namespace gm {
class Envelope; }
47 namespace map {
class AbstractLayer; }
95 MapDisplay(
const QSize& size, QWidget* parent = 0, Qt::WindowFlags f = 0);
105 virtual void dragEnterEvent(QDragEnterEvent*);
107 virtual void dropEvent(QDropEvent*);
113 virtual void refresh();
115 unsigned int getWidth()
const;
117 unsigned int getHeight()
const;
119 double getWidthMM()
const;
121 double getHeightMM()
const;
123 virtual void setSRID(
const int& srid,
bool doRefresh =
true);
134 virtual QPixmap* getDisplayPixmap()
const;
144 virtual QPixmap* getDraftPixmap()
const;
151 virtual void setResizePolicy(
const ResizePolicy& policy);
158 virtual void setResizeInterval(
int msec);
169 virtual QPointF transform(
const QPointF& p);
176 virtual QColor getBackgroundColor();
183 virtual void setBackgroundColor(
const QColor& color);
186 bool isDrawing()
const;
215 virtual void resizeAllCanvas();
223 virtual void adjustExtent(
const QSize& oldSize,
const QSize& size);
230 virtual void paintEvent(QPaintEvent* e);
237 virtual void resizeEvent(QResizeEvent* e);
241 virtual void onResizeTimeout();
246 void extentChanged();
249 void displayPaintEvent(QPainter*);
252 void displaySridChanged();
297 #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