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:
[legend]
Collaboration diagram for QGoSynchronizedView3DCallbacks:
[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 ()
 
- Public Member Functions inherited from QObject
bool blockSignals (bool block)
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObjectparent () const
 
QVariant property (const char *name) const
 
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThreadthread () const
 
virtual  ~QObject ()
 

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...
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

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
 

Additional Inherited Members

- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

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: