Orfeo Toolbox  4.0
Signals | Public Member Functions | Protected Slots | Private Slots | Private Member Functions | Private Attributes | List of all members
otb::Wrapper::QtWidgetModel Class Reference

#include <otbWrapperQtWidgetModel.h>

+ Inheritance diagram for otb::Wrapper::QtWidgetModel:
+ Collaboration diagram for otb::Wrapper::QtWidgetModel:

Signals

void ExceptionRaised (QString what)
 Signal emitted when an exception has been raised by an otb::Application and is caught by the calling QThread. More...
 
void SetApplicationReady (bool)
 
void SetProgressReportBegin ()
 
void SetProgressReportDone (int status=0)
 Signal emitted when execution otb::Application has finished. More...
 
void UpdateGui ()
 

Public Member Functions

 QtWidgetModel (Application *app)
 
virtual ~QtWidgetModel ()
 
ApplicationGetApplication ()
 
QtLogOutput::Pointer GetLogOutput ()
 
void SendLogDEBUG (const std::string &mes)
 
void SendLogINFO (const std::string &mes)
 
void SendLogWARNING (const std::string &mes)
 
void UpdateAllWidgets ()
 

Protected Slots

void ExecuteAndWriteOutputSlot ()
 Slot called when execution is requested (e.g. by otb::Wrapper::QtWidgetView). More...
 
void NotifyUpdate ()
 Slots called everytime one of the widget needs to be updated (e.g. by specialized parameter widgets). More...
 

Private Slots

void OnApplicationExecutionDone (int status)
 

Private Member Functions

 QtWidgetModel (const QtWidgetModel &)
 
void operator= (const QtWidgetModel &)
 

Private Attributes

Application::Pointer m_Application
 
QtLogOutput::Pointer m_LogOutput
 

Detailed Description

Definition at line 79 of file otbWrapperQtWidgetModel.h.

Constructor & Destructor Documentation

otb::Wrapper::QtWidgetModel::QtWidgetModel ( Application app)
otb::Wrapper::QtWidgetModel::~QtWidgetModel ( )
virtual

Definition at line 44 of file otbWrapperQtWidgetModel.cxx.

otb::Wrapper::QtWidgetModel::QtWidgetModel ( const QtWidgetModel )
private

Member Function Documentation

void otb::Wrapper::QtWidgetModel::ExceptionRaised ( QString  what)
signal

Signal emitted when an exception has been raised by an otb::Application and is caught by the calling QThread.

Parameters
whatThe std::exception::what() which is forwarded to listeners.
void otb::Wrapper::QtWidgetModel::ExecuteAndWriteOutputSlot ( )
protectedslot

Slot called when execution is requested (e.g. by otb::Wrapper::QtWidgetView).

This slot is protected so it can only be called via Qt signal/slot mechanism and not directly by extern caller.

Definition at line 63 of file otbWrapperQtWidgetModel.cxx.

References otb::Wrapper::AppliThread::Execute().

Application* otb::Wrapper::QtWidgetModel::GetApplication ( )
inline
QtLogOutput::Pointer otb::Wrapper::QtWidgetModel::GetLogOutput ( )
inline

Definition at line 92 of file otbWrapperQtWidgetModel.h.

References m_LogOutput.

Referenced by otb::Wrapper::QtWidgetView::CreateGui().

void otb::Wrapper::QtWidgetModel::NotifyUpdate ( )
protectedslot

Slots called everytime one of the widget needs to be updated (e.g. by specialized parameter widgets).

This slot is protected so it can only be called via Qt signal/slot mechanism and not directly by extern caller.

Definition at line 50 of file otbWrapperQtWidgetModel.cxx.

void otb::Wrapper::QtWidgetModel::OnApplicationExecutionDone ( int  status)
privateslot
Parameters
status

Definition at line 95 of file otbWrapperQtWidgetModel.cxx.

void otb::Wrapper::QtWidgetModel::operator= ( const QtWidgetModel )
private
void otb::Wrapper::QtWidgetModel::SendLogDEBUG ( const std::string &  mes)

Logger debug message sender

Definition at line 123 of file otbWrapperQtWidgetModel.cxx.

References itk::LoggerBase::DEBUG.

void otb::Wrapper::QtWidgetModel::SendLogINFO ( const std::string &  mes)

Logger info message sender

Definition at line 116 of file otbWrapperQtWidgetModel.cxx.

References itk::LoggerBase::INFO.

void otb::Wrapper::QtWidgetModel::SendLogWARNING ( const std::string &  mes)
void otb::Wrapper::QtWidgetModel::SetApplicationReady ( bool  )
signal
void otb::Wrapper::QtWidgetModel::SetProgressReportBegin ( )
signal
void otb::Wrapper::QtWidgetModel::SetProgressReportDone ( int  status = 0)
signal

Signal emitted when execution otb::Application has finished.

Parameters
statusThe result status of the otb::application (-1 when an exception has occured).
void otb::Wrapper::QtWidgetModel::UpdateAllWidgets ( )
inline

Used by inxml when forcing xml parse flag to update widget data via UpdateGui

Definition at line 105 of file otbWrapperQtWidgetModel.h.

References otb::Wrapper::Application::ForceInXMLParseFlag(), GetApplication(), and UpdateGui().

Referenced by otb::Wrapper::QtWidgetInputProcessXMLParameter::SetFileName().

void otb::Wrapper::QtWidgetModel::UpdateGui ( )
signal

Referenced by UpdateAllWidgets().

Member Data Documentation

Application::Pointer otb::Wrapper::QtWidgetModel::m_Application
private

Definition at line 165 of file otbWrapperQtWidgetModel.h.

Referenced by GetApplication().

QtLogOutput::Pointer otb::Wrapper::QtWidgetModel::m_LogOutput
private

Definition at line 167 of file otbWrapperQtWidgetModel.h.

Referenced by GetLogOutput().


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

Generated at Sat Mar 8 2014 19:09:23 for Orfeo Toolbox with doxygen 1.8.3.1