27 #include "../../../qt/af/ApplicationController.h" 28 #include "../../../sa/qt/SpatialStatisticsDialog.h" 34 createAction(tr(
"Spatial Statistics...").toUtf8().data(),
"sa-spatialstatistics-icon");
35 m_action->setObjectName(
"Processing.Spatial Analysis.Spatial Statistics");
46 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
QAction * m_action
Action used to call the process.
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
This file defines the concrete class for SpatialStatistics Action.
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
virtual void onActionActivated(bool checked)
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
te::map::AbstractLayerPtr getOutputLayer()
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.
virtual ~SpatialStatisticsAction()
SpatialStatisticsAction(QMenu *menu)