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"
35 #include <QtGui/QWidget>
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;
132 virtual QPixmap* getDisplayPixmap()
const;
142 virtual QPixmap* getDraftPixmap()
const;
149 virtual void setResizePolicy(
const ResizePolicy& policy);
156 virtual void setResizeInterval(
int msec);
167 virtual QPointF transform(
const QPointF& p);
174 virtual QColor getBackgroundColor();
181 virtual void setBackgroundColor(
const QColor& color);
184 bool isDrawing()
const;
213 virtual void resizeAllCanvas();
221 virtual void adjustExtent(
const QSize& oldSize,
const QSize& size);
228 virtual void paintEvent(QPaintEvent* e);
235 virtual void resizeEvent(QResizeEvent* e);
239 virtual void onResizeTimeout();
244 void extentChanged();
289 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_MAPDISPLAY_H
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
QTimer * m_timer
Timer to execute redraw on resize action.
This is the base class for layers.
bool m_isDrawing
A flag that indicates if the map display is drawing.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
ResizePolicy
Defines the resize policy for map display.
QPixmap * m_displayPixmap
This pixmap will be the result of all canvas pixmap drawing, i. e., the result of drawing all visible...
A canvas built on top of Qt.
QSize m_oldSize
Stores the last size of map display on start resize event.
A widget to control the display of a set of layers.
QPixmap * m_draftPixmap
The draft pixmap can be used to draw some feedback on map display.
std::map< te::map::AbstractLayer *, te::qt::widgets::Canvas * > m_layerCanvasMap
A map that associates a layer to a canvas.
This class controls how a set of layers are displayed.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
ResizePolicy m_resizePolicy
Resize policy for this map display.
An Envelope defines a 2D rectangular region.
QColor m_backgroundColor
Background color.
int m_interval
Timeout interval in milliseconds to redraw.