VTK  9.3.1
vtkAbstractInteractionDevice.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkAbstractInteractionDevice_h
4 #define vtkAbstractInteractionDevice_h
5 
6 #include "vtkObject.h"
7 #include "vtkRenderingCoreModule.h" // For export macro
8 
9 VTK_ABI_NAMESPACE_BEGIN
10 class vtkRenderWidget;
12 
13 class VTKRENDERINGCORE_EXPORT vtkAbstractInteractionDevice : public vtkObject
14 {
15 public:
17  void PrintSelf(ostream& os, vtkIndent indent) override;
18 
25 
29  virtual void Initialize() = 0;
30 
34  virtual void Start() = 0;
35 
40  virtual void ProcessEvents() = 0;
41 
42  void SetRenderWidget(vtkRenderWidget* widget);
43  vtkRenderWidget* GetRenderWidget() { return this->RenderWidget; }
44  void SetRenderDevice(vtkAbstractRenderDevice* device);
45  vtkAbstractRenderDevice* GetRenderDevice() { return this->RenderDevice; }
46 
47 protected:
49  ~vtkAbstractInteractionDevice() override;
50 
54 
55 private:
57  void operator=(const vtkAbstractInteractionDevice&) = delete;
58 };
59 
60 VTK_ABI_NAMESPACE_END
61 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractRenderDevice * RenderDevice
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkAbstractRenderDevice * GetRenderDevice()
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...