27 #include "../../../qt/widgets/rp/SegmenterWizard.h" 28 #include "../../../raster/Raster.h" 29 #include "../../af/ApplicationController.h" 34 #include <QMessageBox> 41 createAction(tr(
"Segmenter...").toUtf8().data(),
"segmenter");
42 m_action->setObjectName(
"Processing.Raster Processing.Segmenter");
61 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
79 if(dlg.exec() == QDialog::Accepted)
This is an abstract class used to register actions into rp pluging.
virtual ~SegmenterAction()
This file defines the Segmenter class.
virtual void onSegmenterWizardFinished()
void addLayerSlot(te::map::AbstractLayerPtr layer)
SegmenterAction(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.
virtual void onActionActivated(bool checked)
QAction * m_action
Action used to call the process.
virtual void onPopUpActionActivated(bool checked)
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
std::unique_ptr< te::qt::widgets::SegmenterWizard > m_segmenterWizard
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.