vtkPVProcessWindow.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkPVProcessWindow_h
17 #define vtkPVProcessWindow_h
18 
19 #include "vtkObject.h"
20 #include "vtkRemotingViewsModule.h" //needed for exports
21 
22 class vtkRenderWindow;
23 
25 {
26 public:
27  vtkTypeMacro(vtkPVProcessWindow, vtkObject);
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
37 
42  static void PrepareForRendering();
43 
44 protected:
46  ~vtkPVProcessWindow() override;
47 
48  static vtkRenderWindow* NewWindow();
49  static vtkRenderWindow* NewTileDisplayWindow();
50  static vtkRenderWindow* NewCAVEWindow();
51 
52 private:
53  vtkPVProcessWindow(const vtkPVProcessWindow&) = delete;
54  void operator=(const vtkPVProcessWindow&) = delete;
55 };
56 
57 // Implementation of Schwartz counter idiom to ensure that the
58 // singleton vtkRenderWindow is cleaned up correctly during finalization.
60 {
61 public:
64 
65 private:
67  void operator=(const vtkPVProcessWindowSingletonCleaner&) = delete;
69 #endif
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkRenderWindow * GetRenderWindow()
static class VTKREMOTINGVIEWS_EXPORT vtkPVProcessWindowSingletonCleaner PVProcessWindowSingletonCleaner
void operator=(const vtkObjectBase &)
a window associated with current process, if any.