27 #include "../../../qt/widgets/rp/MixtureModelWizard.h" 28 #include "../../af/ApplicationController.h" 29 #include "../../af/BaseApplication.h" 30 #include "../../af/events/LayerEvents.h" 35 #include <QMessageBox> 42 createAction(tr(
"Mixture Model...").toUtf8().data(),
"mixmodel");
43 m_action->setObjectName(
"Processing.Raster Processing.Mixture Model");
65 assert(mapEditionTools);
69 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
90 std::list<te::map::AbstractLayerPtr> layer;
99 if(dlg.exec() == QDialog::Accepted)
102 std::list<te::map::AbstractLayerPtr>::iterator itl;
This is an abstract class used to register actions into rp pluging.
This file defines the mixture model class.
A base class for application events.
MixtureModelAction(QMenu *menu, QMenu *popupMenu)
void onApplicationTriggered(te::qt::af::evt::Event *e)
virtual void onPopUpActionActivated(bool checked)
std::unique_ptr< te::qt::widgets::MixtureModelWizard > m_mixtureModelWizard
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.
virtual void onActionActivated(bool checked)
te::map::AbstractLayerPtr getCurrentLayer()
Get the selected layer from layer explorer in app.
QAction * m_action
Action used to call the process.
te::qt::widgets::MapDisplay * getMapDisplay()
void addLayerSlot(te::map::AbstractLayerPtr layer)
virtual void onMixtureModelWizardFinished()
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.
virtual ~MixtureModelAction()