27 #include "../../../dataaccess/utils/Utils.h" 28 #include "../../../raster/BandProperty.h" 29 #include "../../../raster/RasterProperty.h" 30 #include "../../af/events/LayerEvents.h" 31 #include "../../af/ApplicationController.h" 32 #include "../../af/BaseApplication.h" 37 #include <QMessageBox> 38 #include <QApplication> 45 createAction(tr(
"Contrast...").toUtf8().data(),
"histogram");
47 m_action->setObjectName(
"Processing.Raster Processing.Contrast");
62 QApplication::setOverrideCursor(Qt::WaitCursor);
66 QApplication::restoreOverrideCursor();
71 std::unique_ptr<te::da::DataSetType> dsType = layer->getSchema();
77 QApplication::restoreOverrideCursor();
84 QApplication::restoreOverrideCursor();
100 assert(mapEditionTools);
108 QApplication::restoreOverrideCursor();
TEDATAACCESSEXPORT te::rst::RasterProperty * GetFirstRasterProperty(const DataSetType *dt)
Palette indexes color interpretation.
This is an abstract class used to register actions into rp pluging.
A base class for application events.
std::unique_ptr< te::qt::widgets::ContrastDialogForm > m_contrastDlg
te::map::AbstractLayerPtr m_layer
Pointer to the selected layer.
void addLayer(te::map::AbstractLayerPtr outputLayer)
void onApplicationTriggered(te::qt::af::evt::Event *e)
ContrastAction(QMenu *menu, QMenu *popupMenu)
This file defines the Contrast class.
This event indicates that the layer has been selected.
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.
virtual void onPopUpActionActivated(bool checked)
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
virtual ~ContrastAction()
std::vector< te::rst::BandProperty * > & getBandProperties()
Returns a reference to the list of bands definitions.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
virtual void onActionActivated(bool checked)