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:
[legend]
Collaboration diagram for QGoSynchronizedView2DCallbacks:
[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 ()
 
- 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 synchronizeCameras (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

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...
 

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 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: