23 #include "../../../dataaccess/utils/Utils.h" 24 #include "../../../geometry/GeometryProperty.h" 25 #include "../../../qt/af/ApplicationController.h" 26 #include "../../../qt/widgets/rp/RasterizationWizard.h" 31 createAction(tr(
"Rasterization...").toUtf8().data(),
"rasterization");
32 m_action->setObjectName(
"Processing.Raster Processing.Rasterization");
43 std::list<te::map::AbstractLayerPtr> layersList =
getLayers();
45 std::list<te::map::AbstractLayerPtr> utils;
47 std::list<te::map::AbstractLayerPtr>::iterator it = layersList.begin();
49 while (it != layersList.end())
51 std::unique_ptr<te::da::DataSetType> type = (*it)->getSchema();
53 if (type->hasRaster())
70 if(dlg.exec() == QDialog::Accepted)
This is an abstract class used to register actions into rp pluging.
virtual void onActionActivated(bool checked)
virtual void onPopUpActionActivated(bool checked)
virtual ~RasterizationAction()
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.
QAction * m_action
Action used to call the process.
GeomType getGeometryType() const
It returns the geometry subtype allowed for the property.
RasterizationAction(QMenu *menu, QMenu *popupMenu)
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
TEDATAACCESSEXPORT te::gm::GeometryProperty * GetFirstGeomProperty(const DataSetType *dt)
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.