#include <RasterSlicingWizard.h>
Signals | |
| void | addLayer (te::map::AbstractLayerPtr layer) |
Public Member Functions | |
| te::map::AbstractLayerPtr | getOutputLayer () |
| This function returns the layer that has been created by the wizard with the sliced raster. More... | |
| void | onMapDisplayExtentChanged () |
| This function refreshes the map display when the layer extent was changed. More... | |
| RasterSlicingWizard (QWidget *parent=0) | |
| Constructor. More... | |
| void | setActionGroup (QActionGroup *actionGroup) |
| This function sets the QActionGroup. More... | |
| 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. More... | |
| void | setList (std::list< te::map::AbstractLayerPtr > &layerList) |
| This function sets the list of layers from which the raster that will be sliced will come from. More... | |
| void | setMapDisplay (te::qt::widgets::MapDisplay *mapDisplay) |
| This function sets the map display. More... | |
| void | setSRID (int srid=0) |
| This function sets the srid of the display when the wizard was initiated. More... | |
| bool | validateCurrentPage () |
| Overridden function that checks if the current page's configuration is done in order to proceed to the next page. More... | |
| ~RasterSlicingWizard () | |
| Destructor. More... | |
Protected Slots | |
| void | onPageChanged (int index) |
Protected Member Functions | |
| void | addPages () |
| bool | execute () |
Private Member Functions | |
| RasterSlicingWizard & | operator= (const RasterSlicingWizard &rhs) |
| RasterSlicingWizard (const RasterSlicingWizard &rhs) | |
Private Attributes | |
| std::unique_ptr< te::qt::widgets::LayerSearchWizardPage > | m_layerSearchPage |
| The wizard page used to select an input layer. More... | |
| te::map::AbstractLayerPtr | m_outputLayer |
| std::unique_ptr< te::qt::widgets::RasterInfoWizardPage > | m_rasterInfoPage |
| The wizard page used to define the output layer parameters. More... | |
| std::unique_ptr< te::qt::widgets::RasterSlicingWizardPage > | m_wizardPage |
| The wizard page used to define the slicing parameters. More... | |
Definition at line 48 of file RasterSlicingWizard.h.
| te::qt::widgets::RasterSlicingWizard::RasterSlicingWizard | ( | QWidget * | parent = 0 | ) |
Constructor.
Definition at line 48 of file RasterSlicingWizard.cpp.
References addPages(), onPageChanged(), and te::qt::widgets::HelpPushButton::setPageReference().
| te::qt::widgets::RasterSlicingWizard::~RasterSlicingWizard | ( | ) |
|
private |
|
signal |
Referenced by execute().
|
protected |
Definition at line 138 of file RasterSlicingWizard.cpp.
References m_layerSearchPage, m_rasterInfoPage, and m_wizardPage.
Referenced by RasterSlicingWizard().
|
protected |
Definition at line 153 of file RasterSlicingWizard.cpp.
References addLayer(), te::qt::widgets::applyRasterMultiResolution(), te::rst::BandProperty::ColorEntry::c1, te::rst::BandProperty::ColorEntry::c2, te::rst::BandProperty::ColorEntry::c3, te::rst::BandProperty::ColorEntry::c4, te::qt::widgets::createLayer(), te::color::RGBAColor::getAlpha(), te::color::RGBAColor::getBlue(), te::se::ColorMap::getCategorize(), te::color::RGBAColor::getGreen(), te::rp::Module::getLastLogStr(), te::map::GetRaster(), te::color::RGBAColor::getRed(), te::se::GetString(), te::se::Categorize::getThresholds(), te::se::Categorize::getThresholdValues(), m_layerSearchPage, m_outputLayer, m_rasterInfoPage, m_wizardPage, and te::rp::RasterSlicing().
Referenced by validateCurrentPage().
| te::map::AbstractLayerPtr te::qt::widgets::RasterSlicingWizard::getOutputLayer | ( | ) |
This function returns the layer that has been created by the wizard with the sliced raster.
A new AbstractLayerPtr containing the sliced raster.
Definition at line 108 of file RasterSlicingWizard.cpp.
References m_outputLayer.
Referenced by te::qt::plugins::rp::RasterSlicingAction::onPopUpActionActivated().
| void te::qt::widgets::RasterSlicingWizard::onMapDisplayExtentChanged | ( | ) |
This function refreshes the map display when the layer extent was changed.
Definition at line 133 of file RasterSlicingWizard.cpp.
References m_wizardPage.
|
protectedslot |
Definition at line 256 of file RasterSlicingWizard.cpp.
Referenced by RasterSlicingWizard().
|
private |
| void te::qt::widgets::RasterSlicingWizard::setActionGroup | ( | QActionGroup * | actionGroup | ) |
This function sets the QActionGroup.
| QActionGroup. |
Definition at line 128 of file RasterSlicingWizard.cpp.
References m_wizardPage.
| void te::qt::widgets::RasterSlicingWizard::setExtent | ( | const te::gm::Envelope & | extent | ) |
This function sets the envelope that will be used to trim tha raster if the user requests it.
| extent | A reference to the envelope that can be used to trim tha raster. |
Definition at line 113 of file RasterSlicingWizard.cpp.
References m_wizardPage.
| void te::qt::widgets::RasterSlicingWizard::setList | ( | std::list< te::map::AbstractLayerPtr > & | layerList | ) |
This function sets the list of layers from which the raster that will be sliced will come from.
| layerList | The list of AbstractLayerPtrs that will be used to get a raster from. |
Definition at line 102 of file RasterSlicingWizard.cpp.
References m_layerSearchPage.
| void te::qt::widgets::RasterSlicingWizard::setMapDisplay | ( | te::qt::widgets::MapDisplay * | mapDisplay | ) |
This function sets the map display.
| Map | display. |
Definition at line 123 of file RasterSlicingWizard.cpp.
References m_wizardPage.
| void te::qt::widgets::RasterSlicingWizard::setSRID | ( | int | srid = 0 | ) |
This function sets the srid of the display when the wizard was initiated.
| srid | The current srid of the display. |
Definition at line 118 of file RasterSlicingWizard.cpp.
References m_wizardPage.
| bool te::qt::widgets::RasterSlicingWizard::validateCurrentPage | ( | ) |
Overridden function that checks if the current page's configuration is done in order to proceed to the next page.
Definition at line 73 of file RasterSlicingWizard.cpp.
References execute(), m_layerSearchPage, m_rasterInfoPage, and m_wizardPage.
|
private |
The wizard page used to select an input layer.
Definition at line 136 of file RasterSlicingWizard.h.
Referenced by addPages(), execute(), setList(), and validateCurrentPage().
|
private |
Definition at line 139 of file RasterSlicingWizard.h.
Referenced by execute(), and getOutputLayer().
|
private |
The wizard page used to define the output layer parameters.
Definition at line 137 of file RasterSlicingWizard.h.
Referenced by addPages(), execute(), and validateCurrentPage().
|
private |
The wizard page used to define the slicing parameters.
Definition at line 135 of file RasterSlicingWizard.h.
Referenced by addPages(), execute(), onMapDisplayExtentChanged(), setActionGroup(), setExtent(), setMapDisplay(), setSRID(), validateCurrentPage(), and ~RasterSlicingWizard().