A simple main window to show example of TerraLib Qt Tools. More...
#include <DisplayWindow.h>
Public Member Functions | |
| void | addGraph (te::graph::AbstractGraph *graph, te::gm::Envelope extent, te::se::Style *s=0) |
| void | addRasterLayer (std::string path, std::string name) |
| void | addVectorialLayer (std::string path, int srid) |
| void | setPNGPrefix (std::string prefix) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| DisplayWindow (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. More... | |
| ~DisplayWindow () | |
| Destructor. More... | |
Private Slots | |
| void | onCoordTracked (QPointF &coordinate) |
| void | onPanTriggered () |
| void | onPNGTriggered () |
| void | onZoomAreaTriggered () |
Private Member Functions | |
| void | setupActions () |
Private Attributes | |
| int | m_count |
| te::qt::widgets::MapDisplay * | m_display |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| QAction * | m_png |
| std::string | m_pngPrefix |
| QAction * | m_setPan |
| QAction * | m_setZoomArea |
| te::qt::widgets::AbstractTool * | m_tool |
| QToolBar * | m_toolBar |
Static Private Attributes | |
| static std::size_t | ms_id = 0 |
A simple main window to show example of TerraLib Qt Tools.
Definition at line 80 of file DisplayWindow.h.
| DisplayWindow::DisplayWindow | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
Definition at line 66 of file DisplayWindow.cpp.
References te::qt::widgets::MapDisplay::Center, m_display, m_toolBar, MapDisplay(), onCoordTracked(), te::qt::widgets::MapDisplay::setResizePolicy(), and setupActions().
| DisplayWindow::~DisplayWindow | ( | ) |
Destructor.
Definition at line 101 of file DisplayWindow.cpp.
| void DisplayWindow::addGraph | ( | te::graph::AbstractGraph * | graph, |
| te::gm::Envelope | extent, | ||
| te::se::Style * | s = 0 |
||
| ) |
Definition at line 133 of file DisplayWindow.cpp.
References te::common::Convert2String(), te::graph::AbstractGraph::getMetadata(), te::graph::GraphMetadata::getName(), te::map::AbstractLayer::getSRID(), m_display, m_layers, te::qt::widgets::MapDisplay::setExtent(), te::graph::Layer::setGraph(), te::map::MapDisplay::setLayerList(), te::graph::Layer::setRenderer(), te::qt::widgets::MapDisplay::setSRID(), te::map::AbstractLayer::setStyle(), te::map::AbstractLayer::setVisibility(), and te::map::VISIBLE.
Referenced by CreateLDDGraph(), and CreateMSTGraph().
| void DisplayWindow::addRasterLayer | ( | std::string | path, |
| std::string | name | ||
| ) |
Definition at line 155 of file DisplayWindow.cpp.
| void DisplayWindow::addVectorialLayer | ( | std::string | path, |
| int | srid | ||
| ) |
Definition at line 201 of file DisplayWindow.cpp.
References te::se::CreateFill(), te::se::CreateStroke(), ds, dt, te::da::GetFirstSpatialPropertyPos(), te::common::Singleton< DataSourceInfoManager >::getInstance(), m_display, m_layers, te::da::DataSourceFactory::make(), ms_id, te::se::Style::push_back(), te::se::Rule::push_back(), te::map::AbstractLayer::setDataSetName(), te::map::AbstractLayer::setDataSourceId(), te::qt::widgets::MapDisplay::setExtent(), te::map::AbstractLayer::setExtent(), te::se::PolygonSymbolizer::setFill(), te::map::MapDisplay::setLayerList(), te::map::DataSetLayer::setRendererType(), te::map::DataSetLayer::setSRID(), te::qt::widgets::MapDisplay::setSRID(), te::se::PolygonSymbolizer::setStroke(), te::map::AbstractLayer::setStyle(), te::map::AbstractLayer::setVisibility(), and te::map::VISIBLE.
Referenced by CreateMSTGraph().
|
privateslot |
Definition at line 303 of file DisplayWindow.cpp.
Referenced by DisplayWindow().
|
privateslot |
Definition at line 276 of file DisplayWindow.cpp.
References m_display, and m_tool.
Referenced by setupActions().
|
privateslot |
Definition at line 290 of file DisplayWindow.cpp.
References te::qt::widgets::MapDisplay::getDisplayPixmap(), m_count, m_display, and m_pngPrefix.
Referenced by setupActions().
|
privateslot |
Definition at line 283 of file DisplayWindow.cpp.
References m_display, and m_tool.
Referenced by setupActions().
| void DisplayWindow::setPNGPrefix | ( | std::string | prefix | ) |
Definition at line 271 of file DisplayWindow.cpp.
References m_pngPrefix.
|
private |
Definition at line 105 of file DisplayWindow.cpp.
References m_png, m_setPan, m_setZoomArea, m_toolBar, onPanTriggered(), onPNGTriggered(), and onZoomAreaTriggered().
Referenced by DisplayWindow().
|
private |
Definition at line 130 of file DisplayWindow.h.
Referenced by onPNGTriggered().
|
private |
Definition at line 118 of file DisplayWindow.h.
Referenced by addGraph(), addVectorialLayer(), DisplayWindow(), onPanTriggered(), onPNGTriggered(), and onZoomAreaTriggered().
|
private |
Definition at line 121 of file DisplayWindow.h.
Referenced by addGraph(), and addVectorialLayer().
|
private |
Definition at line 126 of file DisplayWindow.h.
Referenced by setupActions().
|
private |
Definition at line 131 of file DisplayWindow.h.
Referenced by onPNGTriggered(), and setPNGPrefix().
|
private |
Definition at line 124 of file DisplayWindow.h.
Referenced by setupActions().
|
private |
Definition at line 125 of file DisplayWindow.h.
Referenced by setupActions().
|
private |
Definition at line 119 of file DisplayWindow.h.
Referenced by onPanTriggered(), and onZoomAreaTriggered().
|
private |
Definition at line 123 of file DisplayWindow.h.
Referenced by DisplayWindow(), and setupActions().
|
staticprivate |
Definition at line 128 of file DisplayWindow.h.
Referenced by addVectorialLayer().