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 "vtkPVInformation.h"
26 #include "vtkRemotingViewsModule.h" //needed for exports
27 
28 #include <string> // for string type
29 
30 class VTKREMOTINGVIEWS_EXPORT vtkPVOpenGLInformation : public vtkPVInformation
31 {
32 public:
33  static vtkPVOpenGLInformation* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
44  void CopyFromObject(vtkObject* object) override;
45 
49  void AddInformation(vtkPVInformation*) override;
50 
52 
55  void CopyToStream(vtkClientServerStream*) override;
56  void CopyFromStream(const vtkClientServerStream*) override;
58 
60 
63  const std::string& GetVendor() const { return this->Vendor; }
64  const std::string& GetVersion() const { return this->Version; }
65  const std::string& GetRenderer() const { return this->Renderer; }
66  const std::string& GetCapabilities() const { return this->Capabilities; }
68 
69 protected:
71  ~vtkPVOpenGLInformation() override;
72 
73 private:
75  void operator=(const vtkPVOpenGLInformation&) = delete;
76 
77  std::string Vendor;
78  std::string Version;
79  std::string Renderer;
80  std::string Capabilities;
81 };
82 
83 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
const std::string & GetVendor() const
Methods provide access to OpenGL information.
Gets OpenGL information.
void PrintSelf(ostream &os, vtkIndent indent) override
Store messages for the interpreter.
const std::string & GetVersion() const
Methods provide access to OpenGL information.
void operator=(const vtkPVInformation &)=delete
const std::string & GetCapabilities() const
Methods provide access to OpenGL information.
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.
static vtkObject * New()
Superclass for information objects.
const std::string & GetRenderer() const
Methods provide access to OpenGL information.