te::qt::af::MapDisplay Class Reference

A connector of the te::qt::widgets::MapDisplay class to the Application Framework. More...

#include <MapDisplay.h>

Inheritance diagram for te::qt::af::MapDisplay:

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::MapDisplaygetDisplay ()
 
 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::AbstractLayerPtrgetSelectedLayer ()
 
std::list< te::map::AbstractLayerPtrgetVisibleLayers ()
 

Protected Attributes

te::qt::af::ApplicationControllerm_app
 Pointer to applicatin controller;. More...
 
int m_currentExtentIndex
 The current extent index. More...
 
te::qt::widgets::MapDisplaym_display
 Pointer to a component te::qt::widgets::MapDisplay. More...
 
std::vector< te::gm::Envelopem_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::EyeBirdMapDisplayWidgetm_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::AbstractToolm_tool
 Pointer to the current tool being used. More...
 
te::qt::widgets::ZoomInMapDisplayWidgetm_zoomInDisplay
 Pointer to a component that represents a zoom in display. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

te::qt::af::MapDisplay::MapDisplay ( te::qt::widgets::MapDisplay display,
te::qt::af::ApplicationController app 
)

Constructor.

Parameters
displayte::qt::widgets::MapDisplay to be listened.
te::qt::af::MapDisplay::~MapDisplay ( )

destructor.

Member Function Documentation

void te::qt::af::MapDisplay::clear ( )

It clears the map display.

void te::qt::af::MapDisplay::configSRS ( const std::list< te::map::AbstractLayerPtr > &  layers)
protected
void te::qt::af::MapDisplay::draw ( const std::list< te::map::AbstractLayerPtr > &  layers)

It draws the given layer list.

Parameters
layersThe layer list.
void te::qt::af::MapDisplay::drawDataSet ( te::da::DataSet dataset,
const std::string &  geomPropertyName,
int  srid,
const QColor &  color,
bool  isLinked = false 
)
protected
void te::qt::af::MapDisplay::drawLayerSelection ( te::map::AbstractLayerPtr  layer)
protected
void te::qt::af::MapDisplay::drawLayersSelection ( const std::list< te::map::AbstractLayerPtr > &  layers)
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 ( )
std::list<te::map::AbstractLayerPtr> te::qt::af::MapDisplay::getSelectedLayer ( )
protected
std::list<te::map::AbstractLayerPtr> te::qt::af::MapDisplay::getVisibleLayers ( )
protected
void te::qt::af::MapDisplay::hasNextExtent ( bool  value)
signal
void te::qt::af::MapDisplay::hasPreviousExtent ( bool  value)
signal
bool te::qt::af::MapDisplay::isPanToSelectedEnabled ( )
protectedslot

Returns the pan selected flag;.

Returns
Flag of the pan to selected operation.
void te::qt::af::MapDisplay::nextExtent ( )
void te::qt::af::MapDisplay::onApplicationTriggered ( te::qt::af::evt::Event e)
protectedslot

Listener to the application framewrork events.

Parameters
eAn event sent by framework.
void te::qt::af::MapDisplay::onCoordTracked ( QPointF &  coordinate)
protectedslot
void te::qt::af::MapDisplay::onDrawLayersFinished ( const QMap< QString, QString > &  errors)
protectedslot
void te::qt::af::MapDisplay::onExtentChanged ( )
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.

Parameters
toolThe new te::qt::widgets::AbstractTool.
delPreviousTrue for delete the old tool.
Note
The class will take the ownership of the given pointer.
void te::qt::af::MapDisplay::setEyeBirdDisplay ( te::qt::widgets::EyeBirdMapDisplayWidget display)
void te::qt::af::MapDisplay::setZoomInDisplay ( te::qt::widgets::ZoomInMapDisplayWidget display)
void te::qt::af::MapDisplay::triggered ( te::qt::af::evt::Event e)
signal

Member Data Documentation

te::qt::af::ApplicationController* te::qt::af::MapDisplay::m_app
protected

Pointer to applicatin controller;.

Definition at line 177 of file MapDisplay.h.

int te::qt::af::MapDisplay::m_currentExtentIndex
protected

The current extent index.

Definition at line 183 of file MapDisplay.h.

te::qt::widgets::MapDisplay* te::qt::af::MapDisplay::m_display
protected

Pointer to a component te::qt::widgets::MapDisplay.

Definition at line 178 of file MapDisplay.h.

std::vector<te::gm::Envelope> te::qt::af::MapDisplay::m_extentStack
protected

The stack of MapDisplay extents.

Definition at line 182 of file MapDisplay.h.

int te::qt::af::MapDisplay::m_extentStackMaxSize
protected

The max size of the extent stack. Used on previousExtent and nextExtent.

Definition at line 184 of file MapDisplay.h.

te::qt::widgets::EyeBirdMapDisplayWidget* te::qt::af::MapDisplay::m_eyeBirdDisplay
protected

Pointer to a component that represents a eye bird display.

Definition at line 187 of file MapDisplay.h.

QPixmap te::qt::af::MapDisplay::m_lastDisplayContent
protected

The last map display content. i.e. a "clean" pixmap.

Definition at line 181 of file MapDisplay.h.

QMenu* te::qt::af::MapDisplay::m_menu
protected

The map display popup menu.

Definition at line 180 of file MapDisplay.h.

QAction* te::qt::af::MapDisplay::m_pantoSelectedAction
protected

Action to enable / disable pan to selected operation.

Definition at line 189 of file MapDisplay.h.

te::qt::widgets::AbstractTool* te::qt::af::MapDisplay::m_tool
protected

Pointer to the current tool being used.

Definition at line 179 of file MapDisplay.h.

te::qt::widgets::ZoomInMapDisplayWidget* te::qt::af::MapDisplay::m_zoomInDisplay
protected

Pointer to a component that represents a zoom in display.

Definition at line 186 of file MapDisplay.h.


The documentation for this class was generated from the following file: