VTK  9.7.1
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
21 #ifndef vtkHardwareWindow_h
22 #define vtkHardwareWindow_h
23 
24 #include "vtkRenderWindowInteractor.h" // For ivar
25 #include "vtkRenderingCoreModule.h" // For export macro
26 #include "vtkWeakPointer.h" // For ivar
27 #include "vtkWindow.h"
28 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkHardwareWindow : public vtkWindow
32 {
33 public:
34  static vtkHardwareWindow* New();
35  vtkTypeMacro(vtkHardwareWindow, vtkWindow);
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  // create the window (not the instance)
39  virtual void Create() {}
40 
41  // destroy the window (not the instance)
42  virtual void Destroy() {}
43 
45 
48  virtual void SetInteractor(vtkRenderWindowInteractor*);
49  vtkGetObjectMacro(Interactor, vtkRenderWindowInteractor);
51 
53 
57  vtkGetMacro(Coverable, vtkTypeBool);
58  vtkBooleanMacro(Coverable, vtkTypeBool);
59  virtual void SetCoverable(vtkTypeBool coverable);
61 
63 
66  vtkGetCharFromStdStringMacro(Platform);
67  vtkSetStdStringFromCharMacro(Platform);
69 
71 
74  virtual void SetFullScreen(vtkTypeBool) {}
75  vtkGetMacro(FullScreen, vtkTypeBool);
76  vtkBooleanMacro(FullScreen, vtkTypeBool);
78 
79 protected:
81  ~vtkHardwareWindow() override;
82 
84  vtkTypeBool Coverable = false;
85  std::string Platform = "Generic";
86  vtkTypeBool FullScreen = false;
87 
88 private:
89  vtkHardwareWindow(const vtkHardwareWindow&) = delete;
90  void operator=(const vtkHardwareWindow&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
create a window for renderers to draw into
virtual void Create()
int vtkTypeBool
Definition: vtkABI.h:64
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
platform-independent render window interaction including picking and frame rate control.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void Destroy()
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.
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...