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 
18 class VTKREMOTINGVIEWS_EXPORT vtkPVOpenGLInformation : public vtkPVInformation
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
vtkPVInformation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPVOpenGLInformation::GetCapabilities
const std::string & GetCapabilities() const
Methods provide access to OpenGL information.
Definition: vtkPVOpenGLInformation.h:54
vtkObject::New
static vtkObject * New()
vtkClientServerStream
Store messages for the interpreter.
Definition: vtkClientServerStream.h:23
vtkPVInformation.h
vtkObject
vtkPVOpenGLInformation
Gets OpenGL information.
Definition: vtkPVOpenGLInformation.h:18
vtkPVInformation::operator=
void operator=(const vtkPVInformation &)=delete
vtkPVInformation::AddInformation
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
vtkPVOpenGLInformation::GetRenderer
const std::string & GetRenderer() const
Methods provide access to OpenGL information.
Definition: vtkPVOpenGLInformation.h:53
vtkIndent
vtkPVInformation::CopyFromObject
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
vtkPVInformation
Superclass for information objects.
Definition: vtkPVInformation.h:19
vtkPVOpenGLInformation::GetVendor
const std::string & GetVendor() const
Methods provide access to OpenGL information.
Definition: vtkPVOpenGLInformation.h:51
vtkPVInformation::CopyToStream
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
vtkPVInformation::CopyFromStream
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
vtkPVOpenGLInformation::GetVersion
const std::string & GetVersion() const
Methods provide access to OpenGL information.
Definition: vtkPVOpenGLInformation.h:52