46 #include "vtkEventQtSlotConnect.h"
47 #include "vtkCallbackCommand.h"
50 #include <qmetaobject.h>
62 this->
VTKEvent = vtkCommand::NoEvent;
77 void* client_data,
void* call_data)
80 conn->
Execute(vtk_obj, event, call_data);
87 if(e != vtkCommand::DeleteEvent ||
88 (e == vtkCommand::DeleteEvent && this->
VTKEvent == vtkCommand::DeleteEvent))
93 if(e == vtkCommand::DeleteEvent)
96 this->
QtSlot.toUtf8().data(),
102 const QObject* qt_obj,
const char* slot,
void* client_data)
107 if(e != vtkCommand::NoEvent && e != this->
VTKEvent)
110 if(qt_obj && qt_obj != this->
QtObject)
113 if(slot && this->
QtSlot != slot)
116 if(client_data && this->
ClientData != client_data)
124 vtkObject* vtk_obj,
unsigned long e,
125 const QObject* qt_obj,
const char* slot,
126 void* client_data,
float priority
127 , Qt::ConnectionType type)
137 vtk_obj->AddObserver(e, this->
Callback, priority);
139 if(e != vtkCommand::DeleteEvent)
141 vtk_obj->AddObserver(vtkCommand::DeleteEvent, this->
Callback);
146 this, SIGNAL(
EmitExecute(vtkObject*,
unsigned long,
void*,
void*,vtkCommand*)),
149 QObject::connect(qt_obj, SIGNAL(destroyed(QObject*)),
this,
155 this->
Owner->RemoveConnection(
this);
163 this->
VTKObject->GetClassName() <<
":" <<
164 vtkCommand::GetStringFromEventId(this->
VTKEvent) <<
" <----> " <<
165 this->
QtObject->metaObject()->className() <<
"::" <<
166 this->
QtSlot.toUtf8().data() <<
"\n";
vtkCallbackCommand * Callback
static void DoCallback(vtkObject *vtk_obj, unsigned long event, void *client_data, void *call_data)
vtkQtConnection(vtkEventQtSlotConnect *owner)
void SetConnection(vtkObject *vtk_obj, unsigned long event, const QObject *qt_obj, const char *slot, void *client_data, float priority=0.0, Qt::ConnectionType type=Qt::AutoConnection)
void PrintSelf(ostream &os, vtkIndent indent)
void EmitExecute(vtkObject *, unsigned long, void *client_data, void *call_data, vtkCommand *)
vtkEventQtSlotConnect * Owner
void Execute(vtkObject *caller, unsigned long event, void *client_data)
bool IsConnection(vtkObject *vtk_obj, unsigned long event, const QObject *qt_obj, const char *slot, void *client_data)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.