VTK
vtkXInteractionDevice.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4 
5  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 #ifndef vtkXInteractionDevice_h
15 #define vtkXInteractionDevice_h
16 
18 #include "vtkRenderingOpenGL2Module.h" // For export macro
19 #include <X11/Xlib.h> // Needed for X types used in the public interface
20 
21 class VTKRENDERINGOPENGL2_EXPORT vtkXInteractionDevice
23 {
24 public:
26  void PrintSelf(ostream& os, vtkIndent indent);
27 
28  static vtkXInteractionDevice* New();
29 
30  virtual void Initialize();
31 
32  virtual void Start();
33 
34  virtual void ProcessEvents();
35 
36 protected:
38  ~vtkXInteractionDevice();
39 
40  Display *DisplayId;
41  bool ExitEventLoop;
42 
43 private:
44  vtkXInteractionDevice(const vtkXInteractionDevice&); // Not implemented.
45  void operator=(const vtkXInteractionDevice&); // Not implemented.
46 
47  void ProcessEvent(XEvent &event);
48 };
49 
50 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38