Public Types | Public Member Functions

ctkVTKObjectEventsObserver Class Reference

#include <Libs/Visualization/VTK/Core/ctkVTKObjectEventsObserver.h>

List of all members.

Public Types

typedef QObject Superclass

Public Member Functions

QString addConnection (vtkObject *vtk_obj, unsigned long vtk_event, const QObject *qt_obj, const char *qt_slot, float priority=0.0)
QString addConnection (vtkObject *old_vtk_obj, vtkObject *vtk_obj, unsigned long vtk_event, const QObject *qt_obj, const char *qt_slot, float priority=0.0)
bool allEnabled () const
void blockAllConnections (bool block)
int blockConnection (bool block, vtkObject *vtk_obj, unsigned long vtk_event, const QObject *qt_obj)
void blockConnection (const QString &id, bool blocked)
 ctkVTKObjectEventsObserver (QObject *parent=0)
virtual void printAdditionalInfo ()
QString reconnection (vtkObject *vtk_obj, unsigned long vtk_event, const QObject *qt_obj, const char *qt_slot, float priority=0.0)
int removeAllConnections ()
int removeConnection (vtkObject *vtk_obj, unsigned long vtk_event=vtkCommand::NoEvent, const QObject *qt_obj=0, const char *qt_slot=0)
void setAllEnabled (bool enable)
virtual ~ctkVTKObjectEventsObserver ()

Detailed Description

Definition at line 41 of file ctkVTKObjectEventsObserver.h.


Member Typedef Documentation

Definition at line 46 of file ctkVTKObjectEventsObserver.h.


Constructor & Destructor Documentation

ctkVTKObjectEventsObserver::ctkVTKObjectEventsObserver ( QObject *  parent = 0  )  [explicit]

Definition at line 74 of file ctkVTKObjectEventsObserver.cpp.

virtual ctkVTKObjectEventsObserver::~ctkVTKObjectEventsObserver (  )  [inline, virtual]

Definition at line 48 of file ctkVTKObjectEventsObserver.h.


Member Function Documentation

QString ctkVTKObjectEventsObserver::addConnection ( vtkObject *  vtk_obj,
unsigned long  vtk_event,
const QObject *  qt_obj,
const char *  qt_slot,
float  priority = 0.0 
)

Add a connection, an Id allowing to uniquely identify the connection is also returned

Definition at line 161 of file ctkVTKObjectEventsObserver.cpp.

QString ctkVTKObjectEventsObserver::addConnection ( vtkObject *  old_vtk_obj,
vtkObject *  vtk_obj,
unsigned long  vtk_event,
const QObject *  qt_obj,
const char *  qt_slot,
float  priority = 0.0 
)

Utility function that remove a connection on old_vtk_obj and add a connection to vtk_obj (same event, object, slot, priority)

Definition at line 122 of file ctkVTKObjectEventsObserver.cpp.

bool ctkVTKObjectEventsObserver::allEnabled (  )  const

Definition at line 99 of file ctkVTKObjectEventsObserver.cpp.

void ctkVTKObjectEventsObserver::blockAllConnections ( bool  block  ) 

Temporarilly block all the connection

Definition at line 195 of file ctkVTKObjectEventsObserver.cpp.

int ctkVTKObjectEventsObserver::blockConnection ( bool  block,
vtkObject *  vtk_obj,
unsigned long  vtk_event,
const QObject *  qt_obj 
)

Block/Unblock a connection.

Definition at line 221 of file ctkVTKObjectEventsObserver.cpp.

void ctkVTKObjectEventsObserver::blockConnection ( const QString &  id,
bool  blocked 
)

Definition at line 209 of file ctkVTKObjectEventsObserver.cpp.

void ctkVTKObjectEventsObserver::printAdditionalInfo (  )  [virtual]

Definition at line 81 of file ctkVTKObjectEventsObserver.cpp.

QString ctkVTKObjectEventsObserver::reconnection ( vtkObject *  vtk_obj,
unsigned long  vtk_event,
const QObject *  qt_obj,
const char *  qt_slot,
float  priority = 0.0 
)

Utility function that remove a connection on old_vtk_obj and add a connection to vtk_obj (same event, object, slot, priority)

Definition at line 147 of file ctkVTKObjectEventsObserver.cpp.

int ctkVTKObjectEventsObserver::removeAllConnections (  )  [inline]

Remove all the connections

Definition at line 100 of file ctkVTKObjectEventsObserver.h.

int ctkVTKObjectEventsObserver::removeConnection ( vtkObject *  vtk_obj,
unsigned long  vtk_event = vtkCommand::NoEvent,
const QObject *  qt_obj = 0,
const char *  qt_slot = 0 
)

Remove a connection

Definition at line 242 of file ctkVTKObjectEventsObserver.cpp.

void ctkVTKObjectEventsObserver::setAllEnabled ( bool  enable  ) 

Enable / Disable all ctkVTKConnections

Definition at line 105 of file ctkVTKObjectEventsObserver.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines