/*========================================================================= Program: Visualization Toolkit Module: vtkActor.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ /** * @class vtkTDxQtUnixDevices * @brief Manage a list vtkTDXUnixDevice(s). * * This class is essentially a map between a X11 window id and a * vtkTDXUnixDevice. It is uses internally by QVTKApplication. * * @sa * vtkTDxUnixDevice QVTKOpenGLNativeWidget QVTKApplication */ #ifndef vtkTDxQtUnixDevices_h #define vtkTDxQtUnixDevices_h #include "QVTKWin32Header.h" // for VTKGUISUPPORTQT_EXPORT #include "vtkGUISupportQtModule.h" // For export macro #include "vtkTDxUnixDevice.h" // required for vtkTDxUnixDeviceXEvent #include class vtkTDxQtUnixDevicesPrivate; class VTKGUISUPPORTQT_EXPORT vtkTDxQtUnixDevices : public QObject { Q_OBJECT public: vtkTDxQtUnixDevices(); ~vtkTDxQtUnixDevices(); /** * Process X11 event `e'. Create a device and emit signal CreateDevice if it * does not exist yet. * \pre e_exists: e!=0 */ void ProcessEvent(vtkTDxUnixDeviceXEvent* e); Q_SIGNALS: /** * This signal should be connected to a slot in the QApplication. * The slot in the QApplication is supposed to remit this signal. * The QVTKOpenGLNativeWidget have slot to receive this signal from the QApplication. */ void CreateDevice(vtkTDxDevice* device); protected: vtkTDxQtUnixDevicesPrivate* Private; private: vtkTDxQtUnixDevices(const vtkTDxQtUnixDevices&) = delete; void operator=(const vtkTDxQtUnixDevices&) = delete; }; #endif // VTK-HeaderTest-Exclude: vtkTDxQtUnixDevices.h