27 #include "../../../qt/widgets/rp/RasterSlicingWizard.h" 28 #include "../../../raster/Raster.h" 29 #include "../../af/ApplicationController.h" 30 #include "../../af/BaseApplication.h" 31 #include "../../af/events/LayerEvents.h" 32 #include "../../widgets/canvas/MapDisplay.h" 37 #include <QMessageBox> 44 createAction(tr(
"Raster Slicing...").toUtf8().data(),
"rasterslicing");
45 m_action->setObjectName(
"Processing.Raster Processing.RasterSlicing");
81 assert(mapEditionTools);
85 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
105 if(dlg.exec() == QDialog::Accepted)
virtual void onActionActivated(bool checked)
This is an abstract class used to register actions into rp pluging.
virtual ~RasterSlicingAction()
virtual void onPopUpActionActivated(bool checked)
A base class for application events.
std::unique_ptr< te::qt::widgets::RasterSlicingWizard > m_rasterSlicingWizard
void addLayerSlot(te::map::AbstractLayerPtr layer)
RasterSlicingAction(QMenu *menu, QMenu *popupMenu)
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
virtual int getSRID() const
It return the Spatial Reference System used by the Map Display.
te::map::AbstractLayerPtr getCurrentLayer()
Get the selected layer from layer explorer in app.
QAction * m_action
Action used to call the process.
virtual const te::gm::Envelope & getExtent() const
It returns the world extent showned by the MapDisplay.
virtual void onRasterSlicingFinished()
te::qt::widgets::MapDisplay * getMapDisplay()
void onApplicationTriggered(te::qt::af::evt::Event *e)
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.
This file defines the RasterSlicing class.