A connector of the te::qt::widgets::MapDisplay class to the Application Framework. More...
#include <MapDisplay.h>
Signals | |
| void | hasNextExtent (bool value) |
| void | hasPreviousExtent (bool value) |
| void | triggered (te::qt::af::evt::Event *e) |
Public Member Functions | |
| void | clear () |
| It clears the map display. More... | |
| void | draw (const std::list< te::map::AbstractLayerPtr > &layers) |
| It draws the given layer list. More... | |
| bool | eventFilter (QObject *watched, QEvent *e) |
| void | fit (const std::list< te::map::AbstractLayerPtr > &layers) |
| te::qt::widgets::MapDisplay * | getDisplay () |
| MapDisplay (te::qt::widgets::MapDisplay *display, te::qt::af::ApplicationController *app) | |
| Constructor. More... | |
| void | nextExtent () |
| void | previousExtent () |
| void | setCurrentTool (te::qt::widgets::AbstractTool *tool, const bool &delPrevious=true) |
| Updates the current tool being used on te::qt::widgets::MapDisplay. More... | |
| void | setEyeBirdDisplay (te::qt::widgets::EyeBirdMapDisplayWidget *display) |
| void | setZoomInDisplay (te::qt::widgets::ZoomInMapDisplayWidget *display) |
| ~MapDisplay () | |
| destructor. More... | |
Protected Slots | |
| bool | isPanToSelectedEnabled () |
| Returns the pan selected flag;. More... | |
| void | onApplicationTriggered (te::qt::af::evt::Event *e) |
| Listener to the application framewrork events. More... | |
| void | onCoordTracked (QPointF &coordinate) |
| void | onDrawLayersFinished (const QMap< QString, QString > &errors) |
| void | onExtentChanged () |
Protected Member Functions | |
| void | configSRS (const std::list< te::map::AbstractLayerPtr > &layers) |
| void | drawDataSet (te::da::DataSet *dataset, const std::string &geomPropertyName, int srid, const QColor &color, bool isLinked=false) |
| void | drawLayerSelection (te::map::AbstractLayerPtr layer) |
| void | drawLayersSelection (const std::list< te::map::AbstractLayerPtr > &layers) |
| std::list < te::map::AbstractLayerPtr > | getSelectedLayer () |
| std::list < te::map::AbstractLayerPtr > | getVisibleLayers () |
Protected Attributes | |
| te::qt::af::ApplicationController * | m_app |
| Pointer to applicatin controller;. More... | |
| int | m_currentExtentIndex |
| The current extent index. More... | |
| te::qt::widgets::MapDisplay * | m_display |
| Pointer to a component te::qt::widgets::MapDisplay. More... | |
| std::vector< te::gm::Envelope > | m_extentStack |
| The stack of MapDisplay extents. More... | |
| int | m_extentStackMaxSize |
| The max size of the extent stack. Used on previousExtent and nextExtent. More... | |
| te::qt::widgets::EyeBirdMapDisplayWidget * | m_eyeBirdDisplay |
| Pointer to a component that represents a eye bird display. More... | |
| QPixmap | m_lastDisplayContent |
| The last map display content. i.e. a "clean" pixmap. More... | |
| QMenu * | m_menu |
| The map display popup menu. More... | |
| QAction * | m_pantoSelectedAction |
| Action to enable / disable pan to selected operation. More... | |
| te::qt::widgets::AbstractTool * | m_tool |
| Pointer to the current tool being used. More... | |
| te::qt::widgets::ZoomInMapDisplayWidget * | m_zoomInDisplay |
| Pointer to a component that represents a zoom in display. More... | |
A connector of the te::qt::widgets::MapDisplay class to the Application Framework.
It is used to listen events sent by the application framework. It is a proxy for the te::qt::widgets::MapDisplay.
Definition at line 79 of file MapDisplay.h.
| te::qt::af::MapDisplay::MapDisplay | ( | te::qt::widgets::MapDisplay * | display, |
| te::qt::af::ApplicationController * | app | ||
| ) |
Constructor.
| display | te::qt::widgets::MapDisplay to be listened. |
| te::qt::af::MapDisplay::~MapDisplay | ( | ) |
destructor.
| void te::qt::af::MapDisplay::clear | ( | ) |
It clears the map display.
|
protected |
| void te::qt::af::MapDisplay::draw | ( | const std::list< te::map::AbstractLayerPtr > & | layers | ) |
It draws the given layer list.
| layers | The layer list. |
|
protected |
|
protected |
|
protected |
| bool te::qt::af::MapDisplay::eventFilter | ( | QObject * | watched, |
| QEvent * | e | ||
| ) |
| void te::qt::af::MapDisplay::fit | ( | const std::list< te::map::AbstractLayerPtr > & | layers | ) |
| te::qt::widgets::MapDisplay* te::qt::af::MapDisplay::getDisplay | ( | ) |
|
protected |
|
protected |
|
signal |
|
signal |
|
protectedslot |
Returns the pan selected flag;.
| void te::qt::af::MapDisplay::nextExtent | ( | ) |
|
protectedslot |
Listener to the application framewrork events.
| e | An event sent by framework. |
|
protectedslot |
|
protectedslot |
|
protectedslot |
| void te::qt::af::MapDisplay::previousExtent | ( | ) |
| void te::qt::af::MapDisplay::setCurrentTool | ( | te::qt::widgets::AbstractTool * | tool, |
| const bool & | delPrevious = true |
||
| ) |
Updates the current tool being used on te::qt::widgets::MapDisplay.
| tool | The new te::qt::widgets::AbstractTool. |
| delPrevious | True for delete the old tool. |
| void te::qt::af::MapDisplay::setEyeBirdDisplay | ( | te::qt::widgets::EyeBirdMapDisplayWidget * | display | ) |
| void te::qt::af::MapDisplay::setZoomInDisplay | ( | te::qt::widgets::ZoomInMapDisplayWidget * | display | ) |
|
signal |
|
protected |
Pointer to applicatin controller;.
Definition at line 177 of file MapDisplay.h.
|
protected |
The current extent index.
Definition at line 183 of file MapDisplay.h.
|
protected |
Pointer to a component te::qt::widgets::MapDisplay.
Definition at line 178 of file MapDisplay.h.
|
protected |
The stack of MapDisplay extents.
Definition at line 182 of file MapDisplay.h.
|
protected |
The max size of the extent stack. Used on previousExtent and nextExtent.
Definition at line 184 of file MapDisplay.h.
|
protected |
Pointer to a component that represents a eye bird display.
Definition at line 187 of file MapDisplay.h.
|
protected |
The last map display content. i.e. a "clean" pixmap.
Definition at line 181 of file MapDisplay.h.
|
protected |
The map display popup menu.
Definition at line 180 of file MapDisplay.h.
|
protected |
Action to enable / disable pan to selected operation.
Definition at line 189 of file MapDisplay.h.
|
protected |
Pointer to the current tool being used.
Definition at line 179 of file MapDisplay.h.
|
protected |
Pointer to a component that represents a zoom in display.
Definition at line 186 of file MapDisplay.h.