27 #include "../../../mnt/qt/TINGenerationDialog.h" 28 #include "../../af/events/LayerEvents.h" 29 #include "../../af/ApplicationController.h" 34 #include <QMessageBox> 42 createAction(tr(
"TIN Generation...").toUtf8().data(),
"mnt-processing-tin");
43 m_action->setObjectName(
"Processing.DTM Processing.TIN");
56 if(dlg.exec() != QDialog::Accepted)
64 int reply = QMessageBox::question(
nullptr, tr(
"TIN Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
66 if(reply == QMessageBox::Yes)
This is an abstract class used to register actions into mnt pluging.
te::map::AbstractLayerPtr getLayer()
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
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.
This file defines the TIN Generation class.
TINGenerationAction(QMenu *menu)
QAction * m_action
Action used to call the process.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
virtual ~TINGenerationAction()
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
virtual void onActionActivated(bool checked)