27 #include "../../../qt/af/ApplicationController.h" 28 #include "../../../sa/qt/SamplePointsGeneratorDialog.h" 34 createAction(tr(
"Sample Points Generator...").toUtf8().data(),
"sa-samplepoint-icon");
35 m_action->setObjectName(
"Processing.Spatial Analysis.Sample Points Generator");
46 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
50 if(dlg.exec() == QDialog::Accepted)
QAction * m_action
Action used to call the process.
virtual void onActionActivated(bool checked)
virtual ~SamplePointsGeneratorAction()
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
This file defines the concrete class for SamplePointsGenerator Action.
SamplePointsGeneratorAction(QMenu *menu)
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
This is an abstract class used to register actions into sa pluging.
te::map::AbstractLayerPtr getOutputLayer()