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) | 
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) | |
| Constructor.  More... | |
| void | nextExtent () | 
| void | previousExtent () | 
| void | setCurrentTool (te::qt::widgets::AbstractTool *tool) | 
| 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) | 
| void | drawLayerSelection (te::map::AbstractLayerPtr layer) | 
| void | drawLayersSelection (const std::list< te::map::AbstractLayerPtr > &layers) | 
Protected Attributes | |
| 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 77 of file MapDisplay.h.
| te::qt::af::MapDisplay::MapDisplay | ( | te::qt::widgets::MapDisplay * | display | ) | 
Constructor.
| display | te::qt::widgets::MapDisplay to be listened. | 
Definition at line 64 of file MapDisplay.cpp.
References te::qt::af::GetDefaultDisplayColorFromSettings(), te::common::Singleton< ApplicationController >::getInstance(), m_display, m_menu, m_pantoSelectedAction, onCoordTracked(), onDrawLayersFinished(), onExtentChanged(), te::qt::widgets::MapDisplay::setBackgroundColor(), and te::qt::widgets::MapDisplay::setSRID().
| te::qt::af::MapDisplay::~MapDisplay | ( | ) | 
destructor.
Definition at line 111 of file MapDisplay.cpp.
| void te::qt::af::MapDisplay::clear | ( | ) | 
It clears the map display.
Definition at line 178 of file MapDisplay.cpp.
      
  | 
  protected | 
Definition at line 493 of file MapDisplay.cpp.
References te::qt::af::ApplicationController::broadcast(), te::common::Singleton< ApplicationController >::getInstance(), and TE_UNKNOWN_SRS.
| void te::qt::af::MapDisplay::draw | ( | const std::list< te::map::AbstractLayerPtr > & | layers | ) | 
It draws the given layer list.
| layers | The layer list. | 
Definition at line 147 of file MapDisplay.cpp.
References te::map::GetExtent(), and te::map::GetVisibleLayers().
      
  | 
  protected | 
Definition at line 423 of file MapDisplay.cpp.
References te::qt::widgets::Config2DrawLayerSelection(), te::qt::widgets::Canvas::draw(), te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), te::da::DataSet::getGeometry(), te::da::GetPropertyPos(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::da::DataSet::moveBeforeFirst(), te::da::DataSet::moveNext(), te::qt::widgets::Canvas::setWindow(), TE_UNKNOWN_SRS, and te::gm::UnknownGeometryType.
      
  | 
  protected | 
      
  | 
  protected | 
Definition at line 344 of file MapDisplay.cpp.
| bool te::qt::af::MapDisplay::eventFilter | ( | QObject * | watched, | 
| QEvent * | e | ||
| ) | 
Definition at line 131 of file MapDisplay.cpp.
| void te::qt::af::MapDisplay::fit | ( | const std::list< te::map::AbstractLayerPtr > & | layers | ) | 
Definition at line 223 of file MapDisplay.cpp.
References te::map::GetExtent(), and te::map::GetVisibleLayers().
| te::qt::widgets::MapDisplay * te::qt::af::MapDisplay::getDisplay | ( | ) | 
Definition at line 116 of file MapDisplay.cpp.
Referenced by te::qt::plugins::slider::TimeSliderWidgetAction::onActionActivated().
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  protectedslot | 
Returns the pan selected flag;.
Definition at line 339 of file MapDisplay.cpp.
| void te::qt::af::MapDisplay::nextExtent | ( | ) | 
Definition at line 193 of file MapDisplay.cpp.
      
  | 
  protectedslot | 
Listener to the application framewrork events.
| e | An event sent by framework. | 
Definition at line 263 of file MapDisplay.cpp.
References te::gm::Envelope::getCenter(), te::gm::Envelope::getHeight(), te::common::Singleton< ApplicationController >::getInstance(), te::gm::Envelope::getWidth(), te::qt::af::evt::HIGHLIGHT_LAYER_OBJECTS, te::gm::Envelope::intersects(), te::qt::af::evt::ITEM_OF_LAYER_REMOVED, te::qt::af::evt::LAYER_REMOVED, te::qt::af::evt::LAYER_SELECTED_OBJECTS_CHANGED, te::qt::af::evt::LAYER_VISIBILITY_CHANGED, te::qt::af::evt::MapColorChanged::m_color, te::qt::af::evt::HighlightLayerObjects::m_color, te::qt::af::evt::HighlightLayerObjects::m_dataset, te::qt::af::evt::LayerSelectedObjectsChanged::m_envelope, te::qt::af::evt::Event::m_id, te::qt::af::evt::LayerSelectedObjectsChanged::m_layer, te::qt::af::evt::HighlightLayerObjects::m_layer, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::af::evt::MAP_COLOR_CHANGED, te::qt::af::evt::PROJECT_ADDED, te::gm::Envelope::transform(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
      
  | 
  protectedslot | 
Definition at line 245 of file MapDisplay.cpp.
References te::qt::af::ApplicationController::broadcast(), and te::common::Singleton< ApplicationController >::getInstance().
Referenced by MapDisplay().
      
  | 
  protectedslot | 
Definition at line 254 of file MapDisplay.cpp.
References te::common::Singleton< ApplicationController >::getInstance().
Referenced by MapDisplay().
      
  | 
  protectedslot | 
Definition at line 472 of file MapDisplay.cpp.
Referenced by MapDisplay().
| void te::qt::af::MapDisplay::previousExtent | ( | ) | 
Definition at line 208 of file MapDisplay.cpp.
| void te::qt::af::MapDisplay::setCurrentTool | ( | te::qt::widgets::AbstractTool * | tool | ) | 
Updates the current tool being used on te::qt::widgets::MapDisplay.
| tool | The new te::qt::widgets::AbstractTool. | 
Definition at line 185 of file MapDisplay.cpp.
| void te::qt::af::MapDisplay::setEyeBirdDisplay | ( | te::qt::widgets::EyeBirdMapDisplayWidget * | display | ) | 
Definition at line 126 of file MapDisplay.cpp.
| void te::qt::af::MapDisplay::setZoomInDisplay | ( | te::qt::widgets::ZoomInMapDisplayWidget * | display | ) | 
Definition at line 121 of file MapDisplay.cpp.
      
  | 
  protected | 
The current extent index.
Definition at line 171 of file MapDisplay.h.
      
  | 
  protected | 
Pointer to a component te::qt::widgets::MapDisplay.
Definition at line 166 of file MapDisplay.h.
Referenced by MapDisplay().
      
  | 
  protected | 
The stack of MapDisplay extents.
Definition at line 170 of file MapDisplay.h.
      
  | 
  protected | 
The max size of the extent stack. Used on previousExtent and nextExtent.
Definition at line 172 of file MapDisplay.h.
      
  | 
  protected | 
Pointer to a component that represents a eye bird display.
Definition at line 175 of file MapDisplay.h.
      
  | 
  protected | 
The last map display content. i.e. a "clean" pixmap.
Definition at line 169 of file MapDisplay.h.
      
  | 
  protected | 
The map display popup menu.
Definition at line 168 of file MapDisplay.h.
Referenced by MapDisplay().
      
  | 
  protected | 
Action to enable / disable pan to selected operation.
Definition at line 177 of file MapDisplay.h.
Referenced by MapDisplay().
      
  | 
  protected | 
Pointer to the current tool being used.
Definition at line 167 of file MapDisplay.h.
      
  | 
  protected | 
Pointer to a component that represents a zoom in display.
Definition at line 174 of file MapDisplay.h.