27 #include "../../../qt/widgets/rp/PCAWizard.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> 44 m_action->setObjectName(
"Processing.Raster Processing.PCA");
67 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
69 m_Wizard->setAttribute(Qt::WA_DeleteOnClose);
100 if(dlg.exec() == QDialog::Accepted)
This is an abstract class used to register actions into rp pluging.
virtual void onPopUpActionActivated(bool checked)
void createPopUpAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
virtual void onActionActivated(bool checked)
A base class for application events.
virtual void onPCAWizardFinished()
void onApplicationTriggered(te::qt::af::evt::Event *e)
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 addLayerSlot(te::map::AbstractLayerPtr layer)
This file defines the PCA class.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
std::unique_ptr< te::qt::widgets::PCAWizard > m_Wizard
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
PCAAction(QMenu *menu, QMenu *popupMenu)
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.