26 #ifndef __TERRALIB_QT_AF_CONNECTORS_INTERNAL_MAPDISPLAY_H
27 #define __TERRALIB_QT_AF_CONNECTORS_INTERNAL_MAPDISPLAY_H
31 #include "../../../maptools/AbstractLayer.h"
33 #include "../Config.h"
58 class EyeBirdMapDisplayWidget;
61 class ZoomInMapDisplayWidget;
67 class ApplicationController;
112 void draw(
const std::list<te::map::AbstractLayerPtr>& layers);
121 void fit(
const std::list<te::map::AbstractLayerPtr>& layers);
123 void pan(
const std::list<te::map::AbstractLayerPtr>& layers);
125 void zoom1x1(
const std::list<te::map::AbstractLayerPtr>& layers);
161 void configSRS(
const std::list<te::map::AbstractLayerPtr>& layers);
A dataset is the unit of information manipulated by the data access module of TerraLib.
The base API for TerraLib applications.
A connector of the te::qt::widgets::MapDisplay class to the Application Framework.
void clear()
It clears the map display.
void setZoomInDisplay(te::qt::widgets::ZoomInMapDisplayWidget *display)
void hasNextExtent(bool value)
int m_extentStackMaxSize
The max size of the extent stack. Used on previousExtent and nextExtent.
void setEyeBirdDisplay(te::qt::widgets::EyeBirdMapDisplayWidget *display)
te::qt::widgets::ZoomInMapDisplayWidget * m_zoomInDisplay
Pointer to a component that represents a zoom in display.
QAction * m_pantoSelectedAction
Action to enable / disable pan to selected operation.
std::vector< te::gm::Envelope > m_extentStack
The stack of MapDisplay extents.
MapDisplay(te::qt::widgets::MapDisplay *display, te::qt::af::ApplicationController *app)
Constructor.
te::qt::widgets::ZoomWheel * m_zoomWheel
Tool for zoom using the wheel mouse button.
void drawDataSet(te::da::DataSet *dataset, const std::string &geomPropertyName, int srid, const QColor &color, bool isLinked=false)
void drawLayersSelection(const std::list< te::map::AbstractLayerPtr > &layers)
bool eventFilter(QObject *watched, QEvent *e)
te::qt::widgets::PanMiddleClick * m_pan
Tool for pan using the middle mouse button.
void drawLayerSelection(te::map::AbstractLayerPtr layer)
int m_currentExtentIndex
The current extent index.
std::list< te::map::AbstractLayerPtr > getSelectedLayer()
std::list< te::map::AbstractLayerPtr > getVisibleLayers()
te::qt::widgets::MapDisplay * getDisplay()
void onCoordLLTracked(QPointF &coordinate, QPointF &llCoordinate)
te::qt::widgets::CoordTracking * m_coordTracking
Tool for tracking mouse position.
bool m_autoPanEnabled
Define if auto pan is enabled.
te::qt::af::ApplicationController * m_app
Pointer to applicatin controller;.
void onApplicationTriggered(te::qt::af::evt::Event *e)
Listener to the application framewrork events.
void zoom1x1(const std::list< te::map::AbstractLayerPtr > &layers)
bool isPanToSelectedEnabled()
Returns the pan selected flag;.
void onDrawLayersFinished(const QMap< QString, QString > &errors)
te::qt::widgets::EyeBirdMapDisplayWidget * m_eyeBirdDisplay
Pointer to a component that represents a eye bird display.
void hasPreviousExtent(bool value)
QMenu * m_menu
The map display popup menu.
void pan(const std::list< te::map::AbstractLayerPtr > &layers)
void draw(const std::list< te::map::AbstractLayerPtr > &layers)
It draws the given layer list.
QPixmap m_lastDisplayContent
The last map display content. i.e. a "clean" pixmap.
void drawDataSet(te::da::DataSet *dataset, const std::string &geomPropertyName, int srid, te::se::Style *style, bool isLinked=false)
void onCoordTracked(QPointF &coordinate)
void triggered(te::qt::af::evt::Event *e)
te::qt::widgets::MapDisplay * m_display
Pointer to a component te::qt::widgets::MapDisplay.
void configSRS(const std::list< te::map::AbstractLayerPtr > &layers)
void fit(const std::list< te::map::AbstractLayerPtr > &layers)
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A base class for application events.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.