Ignition Rendering

API Reference

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