52 #include <QActionGroup> 53 #include <QContextMenuEvent> 57 #include <QDockWidget> 63 #include <boost/lexical_cast.hpp> 88 statusBar()->addPermanentWidget(fc);
90 connect(fc, SIGNAL(resourceSelected(QString)),
this, SLOT(
onFileSelected(QString)));
108 setWindowTitle(tr(
"TerraLib Qt Raster Visual Example"));
109 setMinimumSize(400, 400);
126 QAction* setPan =
new QAction(QIcon::fromTheme(
"pan"), tr(
"Pan"),
this);
127 setPan->setCheckable(
true);
132 QAction* setZoomIn =
new QAction(QIcon::fromTheme(
"zoom-in"), tr(
"Zoom In"),
this);
133 setZoomIn->setCheckable(
true);
138 QAction* setZoomOut =
new QAction(QIcon::fromTheme(
"zoom-out"), tr(
"Zoom Out"),
this);
139 setZoomOut->setCheckable(
true);
144 QAction* setZoomArea =
new QAction(QIcon::fromTheme(
"zoom-area"), tr(
"Zoom Area"),
this);
145 setZoomArea->setCheckable(
true);
150 QAction* setReadPixel =
new QAction(QIcon::fromTheme(
"readPixel"), tr(
"Read Pixel"),
this);
151 setReadPixel->setCheckable(
true);
156 QAction* rasterStyle =
new QAction(QIcon::fromTheme(
"raster-visual"), tr(
"Raster Visual"),
this);
157 rasterStyle->setCheckable(
false);
162 QActionGroup* toolsGroup =
new QActionGroup(
this);
165 QList<QAction*>::iterator it;
168 toolsGroup->addAction(*it);
181 dw->layout()->setAlignment(Qt::AlignTop);
187 dw->setWidget(
m_rvW);
193 addDockWidget(Qt::RightDockWidgetArea, dw);
286 m_menu->popup(e->globalPos());
306 connect(coordTracking, SIGNAL(coordTracked(QPointF&)), SLOT(
onCoordTracked(QPointF&)));
307 m_display->installEventFilter(coordTracking);
322 QList<QAction*>::iterator it;
325 (*it)->setEnabled(status);
330 m_rvW->setEnabled(status);
364 QString text = QString::fromUtf8(
"Coordinates: (") + QString::number(coordinate.x()) +
" , " + QString::number(coordinate.y()) +
")";
365 QStatusBar* sb = statusBar();
366 sb->showMessage(text);
This class implements a concrete tool to geographic zoom operation using the mouse click...
te::qt::widgets::ProgressViewerDialog * m_dlgViewer
This class implements a concrete tool to geographic zoom operation using the mouse wheel...
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
A singleton class used to manage tasks progresses and their viewers.
The CoverageStyle defines the styling that is to be applied to a subset of Coverage data...
Defines a component for choose a file.
This file contains include headers for TerraLib Symbology Encoding module.
void push_back(const std::string &semanticTypeIdentifier)
void push_back(Symbolizer *s)
This class implements a concrete tool to geographic zoom in operation using a boundary rectangle...
This class implements a concrete tool to measure operation (distance, area, and angle).
te::qt::widgets::RasterSymbolizerWidget * m_rvW
This class implements a concrete tool to geographic zoom operation using the keyboard.
void contextMenuEvent(QContextMenuEvent *e)
std::list< te::map::AbstractLayer * > m_layers
An Envelope defines a 2D rectangular region.
te::qt::widgets::AbstractTool * m_tool
This class implements a concrete tool to geographic coordinate tracking on mouse move operation...
MainWindow(QWidget *parent=0)
Constructor.
te::qt::widgets::MapDisplay * m_display
This class implements a concrete tool to geographic pan operation.
void onReadPixelTriggered()
void onSymbolizerUpdated()
std::vector< te::da::DataSource * > m_ds
void onRasterStyleTriggered()
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
void onCoordTracked(QPointF &coordinate)
This file contains include headers for the TerraLib Common Runtime module.
This file contains include headers for the Vector Geometry model of TerraLib.
This file contains include headers for the Data Access module of TerraLib.
void onZoomOutTriggered()
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
void onZoomAreaTriggered()
void addRasterLayer(const QString &path)
void onFileSelected(QString s)
QList< QAction * > m_actions