00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00044 #ifndef VTK_EVENT_QT_SLOT_CONNECT
00045 #define VTK_EVENT_QT_SLOT_CONNECT
00046
00047 #include "vtkObject.h"
00048 #include "vtkCommand.h"
00049 #include "QVTKWin32Header.h"
00050 #include "qobject.h"
00051
00052 class QObject;
00053 class vtkQtConnections;
00054 class vtkQtConnection;
00055
00056
00057 class QVTK_EXPORT vtkEventQtSlotConnect : public vtkObject
00058 {
00059 public:
00060 static vtkEventQtSlotConnect* New();
00061 vtkTypeMacro(vtkEventQtSlotConnect, vtkObject)
00062
00063
00064 void PrintSelf(ostream& os, vtkIndent indent);
00065
00067
00070 virtual void Connect(vtkObject* vtk_obj, unsigned long event,
00071 const QObject* qt_obj, const char* slot,
00072 void* client_data=NULL, float priority=0.0
00073 ,Qt::ConnectionType type = Qt::AutoConnection);
00075
00077
00082 virtual void Disconnect(
00083 vtkObject* vtk_obj=NULL, unsigned long event=vtkCommand::NoEvent,
00084 const QObject* qt_obj=NULL, const char* slot = 0, void* client_data=NULL);
00086
00087 protected:
00088 vtkQtConnections* Connections;
00089 friend class vtkQtConnection;
00090 void RemoveConnection(vtkQtConnection*);
00091
00092 vtkEventQtSlotConnect();
00093 ~vtkEventQtSlotConnect();
00094
00095 private:
00096
00097 vtkEventQtSlotConnect(const vtkEventQtSlotConnect&);
00098 void operator=(const vtkEventQtSlotConnect&);
00099 };
00100
00101 #endif
00102