62#ifndef vtkEventQtSlotConnect_h
63#define vtkEventQtSlotConnect_h
67#include "vtkGUISupportQtModule.h"
69#include <QtCore/QObject>
72class vtkQtConnections;
92 const char* slot,
void* client_data =
nullptr,
float priority = 0.0,
93 Qt::ConnectionType
type = Qt::AutoConnection);
104 const QObject* qt_obj =
nullptr,
const char* slot =
nullptr,
void* client_data =
nullptr);
Manage connections between VTK events and Qt slots.
vtkQtConnections * Connections
virtual int GetNumberOfConnections() const
Allow to query vtkEventQtSlotConnect to know if some Connect() have been setup and how many.
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.
static vtkEventQtSlotConnect * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Print the current connections between VTK and Qt.
~vtkEventQtSlotConnect() override
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.
void RemoveConnection(vtkQtConnection *)
a simple class to control print indentation
abstract base class for most VTK objects