vtkPVOpenGLInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPVOpenGLInformation_h
11 #define vtkPVOpenGLInformation_h
12 
13 #include "vtkPVInformation.h"
14 #include "vtkRemotingViewsModule.h" //needed for exports
15 
16 #include <string> // for string type
17 
19 {
20 public:
21  static vtkPVOpenGLInformation* New();
23  void PrintSelf(ostream& os, vtkIndent indent) override;
24 
32  void CopyFromObject(vtkObject* object) override;
33 
37  void AddInformation(vtkPVInformation*) override;
38 
40 
43  void CopyToStream(vtkClientServerStream*) override;
44  void CopyFromStream(const vtkClientServerStream*) override;
46 
48 
51  const std::string& GetVendor() const { return this->Vendor; }
52  const std::string& GetVersion() const { return this->Version; }
53  const std::string& GetRenderer() const { return this->Renderer; }
54  const std::string& GetCapabilities() const { return this->Capabilities; }
56 
57 protected:
59  ~vtkPVOpenGLInformation() override;
60 
61 private:
63  void operator=(const vtkPVOpenGLInformation&) = delete;
64 
65  std::string Vendor;
66  std::string Version;
67  std::string Renderer;
68  std::string Capabilities;
69 };
70 
71 #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.
#define VTKREMOTINGVIEWS_EXPORT
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.