VTK  9.0.1
vtkAbstractInteractionDevice.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 vtkAbstractInteractionDevice_h
15 #define vtkAbstractInteractionDevice_h
16 
17 #include "vtkObject.h"
18 #include "vtkRenderingCoreModule.h" // For export macro
19 
20 class vtkRenderWidget;
22 
23 class VTKRENDERINGCORE_EXPORT vtkAbstractInteractionDevice : public vtkObject
24 {
25 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
35 
39  virtual void Initialize() = 0;
40 
44  virtual void Start() = 0;
45 
50  virtual void ProcessEvents() = 0;
51 
53  vtkRenderWidget* GetRenderWidget() { return this->RenderWidget; }
55  vtkAbstractRenderDevice* GetRenderDevice() { return this->RenderDevice; }
56 
57 protected:
60 
64 
65 private:
67  void operator=(const vtkAbstractInteractionDevice&) = delete;
68 };
69 
70 #endif
vtkAbstractInteractionDevice::RenderDevice
vtkAbstractRenderDevice * RenderDevice
Definition: vtkAbstractInteractionDevice.h:63
vtkAbstractInteractionDevice::GetRenderWidget
vtkRenderWidget * GetRenderWidget()
Definition: vtkAbstractInteractionDevice.h:53
vtkAbstractInteractionDevice::GetRenderDevice
vtkAbstractRenderDevice * GetRenderDevice()
Definition: vtkAbstractInteractionDevice.h:55
vtkRenderWidget
Definition: vtkRenderWidget.h:27
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:54
vtkAbstractInteractionDevice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractInteractionDevice::RenderWidget
vtkRenderWidget * RenderWidget
Definition: vtkAbstractInteractionDevice.h:62
vtkAbstractInteractionDevice::Initialized
bool Initialized
Definition: vtkAbstractInteractionDevice.h:61
vtkAbstractInteractionDevice::~vtkAbstractInteractionDevice
~vtkAbstractInteractionDevice() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkAbstractInteractionDevice::New
static vtkAbstractInteractionDevice * New()
Make a new device, this class is abstract and one of its derived forms will be returned,...
vtkAbstractRenderDevice
Definition: vtkAbstractRenderDevice.h:24
vtkAbstractInteractionDevice::Initialize
virtual void Initialize()=0
Initialize the interaction device.
vtkObject.h
vtkAbstractInteractionDevice::Start
virtual void Start()=0
Start the event loop.
vtkAbstractInteractionDevice::vtkAbstractInteractionDevice
vtkAbstractInteractionDevice()
vtkAbstractInteractionDevice::SetRenderDevice
void SetRenderDevice(vtkAbstractRenderDevice *device)
vtkAbstractInteractionDevice::SetRenderWidget
void SetRenderWidget(vtkRenderWidget *widget)
vtkAbstractInteractionDevice::ProcessEvents
virtual void ProcessEvents()=0
Process any pending events, this can be used to process OS level events without running a full event ...
vtkAbstractInteractionDevice
Definition: vtkAbstractInteractionDevice.h:24