27 #include "../../../mnt/qt/ImageGenerationDialog.h" 28 #include "../../af/events/LayerEvents.h" 29 #include "../../af/ApplicationController.h" 30 #include "../../af/BaseApplication.h" 35 #include <QMessageBox> 43 createAction(tr(
"Shadow Image Generation...").toUtf8().data(),
"mnt-processing-dtm");
44 m_action->setObjectName(
"Processing.DTM Processing.Shadow Image");
59 if(dlg.exec() != QDialog::Accepted)
67 int reply = QMessageBox::question(
nullptr, tr(
"Shadow Image Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
69 if(reply == QMessageBox::Yes)
This is an abstract class used to register actions into mnt pluging.
ImageGenerationAction(QMenu *menu)
virtual void onActionActivated(bool checked)
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
te::map::AbstractLayerPtr getLayer()
void setMapDisplay(te::qt::widgets::MapDisplay *mapDisplay)
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
QAction * m_action
Action used to call the process.
This file defines the REgular Grid Generation class.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
te::qt::widgets::MapDisplay * getMapDisplay()
virtual ~ImageGenerationAction()
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr