Gazebo Rendering

API Reference

3.7.2
gz/rendering/ogre2/Ogre2Marker.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 GZ_RENDERING_OGRE2_OGREMARKER_HH_
19 #define GZ_RENDERING_OGRE2_OGREMARKER_HH_
20 
21 #include <memory>
25 
26 namespace ignition
27 {
28  namespace rendering
29  {
30  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
31  //
32  // Forward declaration
33  class Ogre2MarkerPrivate;
34 
36  class IGNITION_RENDERING_OGRE2_VISIBLE Ogre2Marker
37  : public BaseMarker<Ogre2Geometry>
38  {
40  protected: Ogre2Marker();
41 
43  public: virtual ~Ogre2Marker();
44 
45  // Documentation inherited.
46  public: virtual void Init() override;
47 
48  // Documentation inherited.
49  public: virtual void PreRender() override;
50 
51  // Documentation inherited.
52  public: virtual void Destroy() override;
53 
54  // Documentation inherited.
55  public: virtual Ogre::MovableObject *OgreObject() const override;
56 
57  // Documentation inherited.
58  public: virtual MaterialPtr Material() const override;
59 
60  // Documentation inherited.
61  public: virtual void SetMaterial(
62  MaterialPtr _material, bool _unique) override;
63 
64  // Documentation inherited
65  public: virtual void SetPoint(unsigned int _index,
66  const gz::math::Vector3d &_value) override;
67 
68  // Documentation inherited
69  public: virtual void AddPoint(const gz::math::Vector3d &_pt,
70  const gz::math::Color &_color) override;
71 
72  // Documentation inherited
73  public: virtual void ClearPoints() override;
74 
75  // Documentation inherited
76  public: virtual void SetType(const MarkerType _markerType) override;
77 
78  // Documentation inherited
79  public: virtual MarkerType Type() const override;
80 
82  private: void Create();
83 
85  private: friend class Ogre2Scene;
86 
88  private: std::unique_ptr<Ogre2MarkerPrivate> dataPtr;
89  };
90  }
91  }
92 }
93 #endif
STL class.
Ogre 2.x implementation of a marker geometry.
Definition: gz/rendering/ogre2/Ogre2Marker.hh:36
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:41
Definition: gz/rendering/ogre/OgreObject.hh:32
Base implementation of a Marker geometry.
Definition: gz/rendering/base/BaseMarker.hh:33
MarkerType
Enum for marker types.
Definition: gz/rendering/Marker.hh:35
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47