OTB  6.7.0
Orfeo Toolbox
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
mvd::AbstractModelController Class Referenceabstract

#include <mvdAbstractModelController.h>

+ Inheritance diagram for mvd::AbstractModelController:
+ Collaboration diagram for mvd::AbstractModelController:

Public Slots

void ResetWidget ()
 

Signals

void AboutToConnectModel (AbstractModel *)
 
void AboutToDisconnectModel (AbstractModel *)
 
void ModelConnected (AbstractModel *)
 
void ModelDisconnected (AbstractModel *)
 
void ModelUpdated ()
 

Public Member Functions

const AbstractModelGetModel () const
 
AbstractModelGetModel ()
 
template<typename TModel >
const TModel * GetModel () const
 
template<typename TModel >
TModel * GetModel ()
 
const QWidget * GetWidget () const
 
QWidget * GetWidget ()
 
template<typename TWidget >
const TWidget * GetWidget () const
 
template<typename TWidget >
TWidget * GetWidget ()
 
void SetModel (AbstractModel *)
 
 ~AbstractModelController () override
 

Protected Member Functions

 AbstractModelController (QWidget *widget, QObject *p=NULL)
 

Private Slots

void OnDestroyed (QObject *=0)
 
virtual void RefreshWidget ()
 

Private Member Functions

virtual void ClearWidget ()=0
 
virtual void Connect (AbstractModel *)=0
 
virtual void Disconnect (AbstractModel *)=0
 
void private_ClearWidget ()
 
void private_Connect (AbstractModel *)
 
void private_Disconnect (AbstractModel *)
 
virtual void virtual_ResetWidget (bool)=0
 

Private Attributes

AbstractModelm_Model
 
QWidget * m_Widget
 

Detailed Description

Definition at line 74 of file mvdAbstractModelController.h.

Constructor & Destructor Documentation

mvd::AbstractModelController::~AbstractModelController ( )
override

Destructor

mvd::AbstractModelController::AbstractModelController ( QWidget *  widget,
QObject *  p = NULL 
)
protected

Constructor

Member Function Documentation

void mvd::AbstractModelController::AboutToConnectModel ( AbstractModel )
signal
void mvd::AbstractModelController::AboutToDisconnectModel ( AbstractModel )
signal
virtual void mvd::AbstractModelController::ClearWidget ( )
privatepure virtual
virtual void mvd::AbstractModelController::Connect ( AbstractModel )
privatepure virtual
virtual void mvd::AbstractModelController::Disconnect ( AbstractModel )
privatepure virtual
const AbstractModel * mvd::AbstractModelController::GetModel ( ) const
inline

Definition at line 247 of file mvdAbstractModelController.h.

AbstractModel * mvd::AbstractModelController::GetModel ( )
inline

Definition at line 256 of file mvdAbstractModelController.h.

template<typename TModel >
const TModel * mvd::AbstractModelController::GetModel ( ) const
inline

Definition at line 266 of file mvdAbstractModelController.h.

template<typename TModel >
TModel * mvd::AbstractModelController::GetModel ( )
inline

Definition at line 276 of file mvdAbstractModelController.h.

const QWidget * mvd::AbstractModelController::GetWidget ( ) const
inline

Definition at line 285 of file mvdAbstractModelController.h.

QWidget * mvd::AbstractModelController::GetWidget ( )
inline

Definition at line 294 of file mvdAbstractModelController.h.

template<typename TWidget >
const TWidget * mvd::AbstractModelController::GetWidget ( ) const
inline

Definition at line 304 of file mvdAbstractModelController.h.

template<typename TWidget >
TWidget * mvd::AbstractModelController::GetWidget ( )
inline

Definition at line 314 of file mvdAbstractModelController.h.

void mvd::AbstractModelController::ModelConnected ( AbstractModel )
signal
void mvd::AbstractModelController::ModelDisconnected ( AbstractModel )
signal
void mvd::AbstractModelController::ModelUpdated ( )
signal
void mvd::AbstractModelController::OnDestroyed ( QObject *  = 0)
privateslot

Slot called before object is destroyed. It is used to disconnect model from controller when controller is destroyed. This prevents the indirect call the virtual Disconnect() method (which is dangerous in destructor).

void mvd::AbstractModelController::private_ClearWidget ( )
private
void mvd::AbstractModelController::private_Connect ( AbstractModel )
private
void mvd::AbstractModelController::private_Disconnect ( AbstractModel )
private
virtual void mvd::AbstractModelController::RefreshWidget ( )
privatevirtualslot
void mvd::AbstractModelController::ResetWidget ( )
slot
void mvd::AbstractModelController::SetModel ( AbstractModel )
virtual void mvd::AbstractModelController::virtual_ResetWidget ( bool  )
privatepure virtual

Member Data Documentation

AbstractModel* mvd::AbstractModelController::m_Model
private

Definition at line 216 of file mvdAbstractModelController.h.

QWidget* mvd::AbstractModelController::m_Widget
private

Definition at line 212 of file mvdAbstractModelController.h.


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