VTK  9.7.20261105
vtkHardwareWindow.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
23
24#ifndef vtkHardwareWindow_h
25#define vtkHardwareWindow_h
26
27#include "vtkRenderWindowInteractor.h" // For ivar
28#include "vtkRenderingCoreModule.h" // For export macro
29#include "vtkWeakPointer.h" // For ivar
30#include "vtkWindow.h"
31#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
32
33VTK_ABI_NAMESPACE_BEGIN
34class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkHardwareWindow : public vtkWindow
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
41 // create the window (not the instance)
42 virtual void Create() {}
43
44 // destroy the window (not the instance)
45 virtual void Destroy() {}
46
51 virtual bool IsExternallyOwned() { return false; }
52
54
60
62
66 vtkGetMacro(Coverable, vtkTypeBool);
67 vtkBooleanMacro(Coverable, vtkTypeBool);
68 virtual void SetCoverable(vtkTypeBool coverable);
70
72
78
80
83 virtual void SetFullScreen(vtkTypeBool) {}
84 vtkGetMacro(FullScreen, vtkTypeBool);
85 vtkBooleanMacro(FullScreen, vtkTypeBool);
87
88protected:
91
94 std::string Platform = "Generic";
96
97private:
98 vtkHardwareWindow(const vtkHardwareWindow&) = delete;
99 void operator=(const vtkHardwareWindow&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#endif
virtual void SetCoverable(vtkTypeBool coverable)
Set/Get whether windows should be coverable (as opposed to always on top).
vtkSetStdStringFromCharMacro(Platform)
Get the platform name for this windowing system.
virtual bool IsExternallyOwned()
Whether this is a handle on a view the host application owns rather than one VTK creates.
virtual void SetInteractor(vtkRenderWindowInteractor *)
Set/Get the interactor associated with this window.
~vtkHardwareWindow() override
vtkWeakPointer< vtkRenderWindowInteractor > Interactor
virtual void Create()
static vtkHardwareWindow * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
vtkGetCharFromStdStringMacro(Platform)
Get the platform name for this windowing system.
virtual void Destroy()
a simple class to control print indentation
Definition vtkIndent.h:108
platform-independent render window interaction including picking and frame rate control.
a weak reference to a vtkObject.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO