GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
QGoSynchronizedViewManager Class Reference

High level class for QGoSynchronizedView2D, QGoSynchronizedView2DCallbacks QGoSynchronizedView3D, QGoSynchronizedView3DCallbacks. More...

#include <Code/GUI/lib/SynchronizedViews/QGoSynchronizedViewManager.h>

Inheritance diagram for QGoSynchronizedViewManager:
Inheritance graph
[legend]
Collaboration diagram for QGoSynchronizedViewManager:
Collaboration graph
[legend]

Public Slots

void deleteSynchronizedView2D (QGoSynchronizedView2D *ioSynchronizedView)
 delete a QGoSynchronizedView from QGoSynchronizedViewManager's parent Object/Widget delete the QGoSynchronizedView More...
 
void deleteSynchronizedView2D (const int &iIndex)
 
void deleteSynchronizedView3D (QGoSynchronizedView3D *ioSynchronizedView)
 
void deleteSynchronizedView3D (const int &iIndex)
 
bool isSynchronizing ()
 true if the manager synchronizes some QGoSynchronizedView More...
 
QGoSynchronizedViewnewSynchronizedView (QString iSynchronizedViewName, vtkImageData *iImage)
 create and add a QGoSynchronizedView to QGoSynchronizedViewManager's parent Object/Widget depending on the vtk image given as an input, the returned QGoSynchronizedView can be downcasted to QGoSynchronizedView2D or QGoSynchronizedView3D safe downcasting is user's responsibility. More...
 
QGoSynchronizedView2DnewSynchronizedView2D (QString iSynchronizedViewName, vtkImageData *iImage)
 create and add a QGoSynchronizedView2D to QGoSynchronizedViewManager's parent Object/Widget More...
 
QGoSynchronizedView3DnewSynchronizedView3D (QString iSynchronizedViewName, vtkImageData *iImage)
 create and add a QGoSynchronizedView3D to QGoSynchronizedViewManager's parent Object/Widget More...
 
void removeSynchronizedView2D (QGoSynchronizedView2D *ioSynchronizedView)
 take a QGoSynchronizedView out of the Manager lists, without deleting it. More...
 
void removeSynchronizedView3D (QGoSynchronizedView3D *ioSynchronizedView)
 
void show ()
 show all the QGoSynchronizedView s More...
 
void synchronizeOpenSynchronizedViews ()
 synchronize all open QGoSynchronizedViews More...
 
void unSynchronizeOpenSynchronizedViews ()
 remove the synchronization leaving the all QGoSynchronizedView independent More...
 
void Update ()
 update the QGoSynchronizedView s More...
 

Public Member Functions

template<typename TPixel >
QGoSynchronizedView3DnewSynchronizedView (QString iSynchronizedViewName, typename itk::Image< TPixel, 3 >::Pointer iImage)
 create and add a QGoSynchronizedView to QGoSynchronizedViewManager's parent Object/Widget More...
 
template<typename TPixel >
QGoSynchronizedView2DnewSynchronizedView (QString iSynchronizedViewName, typename itk::Image< TPixel, 2 >::Pointer iImage)
 
 QGoSynchronizedViewManager (QObject *parent=0)
 
 ~QGoSynchronizedViewManager ()
 

Protected Attributes

std::vector
< QGoSynchronizedView2D * > 
m_openSynchronizedViews
 
std::vector
< QGoSynchronizedView3D * > 
m_openSynchronizedViews3D
 
QGoSynchronizedView2DCallbacksm_Synchronizer
 
QGoSynchronizedView3DCallbacksm_Synchronizer3D
 

Private Member Functions

 Q_DISABLE_COPY (QGoSynchronizedViewManager)
 

Detailed Description

High level class for QGoSynchronizedView2D, QGoSynchronizedView2DCallbacks QGoSynchronizedView3D, QGoSynchronizedView3DCallbacks.

This class is dealing with QGoSynchronizedViews for correct synchronization and handling provides a simple interface to create/delete/synchronize QGoSynchronizedView s. This class should be used with any class using QGoSynchronizedView and QGoSynchronize.

Examples:
GUI/lib/qgosynchronizedviewmanagertest.cxx.

Definition at line 61 of file QGoSynchronizedViewManager.h.

Constructor & Destructor Documentation

QGoSynchronizedViewManager::QGoSynchronizedViewManager ( QObject *  parent = 0)
explicit

Definition at line 43 of file QGoSynchronizedViewManager.cxx.

QGoSynchronizedViewManager::~QGoSynchronizedViewManager ( )

Definition at line 53 of file QGoSynchronizedViewManager.cxx.

Member Function Documentation

void QGoSynchronizedViewManager::deleteSynchronizedView2D ( QGoSynchronizedView2D ioSynchronizedView)
slot

delete a QGoSynchronizedView from QGoSynchronizedViewManager's parent Object/Widget delete the QGoSynchronizedView

Definition at line 185 of file QGoSynchronizedViewManager.cxx.

void QGoSynchronizedViewManager::deleteSynchronizedView2D ( const int &  iIndex)
slot

Definition at line 218 of file QGoSynchronizedViewManager.cxx.

void QGoSynchronizedViewManager::deleteSynchronizedView3D ( QGoSynchronizedView3D ioSynchronizedView)
slot

Definition at line 277 of file QGoSynchronizedViewManager.cxx.

void QGoSynchronizedViewManager::deleteSynchronizedView3D ( const int &  iIndex)
slot

Definition at line 310 of file QGoSynchronizedViewManager.cxx.

bool QGoSynchronizedViewManager::isSynchronizing ( )
slot

true if the manager synchronizes some QGoSynchronizedView

Definition at line 400 of file QGoSynchronizedViewManager.cxx.

template<typename TPixel >
QGoSynchronizedView3D* QGoSynchronizedViewManager::newSynchronizedView ( QString  iSynchronizedViewName,
typename itk::Image< TPixel, 3 >::Pointer  iImage 
)
inline

create and add a QGoSynchronizedView to QGoSynchronizedViewManager's parent Object/Widget

Examples:
GUI/lib/qgosynchronizedviewmanagertest.cxx.

Definition at line 73 of file QGoSynchronizedViewManager.h.

template<typename TPixel >
QGoSynchronizedView2D* QGoSynchronizedViewManager::newSynchronizedView ( QString  iSynchronizedViewName,
typename itk::Image< TPixel, 2 >::Pointer  iImage 
)
inline

Definition at line 106 of file QGoSynchronizedViewManager.h.

QGoSynchronizedView * QGoSynchronizedViewManager::newSynchronizedView ( QString  iSynchronizedViewName,
vtkImageData *  iImage 
)
slot

create and add a QGoSynchronizedView to QGoSynchronizedViewManager's parent Object/Widget depending on the vtk image given as an input, the returned QGoSynchronizedView can be downcasted to QGoSynchronizedView2D or QGoSynchronizedView3D safe downcasting is user's responsibility.

Definition at line 87 of file QGoSynchronizedViewManager.cxx.

QGoSynchronizedView2D * QGoSynchronizedViewManager::newSynchronizedView2D ( QString  iSynchronizedViewName,
vtkImageData *  iImage 
)
slot

create and add a QGoSynchronizedView2D to QGoSynchronizedViewManager's parent Object/Widget

Definition at line 114 of file QGoSynchronizedViewManager.cxx.

QGoSynchronizedView3D * QGoSynchronizedViewManager::newSynchronizedView3D ( QString  iSynchronizedViewName,
vtkImageData *  iImage 
)
slot

create and add a QGoSynchronizedView3D to QGoSynchronizedViewManager's parent Object/Widget

Definition at line 149 of file QGoSynchronizedViewManager.cxx.

QGoSynchronizedViewManager::Q_DISABLE_COPY ( QGoSynchronizedViewManager  )
private
void QGoSynchronizedViewManager::removeSynchronizedView2D ( QGoSynchronizedView2D ioSynchronizedView)
slot

take a QGoSynchronizedView out of the Manager lists, without deleting it.

Definition at line 245 of file QGoSynchronizedViewManager.cxx.

void QGoSynchronizedViewManager::removeSynchronizedView3D ( QGoSynchronizedView3D ioSynchronizedView)
slot

Definition at line 338 of file QGoSynchronizedViewManager.cxx.

void QGoSynchronizedViewManager::show ( )
slot
void QGoSynchronizedViewManager::synchronizeOpenSynchronizedViews ( )
slot

synchronize all open QGoSynchronizedViews

Examples:
GUI/lib/qgosynchronizedviewmanagertest.cxx.

Definition at line 384 of file QGoSynchronizedViewManager.cxx.

void QGoSynchronizedViewManager::unSynchronizeOpenSynchronizedViews ( )
slot

remove the synchronization leaving the all QGoSynchronizedView independent

Definition at line 369 of file QGoSynchronizedViewManager.cxx.

void QGoSynchronizedViewManager::Update ( void  )
slot

Member Data Documentation

std::vector< QGoSynchronizedView2D * > QGoSynchronizedViewManager::m_openSynchronizedViews
protected

Definition at line 208 of file QGoSynchronizedViewManager.h.

std::vector< QGoSynchronizedView3D * > QGoSynchronizedViewManager::m_openSynchronizedViews3D
protected

Definition at line 209 of file QGoSynchronizedViewManager.h.

QGoSynchronizedView2DCallbacks* QGoSynchronizedViewManager::m_Synchronizer
protected

Definition at line 211 of file QGoSynchronizedViewManager.h.

QGoSynchronizedView3DCallbacks* QGoSynchronizedViewManager::m_Synchronizer3D
protected

Definition at line 212 of file QGoSynchronizedViewManager.h.


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