ParaView
vtkPVOpenGLInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVOpenGLInformation.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 =========================================================================*/
22 #ifndef vtkPVOpenGLInformation_h
23 #define vtkPVOpenGLInformation_h
24 
25 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
26 #include "vtkPVInformation.h"
27 
28 #include <string> // for string type
29 
30 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVOpenGLInformation : public vtkPVInformation
31 {
32 public:
33  static vtkPVOpenGLInformation* New();
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
40  virtual void CopyFromObject(vtkObject*);
41 
45  virtual void AddInformation(vtkPVInformation*);
46 
48 
51  virtual void CopyToStream(vtkClientServerStream*);
52  virtual void CopyFromStream(const vtkClientServerStream*);
54 
56 
62  virtual void CopyParametersToStream(vtkMultiProcessStream&){};
63  virtual void CopyParametersFromStream(vtkMultiProcessStream&){};
65 
66  const std::string& GetVendor();
67  const std::string& GetVersion();
68  const std::string& GetRenderer();
69 
70  bool GetLocalDisplay();
71 
72 protected:
75 
76  void SetVendor();
77 
78  void SetVersion();
79 
80  void SetRenderer();
81 
82  void SetLocalDisplay(bool);
83 
84 private:
85  vtkPVOpenGLInformation(const vtkPVOpenGLInformation&) VTK_DELETE_FUNCTION;
86  void operator=(const vtkPVOpenGLInformation&) VTK_DELETE_FUNCTION;
87 
88  bool LocalDisplay;
89 
90  std::string Vendor;
91  std::string Version;
92  std::string Renderer;
93 };
94 
95 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
Gets OpenGL information.
virtual void CopyParametersToStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
Store messages for the interpreter.
virtual void CopyParametersFromStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
void operator=(const vtkPVInformation &) VTK_DELETE_FUNCTION
void PrintSelf(ostream &os, vtkIndent indent)
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
Superclass for information objects.