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