vtkPVProcessWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVProcessWindow.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkPVProcessWindow_h
29 #define vtkPVProcessWindow_h
30 
31 #include "vtkObject.h"
32 #include "vtkRemotingViewsModule.h" //needed for exports
33 
34 class vtkRenderWindow;
35 
37 {
38 public:
39  vtkTypeMacro(vtkPVProcessWindow, vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
49 
54  static void PrepareForRendering();
55 
56 protected:
58  ~vtkPVProcessWindow() override;
59 
60  static vtkRenderWindow* NewWindow();
61  static vtkRenderWindow* NewTileDisplayWindow();
62  static vtkRenderWindow* NewCAVEWindow();
63 
64 private:
65  vtkPVProcessWindow(const vtkPVProcessWindow&) = delete;
66  void operator=(const vtkPVProcessWindow&) = delete;
67 };
68 
69 // Implementation of Schwartz counter idiom to ensure that the
70 // singleton vtkRenderWindow is cleaned up correctly during finalization.
72 {
73 public:
76 
77 private:
79  void operator=(const vtkPVProcessWindowSingletonCleaner&) = delete;
81 #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.