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

This object takes a list of QGoSynchronizedView and synchronize their cameras by setting up callbacks. It is recommended to let the QGoSynchronizedViewManager deal with SynchronizedView synchronization. More...

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

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

Public Member Functions

void addSynchronizedView (QGoSynchronizedView2D *ioSynchronizedView)
 add a SynchronizedView to the vector of synchronized SynchronizedViews (this method takes care of adding the callback) More...
 
 QGoSynchronizedView2DCallbacks (std::vector< QGoSynchronizedView2D * > iOpenSynchronizedViews, QObject *iParent=0)
 the constructor do most of the work : add observers & callbacks to QGoSynchronizedViews of the vector More...
 
void removeSynchronizedView (QGoSynchronizedView2D *ioSynchronizedView)
 remove a SynchronizedView from the vector of synchronized SynchronizedViews (this method takes care of removing the callback) More...
 
 ~QGoSynchronizedView2DCallbacks ()
 

Static Public Member Functions

static void synchronizeCameras (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData)
 callback function to synchornize cameras (has to be public) More...
 

Private Member Functions

template<typename TIterator >
void Initialize (TIterator iBegin, TIterator iEnd)
 
void SetupCallBack ()
 setup the callback command object (client data, called function...etc) More...
 

Private Attributes

std::vector
< QGoSynchronizedView2D * > 
m_openSynchronizedView
 all open SynchronizedViews are stored in this array, to transmit it to the callback function More...
 
vtkCallbackCommand * m_vtkCallBackCamSync
 callback object to link callback function to SynchronizedView's event More...
 

Detailed Description

This object takes a list of QGoSynchronizedView and synchronize their cameras by setting up callbacks. It is recommended to let the QGoSynchronizedViewManager deal with SynchronizedView synchronization.

Definition at line 51 of file QGoSynchronizedView2DCallbacks.h.

Constructor & Destructor Documentation

QGoSynchronizedView2DCallbacks::QGoSynchronizedView2DCallbacks ( std::vector< QGoSynchronizedView2D * >  iOpenSynchronizedViews,
QObject *  iParent = 0 
)
explicit

the constructor do most of the work : add observers & callbacks to QGoSynchronizedViews of the vector

Template Parameters
TContainercontainer of QGoSynchronizedView2D*

Definition at line 44 of file QGoSynchronizedView2DCallbacks.cxx.

QGoSynchronizedView2DCallbacks::~QGoSynchronizedView2DCallbacks ( )

Definition at line 55 of file QGoSynchronizedView2DCallbacks.cxx.

Member Function Documentation

void QGoSynchronizedView2DCallbacks::addSynchronizedView ( QGoSynchronizedView2D ioSynchronizedView)

add a SynchronizedView to the vector of synchronized SynchronizedViews (this method takes care of adding the callback)

Definition at line 162 of file QGoSynchronizedView2DCallbacks.cxx.

template<typename TIterator >
void QGoSynchronizedView2DCallbacks::Initialize ( TIterator  iBegin,
TIterator  iEnd 
)
inlineprivate

Definition at line 99 of file QGoSynchronizedView2DCallbacks.h.

void QGoSynchronizedView2DCallbacks::removeSynchronizedView ( QGoSynchronizedView2D ioSynchronizedView)

remove a SynchronizedView from the vector of synchronized SynchronizedViews (this method takes care of removing the callback)

Definition at line 133 of file QGoSynchronizedView2DCallbacks.cxx.

void QGoSynchronizedView2DCallbacks::SetupCallBack ( )
private

setup the callback command object (client data, called function...etc)

Definition at line 122 of file QGoSynchronizedView2DCallbacks.cxx.

void QGoSynchronizedView2DCallbacks::synchronizeCameras ( vtkObject *  caller,
long unsigned int  eventId,
void *  clientData,
void *  callData 
)
static

callback function to synchornize cameras (has to be public)

Definition at line 83 of file QGoSynchronizedView2DCallbacks.cxx.

Member Data Documentation

std::vector< QGoSynchronizedView2D * > QGoSynchronizedView2DCallbacks::m_openSynchronizedView
private

all open SynchronizedViews are stored in this array, to transmit it to the callback function

Definition at line 96 of file QGoSynchronizedView2DCallbacks.h.

vtkCallbackCommand* QGoSynchronizedView2DCallbacks::m_vtkCallBackCamSync
private

callback object to link callback function to SynchronizedView's event

Definition at line 91 of file QGoSynchronizedView2DCallbacks.h.


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