 |
VTK
9.0.1
|
Go to the documentation of this file.
43 #ifndef vtkEventQtSlotConnect_h
44 #define vtkEventQtSlotConnect_h
48 #include "vtkGUISupportQtModule.h"
50 #include <QtCore/QObject>
53 class vtkQtConnections;
73 const char* slot,
void* client_data =
nullptr,
float priority = 0.0,
74 Qt::ConnectionType
type = Qt::AutoConnection);
85 const QObject* qt_obj =
nullptr,
const char* slot =
nullptr,
void* client_data =
nullptr);
virtual void Disconnect(vtkObject *vtk_obj=nullptr, unsigned long event=vtkCommand::NoEvent, const QObject *qt_obj=nullptr, const char *slot=nullptr, void *client_data=nullptr)
Disconnect a vtk object from a qt object.
Manage connections between VTK events and Qt slots.
void RemoveConnection(vtkQtConnection *)
abstract base class for most VTK objects
virtual void Connect(vtkObject *vtk_obj, unsigned long event, const QObject *qt_obj, const char *slot, void *client_data=nullptr, float priority=0.0, Qt::ConnectionType type=Qt::AutoConnection)
Connect a vtk object's event with a Qt object's slot.
~vtkEventQtSlotConnect() override
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Print the current connections between VTK and Qt.
vtkQtConnections * Connections
static vtkEventQtSlotConnect * New()
virtual int GetNumberOfConnections() const
Allow to query vtkEventQtSlotConnect to know if some Connect() have been setup and how many.