GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
QGoSynchronizedView3DCallbacks 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/QGoSynchronizedView3DCallbacks.h>

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

Signals

void SliceViewXYChanged (int oSlice)
 signals for synchronizing sliders (gives current XYslice of any changing QGoSynchronizedView) More...
 
void SliceViewXZChanged (int oSlice)
 signals for synchronizing sliders (gives current XZ slice of any changing QGoSynchronizedView) More...
 
void SliceViewYZChanged (int oSlice)
 signals for synchronizing sliders (gives current YZ slice of any changing QGoSynchronizedView) More...
 

Public Member Functions

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

Static Public Member Functions

static void synchronizeCamera (int iCamera, vtkObject *caller, long unsigned int eventId, void *clientData, void *callData)
 
static void synchronizeCameras0 (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData)
 callback function to synchornize cameras (has to be public) More...
 
static void synchronizeCameras1 (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData)
 callback function to synchornize cameras (has to be public) More...
 
static void synchronizeCameras2 (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData)
 callback function to synchornize cameras (has to be public) More...
 
static void synchronizeCameras3 (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData)
 callback function to synchornize cameras (has to be public) More...
 

Private Member Functions

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

Private Attributes

std::vector
< QGoSynchronizedView3D * > 
m_openSynchronizedView
 
std::vector< vtkCallbackCommand * > m_vtkCallBackCamSync
 

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 52 of file QGoSynchronizedView3DCallbacks.h.

Constructor & Destructor Documentation

QGoSynchronizedView3DCallbacks::QGoSynchronizedView3DCallbacks ( std::vector< QGoSynchronizedView3D * >  ioOpenSynchronizedViews,
QObject *  iParent = 0 
)

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

QT macro for signals and slots. we use signales and slots to synchronize the sliders for choosing slice.

Definition at line 46 of file QGoSynchronizedView3DCallbacks.cxx.

QGoSynchronizedView3DCallbacks::~QGoSynchronizedView3DCallbacks ( )

Definition at line 115 of file QGoSynchronizedView3DCallbacks.cxx.

Member Function Documentation

void QGoSynchronizedView3DCallbacks::addSynchronizedView ( QGoSynchronizedView3D ioSynchronizedView)

add a QGoSynchronizedView3D to the vector of synchronized Managers (this method takes care of adding the callback)

Definition at line 297 of file QGoSynchronizedView3DCallbacks.cxx.

void QGoSynchronizedView3DCallbacks::removeSynchronizedView ( QGoSynchronizedView3D ioSynchronizedView)

remove a QGoSynchronizedView3D from the vector of synchronized Managers (this method takes care of removing the callback)

Definition at line 269 of file QGoSynchronizedView3DCallbacks.cxx.

void QGoSynchronizedView3DCallbacks::SetupCallBack ( )
private

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

Definition at line 248 of file QGoSynchronizedView3DCallbacks.cxx.

void QGoSynchronizedView3DCallbacks::SliceViewXYChanged ( int  oSlice)
signal

signals for synchronizing sliders (gives current XYslice of any changing QGoSynchronizedView)

void QGoSynchronizedView3DCallbacks::SliceViewXZChanged ( int  oSlice)
signal

signals for synchronizing sliders (gives current XZ slice of any changing QGoSynchronizedView)

void QGoSynchronizedView3DCallbacks::SliceViewYZChanged ( int  oSlice)
signal

signals for synchronizing sliders (gives current YZ slice of any changing QGoSynchronizedView)

void QGoSynchronizedView3DCallbacks::synchronizeCamera ( int  iCamera,
vtkObject *  caller,
long unsigned int  eventId,
void *  clientData,
void *  callData 
)
static

Definition at line 197 of file QGoSynchronizedView3DCallbacks.cxx.

void QGoSynchronizedView3DCallbacks::synchronizeCameras0 ( vtkObject *  caller,
long unsigned int  eventId,
void *  clientData,
void *  callData 
)
static

callback function to synchornize cameras (has to be public)

Definition at line 150 of file QGoSynchronizedView3DCallbacks.cxx.

void QGoSynchronizedView3DCallbacks::synchronizeCameras1 ( vtkObject *  caller,
long unsigned int  eventId,
void *  clientData,
void *  callData 
)
static

callback function to synchornize cameras (has to be public)

Definition at line 163 of file QGoSynchronizedView3DCallbacks.cxx.

void QGoSynchronizedView3DCallbacks::synchronizeCameras2 ( vtkObject *  caller,
long unsigned int  eventId,
void *  clientData,
void *  callData 
)
static

callback function to synchornize cameras (has to be public)

Definition at line 175 of file QGoSynchronizedView3DCallbacks.cxx.

void QGoSynchronizedView3DCallbacks::synchronizeCameras3 ( vtkObject *  caller,
long unsigned int  eventId,
void *  clientData,
void *  callData 
)
static

callback function to synchornize cameras (has to be public)

Definition at line 187 of file QGoSynchronizedView3DCallbacks.cxx.

Member Data Documentation

std::vector< QGoSynchronizedView3D * > QGoSynchronizedView3DCallbacks::m_openSynchronizedView
private

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

Definition at line 135 of file QGoSynchronizedView3DCallbacks.h.

std::vector< vtkCallbackCommand * > QGoSynchronizedView3DCallbacks::m_vtkCallBackCamSync
private

callback object to link callback function to QGoSynchronizedView's event

Definition at line 130 of file QGoSynchronizedView3DCallbacks.h.


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