39#ifndef vtkEventQtSlotConnect_h 
   40#define vtkEventQtSlotConnect_h 
   44#include "vtkGUISupportQtModule.h"  
   46#include <QtCore/QObject>  
   50VTK_ABI_NAMESPACE_BEGIN
 
   51class vtkQtConnections;
 
   71    const char* slot, 
void* client_data = 
nullptr, 
float priority = 0.0,
 
   72    Qt::ConnectionType type = Qt::AutoConnection);
 
   83    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