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;
191 void getIndexes( std::vector< double >& indexesVector )
const;
201 std::unique_ptr<Ui::RasterSlicingWizardPageForm>
m_ui;
202 std::unique_ptr<te::qt::widgets::RpToolsWidget>
m_tool;
209 std::unique_ptr<te::gm::Geometry>
m_geom;
An Envelope defines a 2D rectangular region.
bool trimRaster()
This function will check if the conditions required to trim the raster have been met.
te::qt::widgets::HistogramChart * m_histogramChart
The preview histogram chart.
void onSliceBandComboBoxIndexCHanged(int index)
te::qt::widgets::SlicingColorMapWidget * m_colorMapWidget
The widget used to edit the legend of the output layer.
void setLayer(te::map::AbstractLayerPtr layer)
This function sets the layer that contains the raster that will be sliced.
te::qt::widgets::MapDisplay * m_mapDisplay
The map display.
void applyPreview()
This function applies preview of raster slicing result.
RasterSlicingWizardPage(const RasterSlicingWizardPage &rhs)
void getParameters(unsigned int &inputRasterBand, bool &eqHistogram)
This function returns the parameters as configured by the user.
std::string getCurrentBand()
This function returns the band from the raster taht will be used.
bool isComplete() const
This function evaluates the page to confirm if the user has completed the minimum configuration requi...
te::gm::Envelope m_extent
The envelope that can be used to trim the output raster.
te::qt::widgets::ChartDisplay * m_chartDisplay
The display used to draw the preview histogram.
std::unique_ptr< te::rst::Raster > m_rasterPreview
The raster used for preview.
std::unique_ptr< te::gm::Geometry > m_geom
The geometry.
void drawGeom()
This function draws geometry after the envelope was acquired.
int m_srid
The current srid from the display.
RasterSlicingWizardPage & operator=(const RasterSlicingWizardPage &rhs)
std::unique_ptr< Ui::RasterSlicingWizardPageForm > m_ui
The wizard page form.
void clearCanvas()
This function cleans the canvas.
te::map::AbstractLayerPtr m_rasterLayer
Testing a better way to show the chart.
te::se::ColorMap * getColorMap()
This function returns the Color Map generated by the user.
int getSRID()
This function returns the srid of the display when the wizard was initiated.
void setSRID(int srid=0)
This function sets the srid of the display when the wizard was initiated.
void drawPreview(te::rst::Raster *raster)
void getIndexes(std::vector< double > &indexesVector) const
Returns the output indexes values vector.
std::unique_ptr< te::rst::Raster > m_raster
The raster that will be sliced.
~RasterSlicingWizardPage()
Destructor.
void setExtent(const te::gm::Envelope &extent)
This function sets the envelope that will be used to trim tha raster if the user requests it.
std::unique_ptr< te::qt::widgets::RpToolsWidget > m_tool
Toolbar.
void onEnvelopeAcquired(te::gm::Envelope env)
void setActionGroup(QActionGroup *actionGroup)
This function sets the QActionGroup.
const te::gm::Envelope & getExtent()
This function returns the envelope that can be used to trim the raster if the user requests it.
void setMapDisplay(te::qt::widgets::MapDisplay *mapDisplay)
This function sets the map display.
RasterSlicingWizardPage(QWidget *parent=0)
Constructor.
An abstract class for raster data strucutures.
A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel...
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr