21 #ifndef TE_QT_WIDGETS_RASTERSLICINGWIZARDPAGE_H 22 #define TE_QT_WIDGETS_RASTERSLICINGWIZARDPAGE_H 26 #include "../../../dataaccess/datasource/DataSourceInfo.h" 27 #include "../../../maptools/AbstractLayer.h" 28 #include "../../../qt/widgets/rp/RpToolsWidget.h" 29 #include "../canvas/Canvas.h" 30 #include "../canvas/MapDisplay.h" 32 #include "../Config.h" 35 #include <QWizardPage> 43 class RasterSlicingWizardPageForm;
59 class SlicingColorMapWidget;
89 std::string getCurrentBand();
137 void setSRID(
int srid = 0);
151 void setActionGroup(QActionGroup* actionGroup);
160 void getParameters(
unsigned int& inputRasterBand,
bool& eqHistogram);
171 bool isComplete()
const;
190 void getRasterFromROI();
196 std::unique_ptr<Ui::RasterSlicingWizardPageForm>
m_ui;
197 std::unique_ptr<te::qt::widgets::RpToolsWidget>
m_tool;
204 std::unique_ptr<te::gm::Geometry>
m_geom;
209 void updateHistogram();
210 void onSliceBandComboBoxIndexCHanged(
int index);
226 #endif // TE_QT_WIDGETS_RASTERSLICINGWIZARDPAGE_H
te::map::AbstractLayerPtr m_rasterLayer
Testing a better way to show the chart.
te::qt::widgets::HistogramChart * m_histogramChart
The preview histogram chart.
std::unique_ptr< Ui::RasterSlicingWizardPageForm > m_ui
The wizard page form.
te::qt::widgets::MapDisplay * m_mapDisplay
The map display.
std::unique_ptr< te::gm::Geometry > m_geom
The geometry.
te::gm::Envelope m_extent
The envelope that can be used to trim the output raster.
std::unique_ptr< te::rst::Raster > m_rasterPreview
The raster used for preview.
An Envelope defines a 2D rectangular region.
An abstract class for raster data strucutures.
std::unique_ptr< te::rst::Raster > m_raster
The raster that will be sliced.
std::unique_ptr< te::qt::widgets::RpToolsWidget > m_tool
Toolbar.
te::qt::widgets::SlicingColorMapWidget * m_colorMapWidget
The widget used to edit the legend of the output layer.
te::qt::widgets::ChartDisplay * m_chartDisplay
The display used to draw the preview histogram.
int m_srid
The current srid from the display.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel...