#include <ImageGenerationDialog.h>
Public Member Functions | |
| void | drawPreview (std::unique_ptr< te::rst::Raster > &raster) |
| te::map::AbstractLayerPtr | getLayer () |
| void | getRaster () |
| ImageGenerationDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | resetDraw () |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| void | setMapDisplay (te::qt::widgets::MapDisplay *mapDisplay) |
| void | setSRID (int newSRID) |
| ~ImageGenerationDialog () | |
Protected Slots | |
| void | onCancelPushButtonClicked () |
| void | onInputComboBoxChanged (int index) |
| void | onlayerSearchToolButtonClicked () |
| void | onMapDisplayExtentChanged () |
| void | onOkPushButtonClicked () |
| void | onPreviewPushButtonClicked () |
| void | onResXLineEditEditingFinished () |
| void | onResYLineEditEditingFinished () |
| void | onSrsToolButtonClicked () |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
Private Attributes | |
| te::qt::widgets::Canvas * | m_canvas |
| double | m_dummy |
| te::da::DataSourcePtr | m_inDataSource |
| input DataSourcePtr More... | |
| te::map::AbstractLayerPtr | m_inputLayer |
| Input layer. More... | |
| std::string | m_inSetName |
| input DataSetLayer name More... | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| List of layers. More... | |
| te::qt::widgets::MapDisplay * | m_mapDisplay |
| double | m_max |
| double | m_min |
| std::string | m_outputArchive |
| Archive information. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| te::map::AbstractLayerPtr | m_outputLayer |
| Generated Layer. More... | |
| int | m_outsrid |
| std::unique_ptr< te::rst::Raster > | m_previewRaster |
| std::unique_ptr< Ui::ImageGenerationDialogForm > | m_ui |
Definition at line 59 of file ImageGenerationDialog.h.
| te::mnt::ImageGenerationDialog::ImageGenerationDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 79 of file ImageGenerationDialog.cpp.
References m_outsrid, m_ui, onCancelPushButtonClicked(), onInputComboBoxChanged(), onlayerSearchToolButtonClicked(), onOkPushButtonClicked(), onPreviewPushButtonClicked(), onResXLineEditEditingFinished(), onResYLineEditEditingFinished(), onSrsToolButtonClicked(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), and ~ImageGenerationDialog().
|
default |
Referenced by ImageGenerationDialog().
| void te::mnt::ImageGenerationDialog::drawPreview | ( | std::unique_ptr< te::rst::Raster > & | raster | ) |
Definition at line 471 of file ImageGenerationDialog.cpp.
References te::se::CreateCoverageStyle(), te::map::DrawRaster(), te::mnt::Shadow::GenerateImage(), te::map::MapDisplay::getExtent(), te::rp::Contrast::getGainAndOffset(), te::mnt::getMinMax(), te::rst::Raster::getNumberOfBands(), te::qt::widgets::MapDisplay::getScale(), te::map::MapDisplay::getSRID(), te::map::RasterTransform::LINEAR_CONTRAST, te::rp::Contrast::InputParameters::LinearContrastT, m_canvas, m_dummy, m_mapDisplay, m_outsrid, m_ui, te::mnt::Shadow::setOutput(), te::mnt::Shadow::setParams(), te::mnt::Shadow::setSRID(), te::map::RasterContrast::setValues(), and TE_TR.
Referenced by onMapDisplayExtentChanged(), and onPreviewPushButtonClicked().
| te::map::AbstractLayerPtr te::mnt::ImageGenerationDialog::getLayer | ( | ) |
Definition at line 157 of file ImageGenerationDialog.cpp.
References m_outputLayer.
Referenced by te::qt::plugins::mnt::ImageGenerationAction::onActionActivated().
| void te::mnt::ImageGenerationDialog::getRaster | ( | ) |
Definition at line 450 of file ImageGenerationDialog.cpp.
References ds, te::da::GetFirstPropertyPos(), m_inputLayer, m_previewRaster, and te::dt::RASTER_TYPE.
Referenced by onPreviewPushButtonClicked().
|
protectedslot |
Definition at line 400 of file ImageGenerationDialog.cpp.
References resetDraw().
Referenced by ImageGenerationDialog().
|
protectedslot |
Definition at line 162 of file ImageGenerationDialog.cpp.
References te::da::GetFirstPropertyPos(), te::mnt::getMinMax(), m_dummy, m_inputLayer, m_layers, m_max, m_min, m_ui, onResXLineEditEditingFinished(), onResYLineEditEditingFinished(), te::dt::RASTER_TYPE, and setSRID().
Referenced by ImageGenerationDialog().
|
protectedslot |
Definition at line 204 of file ImageGenerationDialog.cpp.
References te::mnt::LayerSearchDialog::getLayerIndex(), m_layers, m_ui, and te::mnt::LayerSearchDialog::setLayers().
Referenced by ImageGenerationDialog().
|
protectedslot |
Definition at line 573 of file ImageGenerationDialog.cpp.
References drawPreview(), and m_previewRaster.
Referenced by setMapDisplay().
|
protectedslot |
Definition at line 301 of file ImageGenerationDialog.cpp.
References te::qt::widgets::applyRasterMultiResolution(), b, te::qt::widgets::createLayer(), te::core::FileSystem::exists(), te::map::AbstractLayer::getDataSetName(), te::da::GetDataSource(), te::map::AbstractLayer::getDataSourceId(), te::rp::Contrast::getGainAndOffset(), te::mnt::getMinMax(), te::map::GetRaster(), te::map::RasterTransform::LINEAR_CONTRAST, te::rp::Contrast::InputParameters::LinearContrastT, m_dummy, m_inputLayer, m_outputLayer, m_outsrid, m_ui, resetDraw(), mixture::rst, te::mnt::Shadow::run(), te::mnt::Shadow::setInput(), te::mnt::Shadow::setOutput(), te::mnt::Shadow::setParams(), te::mnt::Shadow::setSRID(), TE_TR, and te::common::Exception::what().
Referenced by ImageGenerationDialog().
|
protectedslot |
Definition at line 464 of file ImageGenerationDialog.cpp.
References drawPreview(), getRaster(), and m_previewRaster.
Referenced by ImageGenerationDialog().
|
protectedslot |
Definition at line 217 of file ImageGenerationDialog.cpp.
References te::gm::Envelope::isValid(), m_inputLayer, te::gm::Envelope::m_llx, m_ui, and te::gm::Envelope::m_urx.
Referenced by ImageGenerationDialog(), and onInputComboBoxChanged().
|
protectedslot |
Definition at line 234 of file ImageGenerationDialog.cpp.
References te::gm::Envelope::isValid(), m_inputLayer, te::gm::Envelope::m_lly, m_ui, and te::gm::Envelope::m_ury.
Referenced by ImageGenerationDialog(), and onInputComboBoxChanged().
|
protectedslot |
Definition at line 418 of file ImageGenerationDialog.cpp.
References te::qt::widgets::SRSManagerDialog::getSelectedSRS(), and setSRID().
Referenced by ImageGenerationDialog().
|
protectedslot |
Definition at line 282 of file ImageGenerationDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, and m_ui.
Referenced by ImageGenerationDialog().
|
protectedslot |
Definition at line 251 of file ImageGenerationDialog.cpp.
References te::qt::widgets::GetDiskRasterFileSelFilter(), te::qt::widgets::GetFilePathFromSettings(), m_ui, and te::core::FileSystem::remove().
Referenced by ImageGenerationDialog().
| void te::mnt::ImageGenerationDialog::resetDraw | ( | ) |
Definition at line 406 of file ImageGenerationDialog.cpp.
References te::qt::widgets::Canvas::clear(), m_canvas, and m_mapDisplay.
Referenced by onCancelPushButtonClicked(), and onOkPushButtonClicked().
| void te::mnt::ImageGenerationDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 126 of file ImageGenerationDialog.cpp.
References te::da::GetFirstRasterProperty(), te::mnt::getMNTType(), te::mnt::GRID, m_layers, and m_ui.
Referenced by te::qt::plugins::mnt::ImageGenerationAction::onActionActivated().
| void te::mnt::ImageGenerationDialog::setMapDisplay | ( | te::qt::widgets::MapDisplay * | mapDisplay | ) |
Definition at line 546 of file ImageGenerationDialog.cpp.
References te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), m_canvas, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, onMapDisplayExtentChanged(), te::qt::widgets::Canvas::setDevice(), te::qt::widgets::Canvas::setPolygonContourColor(), te::qt::widgets::Canvas::setPolygonContourWidth(), te::qt::widgets::Canvas::setPolygonFillColor(), te::qt::widgets::Canvas::setWindow(), and TE_OPAQUE.
Referenced by te::qt::plugins::mnt::ImageGenerationAction::onActionActivated().
| void te::mnt::ImageGenerationDialog::setSRID | ( | int | newSRID | ) |
Definition at line 432 of file ImageGenerationDialog.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), m_outsrid, and m_ui.
Referenced by onInputComboBoxChanged(), and onSrsToolButtonClicked().
|
private |
Definition at line 110 of file ImageGenerationDialog.h.
Referenced by drawPreview(), resetDraw(), and setMapDisplay().
|
private |
Definition at line 118 of file ImageGenerationDialog.h.
Referenced by drawPreview(), onInputComboBoxChanged(), and onOkPushButtonClicked().
|
private |
input DataSourcePtr
Definition at line 113 of file ImageGenerationDialog.h.
|
private |
Input layer.
Definition at line 108 of file ImageGenerationDialog.h.
Referenced by getRaster(), onInputComboBoxChanged(), onOkPushButtonClicked(), onResXLineEditEditingFinished(), and onResYLineEditEditingFinished().
|
private |
input DataSetLayer name
Definition at line 114 of file ImageGenerationDialog.h.
|
private |
List of layers.
Definition at line 107 of file ImageGenerationDialog.h.
Referenced by onInputComboBoxChanged(), onlayerSearchToolButtonClicked(), and setLayers().
|
private |
Definition at line 109 of file ImageGenerationDialog.h.
Referenced by drawPreview(), resetDraw(), and setMapDisplay().
|
private |
Definition at line 117 of file ImageGenerationDialog.h.
Referenced by onInputComboBoxChanged().
|
private |
Definition at line 116 of file ImageGenerationDialog.h.
Referenced by onInputComboBoxChanged().
|
private |
Archive information.
Definition at line 106 of file ImageGenerationDialog.h.
|
private |
DataSource information.
Definition at line 105 of file ImageGenerationDialog.h.
Referenced by onTargetDatasourceToolButtonPressed().
|
private |
Generated Layer.
Definition at line 112 of file ImageGenerationDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
Definition at line 119 of file ImageGenerationDialog.h.
Referenced by drawPreview(), ImageGenerationDialog(), onOkPushButtonClicked(), and setSRID().
|
private |
Definition at line 111 of file ImageGenerationDialog.h.
Referenced by getRaster(), onMapDisplayExtentChanged(), and onPreviewPushButtonClicked().
|
private |
Definition at line 103 of file ImageGenerationDialog.h.
Referenced by drawPreview(), ImageGenerationDialog(), onInputComboBoxChanged(), onlayerSearchToolButtonClicked(), onOkPushButtonClicked(), onResXLineEditEditingFinished(), onResYLineEditEditingFinished(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), setLayers(), and setSRID().