Gazebo Rendering

API Reference

6.6.3
gz/rendering/ogre/OgreVisual.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 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_OGRE_OGREVISUAL_HH_
18 #define GZ_RENDERING_OGRE_OGREVISUAL_HH_
19 
20 #include <memory>
21 
25 
26 namespace ignition
27 {
28  namespace rendering
29  {
30  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
31  //
32  // forward declaration
33  class OgreVisualPrivate;
34 
35  class IGNITION_RENDERING_OGRE_VISIBLE OgreVisual :
36  public BaseVisual<OgreNode>
37  {
38  protected: OgreVisual();
39 
40  public: virtual ~OgreVisual();
41 
42  // Documentation inherited.
43  public: virtual void SetWireframe(bool _show) override;
44 
45  // Documentation inherited.
46  public: virtual bool Wireframe() const override;
47 
48  // Documentation inherited.
49  public: virtual void SetVisible(bool _visible) override;
50 
51  // Documentation inherited.
52  public: virtual void SetVisibilityFlags(uint32_t _flags) override;
53 
54  // Documentation inherited.
55  public: virtual ignition::math::AxisAlignedBox LocalBoundingBox()
56  const override;
57 
58  // Documentation inherited.
60  const override;
61 
68  private: virtual void BoundsHelper(
69  ignition::math::AxisAlignedBox &_box, bool _local,
70  const ignition::math::Pose3d &_pose) const;
71 
77  private: virtual void BoundsHelper(
78  ignition::math::AxisAlignedBox &_box, bool _local) const;
79 
80  protected: virtual GeometryStorePtr Geometries() const override;
81 
82  // Documentation inherited.
83  protected: virtual bool AttachGeometry(GeometryPtr _geometry) override;
84 
85  // Documentation inherited.
86  protected: virtual bool DetachGeometry(GeometryPtr _geometry) override;
87 
88  // Documentation inherited.
89  protected: virtual void Init() override;
90 
92 
93  private: OgreVisualPtr SharedThis();
94 
96  private: std::unique_ptr<OgreVisualPrivate> dataPtr;
97 
98  private: friend class OgreScene;
99  };
100  }
101  }
102 }
103 #endif
STL class.
Definition: gz/rendering/base/BaseVisual.hh:37
Definition: gz/rendering/ogre/OgreScene.hh:39
2D or 3D Bounding box. It stores the position / orientation / size info of the box and its label
Definition: gz/rendering/BoundingBox.hh:41
Definition: gz/rendering/ogre/OgreVisual.hh:35
OgreGeometryStorePtr geometries
Definition: gz/rendering/ogre/OgreVisual.hh:91