Ogre2GlobalIlluminationVct.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 #ifndef GZ_RENDERING_OGRE2_OGRE2GLOBALILLUMINATIONVCT_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2GLOBALILLUMINATIONVCT_HH_
19 
21 
22 #include "gz/rendering/ogre2/Export.hh"
24 
25 #include <memory>
26 
27 #ifdef _MSC_VER
28  #pragma warning(push)
29  // Suppress dll-interface warning. This should no longer be needed in
30  // gz-rendering9 as visibility changed hidden by default.
31  #pragma warning(disable:4251)
32 #endif
33 
34 namespace Ogre
35 {
36  class HlmsPbs;
37 }
38 
39 namespace gz
40 {
41  namespace rendering
42  {
43  inline namespace GZ_RENDERING_VERSION_NAMESPACE {
44  //
45  // forward declaration
46  class Ogre2GlobalIlluminationVctPrivate;
47 
49  class GZ_RENDERING_OGRE2_VISIBLE Ogre2GlobalIlluminationVct :
50  public BaseGlobalIlluminationVct<Ogre2Object>
51  {
54 
56  public: virtual ~Ogre2GlobalIlluminationVct() override;
57 
58  // Documentation inherited
59  protected: virtual void Init() override;
60 
61  // Documentation inherited
62  public: virtual void Destroy() override;
63 
64  // Documentation inherited
65  public: virtual void Build() override;
66 
67  // Documentation inherited
68  public: virtual void UpdateLighting() override;
69 
70  // Documentation inherited
71  public: virtual void UpdateCamera() override;
72 
73  // Documentation inherited
74  public: virtual void SetResolution(const uint32_t _resolution[3])
75  override;
76 
77  // Documentation inherited
78  public: virtual const uint32_t* Resolution() const override;
79 
80  // Documentation inherited.
81  public: virtual void SetOctantCount(const uint32_t _octants[3]) override;
82 
83  // Documentation inherited.
84  public: virtual const uint32_t* OctantCount() const override;
85 
86  // Documentation inherited
87  public: virtual void SetBounceCount(uint32_t _bounceCount) override;
88 
89  // Documentation inherited
90  public: virtual uint32_t BounceCount() const override;
91 
92  // Documentation inherited.
93  public: void SetParticipatingVisuals(uint32_t _mask) override;
94 
95  // Documentation inherited.
96  public: uint32_t ParticipatingVisuals() const override;
97 
98  // Documentation inherited
99  public: virtual void SetHighQuality(bool _highQuality) override;
100 
101  // Documentation inherited
102  public: virtual bool HighQuality() const override;
103 
104  // Documentation inherited
105  public: virtual void SetAnisotropic(bool _anisotropic) override;
106 
107  // Documentation inherited
108  public: virtual bool Anisotropic() const override;
109 
110  // Documentation inherited
111  public: virtual void SetThinWallCounter(float _thinWallCounter) override;
112 
113  // Documentation inherited
114  public: virtual float ThinWallCounter() const override;
115 
116  // Documentation inherited
117  public: virtual void SetConserveMemory(bool _conserveMemory) override;
118 
119  // Documentation inherited
120  public: virtual bool ConserveMemory() const override;
121 
125  protected: virtual void SetEnabled(bool _enabled) override;
126 
127  // Documentation inherited.
128  public: virtual bool Enabled() const override;
129 
130  // Documentation inherited.
131  public: virtual void SetDebugVisualization(
132  DebugVisualizationMode _dvm) override;
133 
134  // Documentation inherited.
136  override;
137 
138  // Documentation inherited.
139  public: virtual void LightingChanged() override;
140 
143  private: Ogre::HlmsPbs* HlmsPbs() const;
144 
147  private: void SyncModeVisualizationMode();
148 
151 
153  private: friend class Ogre2Scene;
154  };
155  }
156  }
157 }
158 
159 #ifdef _MSC_VER
160  #pragma warning(pop)
161 #endif
162 
163 #endif