VTK  9.7.20260916
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
48
54
56
60 vtkGetMacro(Coverable, vtkTypeBool);
61 vtkBooleanMacro(Coverable, vtkTypeBool);
62 virtual void SetCoverable(vtkTypeBool coverable);
64
66
72
74
77 virtual void SetFullScreen(vtkTypeBool) {}
78 vtkGetMacro(FullScreen, vtkTypeBool);
79 vtkBooleanMacro(FullScreen, vtkTypeBool);
81
82protected:
85
88 std::string Platform = "Generic";
90
91private:
92 vtkHardwareWindow(const vtkHardwareWindow&) = delete;
93 void operator=(const vtkHardwareWindow&) = delete;
94};
95
96VTK_ABI_NAMESPACE_END
97#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 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