VTK  9.4.20241226
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
9VTK_ABI_NAMESPACE_BEGIN
10class vtkRenderWidget;
12
13class VTKRENDERINGCORE_EXPORT vtkAbstractInteractionDevice : public vtkObject
14{
15public:
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
47protected:
50
54
55private:
57 void operator=(const vtkAbstractInteractionDevice&) = delete;
58};
59
60VTK_ABI_NAMESPACE_END
61#endif
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.
virtual void Start()=0
Start the event loop.
static vtkAbstractInteractionDevice * New()
Make a new device, this class is abstract and one of its derived forms will be returned,...
virtual void ProcessEvents()=0
Process any pending events, this can be used to process OS level events without running a full event ...
~vtkAbstractInteractionDevice() override
void SetRenderWidget(vtkRenderWidget *widget)
void SetRenderDevice(vtkAbstractRenderDevice *device)
vtkAbstractRenderDevice * GetRenderDevice()
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162