te::qt::widgets::ArithmeticOpDialogForm Class Reference

This class is GUI used to define the arithmeticOp parameters for the RP arithmeticOp operation. More...

#include <ArithmeticOpDialogForm.h>

Inheritance diagram for te::qt::widgets::ArithmeticOpDialogForm:
QDialog

Public Slots

void onACosPushButtonClicked ()
 
void onAddLayerPushButtonClicked ()
 
void onAddPushButtonClicked ()
 
void onASinPushButtonClicked ()
 
void onATanPushButtonClicked ()
 
void onCePushButtonClicked ()
 
void onCosPushButtonClicked ()
 
void onCPushButtonClicked ()
 
void onDivPushButtonClicked ()
 
void onDotPushButtonClicked ()
 
void onExpPushButtonClicked ()
 
void onLnPushButtonClicked ()
 
void onLoadPushButtonClicked ()
 
void onLogPushButtonClicked ()
 
void onMultPushButtonClicked ()
 
void onN0PushButtonClicked ()
 
void onN1PushButtonClicked ()
 
void onN2PushButtonClicked ()
 
void onN3PushButtonClicked ()
 
void onN4PushButtonClicked ()
 
void onN5PushButtonClicked ()
 
void onN6PushButtonClicked ()
 
void onN7PushButtonClicked ()
 
void onN8PushButtonClicked ()
 
void onN9PushButtonClicked ()
 
void onOkPushButtonClicked ()
 
void onParLeftPushButtonClicked ()
 
void onParRightPushButtonClicked ()
 
void onSavePushButtonClicked ()
 
void onSearchLayerToolButtonPressed ()
 
void onSignalPushButtonClicked ()
 
void onSinPushButtonClicked ()
 
void onSqrtPushButtonClicked ()
 
void onSubPushButtonClicked ()
 
void onTanPushButtonClicked ()
 

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::AbstractLayerm_layer
 
std::list< te::map::AbstractLayerPtrm_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::OutputRasterWidgetm_outputWidget
 
std::unique_ptr< Ui::ArithmeticOpDialogForm > m_ui
 
std::string m_userPath
 

Detailed Description

This class is GUI used to define the arithmeticOp parameters for the RP arithmeticOp operation.

Definition at line 60 of file ArithmeticOpDialogForm.h.

Constructor & Destructor Documentation

te::qt::widgets::ArithmeticOpDialogForm::ArithmeticOpDialogForm ( QWidget parent = 0)
te::qt::widgets::ArithmeticOpDialogForm::~ArithmeticOpDialogForm ( )

Definition at line 132 of file ArithmeticOpDialogForm.cpp.

References m_expressionHistory.

Member Function Documentation

void te::qt::widgets::ArithmeticOpDialogForm::addLayer ( te::map::AbstractLayerPtr  layer)
signal

Referenced by execute().

void te::qt::widgets::ArithmeticOpDialogForm::closeEvent ( QCloseEvent *  e)

Definition at line 868 of file ArithmeticOpDialogForm.cpp.

References closeTool().

void te::qt::widgets::ArithmeticOpDialogForm::closeTool ( )
signal

Referenced by closeEvent().

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.

void te::qt::widgets::ArithmeticOpDialogForm::getRasterBands ( QComboBox *  layer,
int  index,
QComboBox *  band 
)
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.

void te::qt::widgets::ArithmeticOpDialogForm::loadDefaultOperations ( )
protected
void te::qt::widgets::ArithmeticOpDialogForm::onACosPushButtonClicked ( )
slot

Definition at line 302 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onAddLayerPushButtonClicked ( )
slot
void te::qt::widgets::ArithmeticOpDialogForm::onAddPushButtonClicked ( )
slot

Definition at line 501 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onASinPushButtonClicked ( )
slot

Definition at line 269 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onATanPushButtonClicked ( )
slot

Definition at line 332 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onCePushButtonClicked ( )
slot

Definition at line 514 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onCosPushButtonClicked ( )
slot

Definition at line 292 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onCPushButtonClicked ( )
slot

Definition at line 537 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onDivPushButtonClicked ( )
slot

Definition at line 462 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onDotPushButtonClicked ( )
slot

Definition at line 412 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onExpPushButtonClicked ( )
slot

Definition at line 279 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onLnPushButtonClicked ( )
slot

Definition at line 342 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onLogPushButtonClicked ( )
slot

Definition at line 312 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onMultPushButtonClicked ( )
slot

Definition at line 475 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN0PushButtonClicked ( )
slot

Definition at line 352 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN1PushButtonClicked ( )
slot

Definition at line 358 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN2PushButtonClicked ( )
slot

Definition at line 364 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN3PushButtonClicked ( )
slot

Definition at line 370 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN4PushButtonClicked ( )
slot

Definition at line 376 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN5PushButtonClicked ( )
slot

Definition at line 382 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN6PushButtonClicked ( )
slot

Definition at line 388 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN7PushButtonClicked ( )
slot

Definition at line 394 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN8PushButtonClicked ( )
slot

Definition at line 400 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onN9PushButtonClicked ( )
slot

Definition at line 406 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onOkPushButtonClicked ( )
slot
void te::qt::widgets::ArithmeticOpDialogForm::onParLeftPushButtonClicked ( )
slot

Definition at line 249 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onParRightPushButtonClicked ( )
slot

Definition at line 239 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onSavePushButtonClicked ( )
slot
void te::qt::widgets::ArithmeticOpDialogForm::onSignalPushButtonClicked ( )
slot

Definition at line 418 of file ArithmeticOpDialogForm.cpp.

References te::common::Convert2String(), and m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onSinPushButtonClicked ( )
slot

Definition at line 259 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onSqrtPushButtonClicked ( )
slot

Definition at line 229 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onSubPushButtonClicked ( )
slot

Definition at line 488 of file ArithmeticOpDialogForm.cpp.

References m_ui.

void te::qt::widgets::ArithmeticOpDialogForm::onTanPushButtonClicked ( )
slot

Definition at line 322 of file ArithmeticOpDialogForm.cpp.

References m_ui.

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.

void te::qt::widgets::ArithmeticOpDialogForm::updateExpressionHistory ( )
protected

Definition at line 696 of file ArithmeticOpDialogForm.cpp.

References m_expressionHistory, and m_expressionHistoryCounter.

Member Data Documentation

std::vector<std::string> te::qt::widgets::ArithmeticOpDialogForm::m_bandsVec
private

Definition at line 168 of file ArithmeticOpDialogForm.h.

Referenced by getBandsVec(), and onAddLayerPushButtonClicked().

std::vector<std::string> te::qt::widgets::ArithmeticOpDialogForm::m_expressionHistory
private

Definition at line 154 of file ArithmeticOpDialogForm.h.

Referenced by updateExpressionHistory(), and ~ArithmeticOpDialogForm().

int te::qt::widgets::ArithmeticOpDialogForm::m_expressionHistoryCounter
private

Definition at line 156 of file ArithmeticOpDialogForm.h.

Referenced by updateExpressionHistory().

te::map::AbstractLayer* te::qt::widgets::ArithmeticOpDialogForm::m_layer
private
std::list<te::map::AbstractLayerPtr> te::qt::widgets::ArithmeticOpDialogForm::m_layerList
private
std::map<std::string, te::map::AbstractLayer*> te::qt::widgets::ArithmeticOpDialogForm::m_mapLayer
private
int te::qt::widgets::ArithmeticOpDialogForm::m_nLayer
private

Definition at line 174 of file ArithmeticOpDialogForm.h.

Referenced by onAddLayerPushButtonClicked().

std::string te::qt::widgets::ArithmeticOpDialogForm::m_operation
private

Definition at line 170 of file ArithmeticOpDialogForm.h.

Referenced by getExpression(), and onLoadPushButtonClicked().

te::map::AbstractLayerPtr te::qt::widgets::ArithmeticOpDialogForm::m_outputLayer
private

Definition at line 164 of file ArithmeticOpDialogForm.h.

Referenced by execute(), and getOutputLayer().

te::qt::widgets::OutputRasterWidget* te::qt::widgets::ArithmeticOpDialogForm::m_outputWidget
private

Definition at line 152 of file ArithmeticOpDialogForm.h.

Referenced by execute(), and onOkPushButtonClicked().

std::string te::qt::widgets::ArithmeticOpDialogForm::m_userPath
private

The documentation for this class was generated from the following files: