Gazebo Rendering

API Reference

6.6.3
gz/rendering/ogre2/Ogre2LidarVisual.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 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 
18 #ifndef IGNITION_RENDERING_OGRE2_OGRELIDARVISUAL_HH_
19 #define IGNITION_RENDERING_OGRE2_OGRELIDARVISUAL_HH_
20 
21 #include <memory>
22 #include <vector>
26 
27 namespace ignition
28 {
29  namespace rendering
30  {
31  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
32  //
33  // Forward declaration
34  class Ogre2LidarVisualPrivate;
35 
37  class IGNITION_RENDERING_OGRE2_VISIBLE Ogre2LidarVisual
38  : public BaseLidarVisual<Ogre2Visual>
39  {
41  protected: Ogre2LidarVisual();
42 
44  public: virtual ~Ogre2LidarVisual();
45 
46  // Documentation inherited.
47  public: virtual void Init() override;
48 
49  // Documentation inherited.
50  public: virtual void PreRender() override;
51 
52  // Documentation inherited.
53  public: virtual void Destroy() override;
54 
55  // Documentation inherited
56  public: virtual void Update() override;
57 
58  // Documentation inherited
59  public: virtual void SetPoints(
60  const std::vector<double> &_points) override;
61 
62  // Documentation inherited
63  public: virtual void ClearPoints() override;
64 
65  // Documentation inherited
66  public: virtual unsigned int PointCount() const override;
67 
68  // Documentation inherited
69  public: virtual std::vector<double> Points() const override;
70 
72  private: void Create();
73 
75  private: void ClearVisualData();
76 
77  // Documentation inherited
78  public: virtual void SetVisible(bool _visible) override;
79 
81  private: friend class Ogre2Scene;
82 
85  };
86  }
87  }
88 }
89 #endif
Ogre 2.x implementation of a Lidar Visual.
Definition: gz/rendering/ogre2/Ogre2LidarVisual.hh:37
Base implementation of a Lidar Visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:34
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:57