VTK  9.3.0
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 
43  vtkRenderWidget* GetRenderWidget() { return this->RenderWidget; }
45  vtkAbstractRenderDevice* GetRenderDevice() { return this->RenderDevice; }
46 
47 protected:
50 
54 
55 private:
57  void operator=(const vtkAbstractInteractionDevice&) = delete;
58 };
59 
60 VTK_ABI_NAMESPACE_END
61 #endif
vtkAbstractRenderDevice * RenderDevice
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Initialize()=0
Initialize the interaction device.
vtkAbstractRenderDevice * GetRenderDevice()
virtual void Start()=0
Start the event loop.
virtual void ProcessEvents()=0
Process any pending events, this can be used to process OS level events without running a full event ...
~vtkAbstractInteractionDevice() override
static vtkAbstractInteractionDevice * New()
Make a new device, this class is abstract and one of its derived forms will be returned,...
void SetRenderWidget(vtkRenderWidget *widget)
void SetRenderDevice(vtkAbstractRenderDevice *device)
a simple class to control print indentation
Definition: vtkIndent.h:29
abstract base class for most VTK objects
Definition: vtkObject.h:52