vtkIceTContext.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkIceTContext.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 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
41 #ifndef vtkIceTContext_h
42 #define vtkIceTContext_h
43 
44 #include "vtkObject.h"
45 #include "vtkRemotingViewsModule.h" // needed for export macro
46 
48 
49 class vtkIceTContextOpaqueHandle;
50 
52 {
53 public:
54  vtkTypeMacro(vtkIceTContext, vtkObject);
55  static vtkIceTContext* New();
56  virtual void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
64  virtual void SetController(vtkMultiProcessController* controller);
65  vtkGetObjectMacro(Controller, vtkMultiProcessController);
67 
71  virtual void MakeCurrent();
72 
74 
80  vtkGetMacro(UseOpenGL, int);
81  virtual void SetUseOpenGL(int flag);
82  vtkBooleanMacro(UseOpenGL, int);
84 
88  virtual void CopyState(vtkIceTContext* src);
89 
93  virtual int IsValid();
94 
95 protected:
97  ~vtkIceTContext();
98 
100 
102 
103 private:
104  vtkIceTContext(const vtkIceTContext&) = delete;
105  void operator=(const vtkIceTContext&) = delete;
106 
107  vtkIceTContextOpaqueHandle* Context;
108 };
109 
110 #endif // vtkIceTContext_h
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkMultiProcessController * Controller
This is a helper class for vtkIceTRenderManager and vtkOpenGLIceTRenderer.
static vtkObject * New()
void operator=(const vtkObjectBase &)