|
GOFIGURE2
0.9.0
|
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>
Signals | |
| void | SliceViewXYChanged (int oSlice) |
| signals for synchronizing sliders (gives current XYslice of any changing QGoSynchronizedView) | |
| void | SliceViewXZChanged (int oSlice) |
| signals for synchronizing sliders (gives current XZ slice of any changing QGoSynchronizedView) | |
| void | SliceViewYZChanged (int oSlice) |
| signals for synchronizing sliders (gives current YZ slice of any changing QGoSynchronizedView) | |
Public Member Functions | |
| void | addSynchronizedView (QGoSynchronizedView3D *ioSynchronizedView) |
| add a QGoSynchronizedView3D to the vector of synchronized Managers (this method takes care of adding the callback) | |
| QGoSynchronizedView3DCallbacks (std::vector< QGoSynchronizedView3D * > ioOpenSynchronizedViews, QObject *iParent=0) | |
| the constructor do most of the work : add observers & callbacks to QGoSynchronizedViews of the vector | |
| void | removeSynchronizedView (QGoSynchronizedView3D *ioSynchronizedView) |
| remove a QGoSynchronizedView3D from the vector of synchronized Managers (this method takes care of removing the callback) | |
| ~QGoSynchronizedView3DCallbacks () | |
Public Member Functions inherited from QObject | |
| bool | blockSignals (bool block) |
| QObject * | child (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< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) 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 QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () 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) |
| QThread * | thread () 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) | |
| static void | synchronizeCameras1 (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData) |
| callback function to synchornize cameras (has to be public) | |
| static void | synchronizeCameras2 (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData) |
| callback function to synchornize cameras (has to be public) | |
| static void | synchronizeCameras3 (vtkObject *caller, long unsigned int eventId, void *clientData, void *callData) |
| callback function to synchornize cameras (has to be public) | |
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) | |
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 |
| QObject * | sender () 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 | |
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.
| 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.
| 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.
|
private |
setup the callback command object (client data, called function...etc)
Definition at line 248 of file QGoSynchronizedView3DCallbacks.cxx.
|
signal |
signals for synchronizing sliders (gives current XYslice of any changing QGoSynchronizedView)
|
signal |
signals for synchronizing sliders (gives current XZ slice of any changing QGoSynchronizedView)
|
signal |
signals for synchronizing sliders (gives current YZ slice of any changing QGoSynchronizedView)
|
static |
Definition at line 197 of file QGoSynchronizedView3DCallbacks.cxx.
|
static |
callback function to synchornize cameras (has to be public)
Definition at line 150 of file QGoSynchronizedView3DCallbacks.cxx.
|
static |
callback function to synchornize cameras (has to be public)
Definition at line 163 of file QGoSynchronizedView3DCallbacks.cxx.
|
static |
callback function to synchornize cameras (has to be public)
Definition at line 175 of file QGoSynchronizedView3DCallbacks.cxx.
|
static |
callback function to synchornize cameras (has to be public)
Definition at line 187 of file QGoSynchronizedView3DCallbacks.cxx.
|
private |
all open QGoSynchronizedView3D are stored in this array, to transmit it to the callback function
Definition at line 135 of file QGoSynchronizedView3DCallbacks.h.
|
private |
callback object to link callback function to QGoSynchronizedView's event
Definition at line 130 of file QGoSynchronizedView3DCallbacks.h.
1.8.1.2