This class is GUI used to define the arithmeticOp parameters for the RP arithmeticOp operation. More...
#include <ArithmeticOpDialogForm.h>
Signals | |
| void | addLayer (te::map::AbstractLayerPtr layer) |
| void | closeTool () |
Public Member Functions | |
| ArithmeticOpDialogForm (QWidget *parent=0) | |
| void | closeEvent (QCloseEvent *e) |
| std::vector< std::string > | getBandsVec () |
| std::string | getExpression () |
| std::map< std::string, te::map::AbstractLayer * > | getMapLayer () |
| te::map::AbstractLayerPtr | getOutputLayer () |
| std::string | getUserDefinedExpression () |
| bool | isComplete () const |
| te::rp::ArithmeticOperations::InputParameters | paramsFromOpUserdDef () |
| void | setList (std::list< te::map::AbstractLayerPtr > &layerList) |
| void | setUserPath (std::string path) |
| ~ArithmeticOpDialogForm () | |
Protected Member Functions | |
| bool | execute () |
| void | getRasterBands (QComboBox *layer, int index, QComboBox *band) |
| void | loadDefaultOperations () |
| void | updateExpressionHistory () |
Private Attributes | |
| std::vector< std::string > | m_bandsVec |
| std::vector< std::string > | m_expressionHistory |
| int | m_expressionHistoryCounter |
| te::map::AbstractLayer * | m_layer |
| std::list< te::map::AbstractLayerPtr > | m_layerList |
| std::map< std::string, te::map::AbstractLayer * > | m_mapLayer |
| int | m_nLayer |
| std::string | m_operation |
| te::map::AbstractLayerPtr | m_outputLayer |
| te::qt::widgets::OutputRasterWidget * | m_outputWidget |
| std::unique_ptr< Ui::ArithmeticOpDialogForm > | m_ui |
| std::string | m_userPath |
This class is GUI used to define the arithmeticOp parameters for the RP arithmeticOp operation.
Definition at line 60 of file ArithmeticOpDialogForm.h.
| te::qt::widgets::ArithmeticOpDialogForm::ArithmeticOpDialogForm | ( | QWidget * | parent = 0 | ) |
| te::qt::widgets::ArithmeticOpDialogForm::~ArithmeticOpDialogForm | ( | ) |
Definition at line 132 of file ArithmeticOpDialogForm.cpp.
References m_expressionHistory.
|
signal |
Referenced by execute().
| void te::qt::widgets::ArithmeticOpDialogForm::closeEvent | ( | QCloseEvent * | e | ) |
Definition at line 868 of file ArithmeticOpDialogForm.cpp.
References closeTool().
|
signal |
Referenced by closeEvent().
|
protected |
Definition at line 701 of file ArithmeticOpDialogForm.cpp.
References addLayer(), te::qt::widgets::applyRasterMultiResolution(), te::qt::widgets::createLayer(), te::rp::ArithmeticOperations::execute(), te::qt::widgets::OutputRasterWidget::fileExists(), te::rp::Algorithm::getErrorMessage(), te::qt::widgets::OutputRasterWidget::getOutputRaster(), te::map::GetRaster(), te::qt::widgets::OutputRasterWidget::getType(), te::rp::ArithmeticOperations::initialize(), m_outputLayer, m_outputWidget, te::rp::ArithmeticOperations::OutputParameters::m_rInfo, te::rp::ArithmeticOperations::OutputParameters::m_rType, paramsFromOpUserdDef(), and te::rp::ArithmeticOperations::OutputParameters::reset().
Referenced by onOkPushButtonClicked().
| std::vector< std::string > te::qt::widgets::ArithmeticOpDialogForm::getBandsVec | ( | ) |
Definition at line 172 of file ArithmeticOpDialogForm.cpp.
References m_bandsVec.
| std::string te::qt::widgets::ArithmeticOpDialogForm::getExpression | ( | ) |
Definition at line 157 of file ArithmeticOpDialogForm.cpp.
References m_operation.
Referenced by paramsFromOpUserdDef().
| std::map< std::string, te::map::AbstractLayer * > te::qt::widgets::ArithmeticOpDialogForm::getMapLayer | ( | ) |
Definition at line 167 of file ArithmeticOpDialogForm.cpp.
References m_mapLayer.
Referenced by paramsFromOpUserdDef().
| te::map::AbstractLayerPtr te::qt::widgets::ArithmeticOpDialogForm::getOutputLayer | ( | ) |
Definition at line 162 of file ArithmeticOpDialogForm.cpp.
References m_outputLayer.
|
protected |
Definition at line 677 of file ArithmeticOpDialogForm.cpp.
References te::map::GetRaster(), and mixture::rst.
| std::string te::qt::widgets::ArithmeticOpDialogForm::getUserDefinedExpression | ( | ) |
Definition at line 152 of file ArithmeticOpDialogForm.cpp.
References m_ui.
Referenced by paramsFromOpUserdDef().
| bool te::qt::widgets::ArithmeticOpDialogForm::isComplete | ( | ) | const |
Definition at line 137 of file ArithmeticOpDialogForm.cpp.
|
protected |
Definition at line 788 of file ArithmeticOpDialogForm.cpp.
References file(), te::core::FindInTerraLibPath(), m_userPath, and TE_TR.
Referenced by onLoadPushButtonClicked(), and onSavePushButtonClicked().
|
slot |
Definition at line 302 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 177 of file ArithmeticOpDialogForm.cpp.
References band, te::common::Convert2String(), m_bandsVec, m_layer, m_mapLayer, m_nLayer, and m_ui.
|
slot |
Definition at line 501 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 269 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 332 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 514 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 292 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 537 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 462 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 412 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 279 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 342 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 542 of file ArithmeticOpDialogForm.cpp.
References te::qt::widgets::LoadArithmeticOpDialog::getExpression(), te::qt::widgets::LoadArithmeticOpDialog::getLayers(), te::qt::widgets::LoadArithmeticOpDialog::getOperation(), loadDefaultOperations(), te::qt::widgets::LoadArithmeticOpDialog::loadOperations(), m_layerList, m_mapLayer, m_operation, m_ui, m_userPath, te::qt::widgets::LoadArithmeticOpDialog::setList(), te::qt::widgets::LoadArithmeticOpDialog::setUserPath(), and te::common::Exception::what().
|
slot |
Definition at line 312 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 475 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 352 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 358 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 364 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 370 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 376 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 382 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 388 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 394 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 400 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 406 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 661 of file ArithmeticOpDialogForm.cpp.
References execute(), te::qt::widgets::OutputRasterWidget::getOutputRaster(), and m_outputWidget.
|
slot |
Definition at line 249 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 239 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 575 of file ArithmeticOpDialogForm.cpp.
References band, te::common::Convert2String(), te::common::Convert2UCase(), loadDefaultOperations(), m_ui, m_userPath, and te::common::Exception::what().
|
slot |
Definition at line 194 of file ArithmeticOpDialogForm.cpp.
References b, te::qt::widgets::LayerSearchWidget::filterOnlyByRaster(), te::map::GetRaster(), te::qt::widgets::LayerSearchWidget::getSelecteds(), te::map::AbstractLayer::getTitle(), te::qt::widgets::LayerSearchDialog::getWidget(), m_layer, m_layerList, m_ui, and te::qt::widgets::LayerSearchWidget::setList().
|
slot |
Definition at line 418 of file ArithmeticOpDialogForm.cpp.
References te::common::Convert2String(), and m_ui.
|
slot |
Definition at line 259 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 229 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 488 of file ArithmeticOpDialogForm.cpp.
References m_ui.
|
slot |
Definition at line 322 of file ArithmeticOpDialogForm.cpp.
References m_ui.
| te::rp::ArithmeticOperations::InputParameters te::qt::widgets::ArithmeticOpDialogForm::paramsFromOpUserdDef | ( | ) |
Definition at line 813 of file ArithmeticOpDialogForm.cpp.
References band, te::common::Convert2String(), getExpression(), getMapLayer(), te::map::GetRaster(), getUserDefinedExpression(), te::rp::ArithmeticOperations::InputParameters::m_arithmeticString, te::rp::ArithmeticOperations::InputParameters::m_inputRasters, te::rp::ArithmeticOperations::InputParameters::m_normalize, and m_ui.
Referenced by execute().
| void te::qt::widgets::ArithmeticOpDialogForm::setList | ( | std::list< te::map::AbstractLayerPtr > & | layerList | ) |
Definition at line 142 of file ArithmeticOpDialogForm.cpp.
References m_layerList.
| void te::qt::widgets::ArithmeticOpDialogForm::setUserPath | ( | std::string | path | ) |
Definition at line 147 of file ArithmeticOpDialogForm.cpp.
References m_userPath.
|
protected |
Definition at line 696 of file ArithmeticOpDialogForm.cpp.
References m_expressionHistory, and m_expressionHistoryCounter.
|
private |
Definition at line 168 of file ArithmeticOpDialogForm.h.
Referenced by getBandsVec(), and onAddLayerPushButtonClicked().
|
private |
Definition at line 154 of file ArithmeticOpDialogForm.h.
Referenced by updateExpressionHistory(), and ~ArithmeticOpDialogForm().
|
private |
Definition at line 156 of file ArithmeticOpDialogForm.h.
Referenced by updateExpressionHistory().
|
private |
Definition at line 162 of file ArithmeticOpDialogForm.h.
Referenced by onAddLayerPushButtonClicked(), and onSearchLayerToolButtonPressed().
|
private |
Definition at line 160 of file ArithmeticOpDialogForm.h.
Referenced by onLoadPushButtonClicked(), onSearchLayerToolButtonPressed(), and setList().
|
private |
Definition at line 166 of file ArithmeticOpDialogForm.h.
Referenced by getMapLayer(), onAddLayerPushButtonClicked(), and onLoadPushButtonClicked().
|
private |
Definition at line 174 of file ArithmeticOpDialogForm.h.
Referenced by onAddLayerPushButtonClicked().
|
private |
Definition at line 170 of file ArithmeticOpDialogForm.h.
Referenced by getExpression(), and onLoadPushButtonClicked().
|
private |
Definition at line 164 of file ArithmeticOpDialogForm.h.
Referenced by execute(), and getOutputLayer().
|
private |
Definition at line 152 of file ArithmeticOpDialogForm.h.
Referenced by execute(), and onOkPushButtonClicked().
|
private |
Definition at line 158 of file ArithmeticOpDialogForm.h.
Referenced by getUserDefinedExpression(), onACosPushButtonClicked(), onAddLayerPushButtonClicked(), onAddPushButtonClicked(), onASinPushButtonClicked(), onATanPushButtonClicked(), onCePushButtonClicked(), onCosPushButtonClicked(), onCPushButtonClicked(), onDivPushButtonClicked(), onDotPushButtonClicked(), onExpPushButtonClicked(), onLnPushButtonClicked(), onLoadPushButtonClicked(), onLogPushButtonClicked(), onMultPushButtonClicked(), onN0PushButtonClicked(), onN1PushButtonClicked(), onN2PushButtonClicked(), onN3PushButtonClicked(), onN4PushButtonClicked(), onN5PushButtonClicked(), onN6PushButtonClicked(), onN7PushButtonClicked(), onN8PushButtonClicked(), onN9PushButtonClicked(), onParLeftPushButtonClicked(), onParRightPushButtonClicked(), onSavePushButtonClicked(), onSearchLayerToolButtonPressed(), onSignalPushButtonClicked(), onSinPushButtonClicked(), onSqrtPushButtonClicked(), onSubPushButtonClicked(), onTanPushButtonClicked(), and paramsFromOpUserdDef().
|
private |
Definition at line 172 of file ArithmeticOpDialogForm.h.
Referenced by loadDefaultOperations(), onLoadPushButtonClicked(), onSavePushButtonClicked(), and setUserPath().