27 #include "../../../qt/widgets/rp/ClippingWizard.h" 28 #include "../../../raster/Raster.h" 29 #include "../../af/ApplicationController.h" 30 #include "../../af/BaseApplication.h" 31 #include "../../af/events/LayerEvents.h" 36 #include <QMessageBox> 43 createAction(tr(
"Clipping...").toUtf8().data(),
"edit-cut");
44 m_action->setObjectName(
"Processing.Raster Processing.Clipping");
65 assert(mapEditionTools);
69 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
103 if(dlg.exec() == QDialog::Accepted)
106 std::vector<te::map::AbstractLayerPtr> layersVec = dlg.
getOutputLayers();
107 for(std::size_t i = 0; i < layersVec.size(); ++i)
std::unique_ptr< te::qt::widgets::ClippingWizard > m_clippingWizard
void addLayerSlot(te::map::AbstractLayerPtr layer)
This is an abstract class used to register actions into rp pluging.
virtual ~ClippingAction()
virtual void onActionActivated(bool checked)
void createPopUpAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
A base class for application events.
This file defines the Clipping class.
ClippingAction(QMenu *menu, QMenu *popupMenu)
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
te::map::AbstractLayerPtr getCurrentLayer()
Get the selected layer from layer explorer in app.
QAction * m_action
Action used to call the process.
void onApplicationTriggered(te::qt::af::evt::Event *e)
te::qt::widgets::MapDisplay * getMapDisplay()
virtual void onPopUpActionActivated(bool checked)
virtual void onClippingWizardFinished()
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.