Ignition Rendering

API Reference

5.1.0
Ogre2Visual.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 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_OGRE2_OGRE2VISUAL_HH_
18 #define IGNITION_RENDERING_OGRE2_OGRE2VISUAL_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 Ogre2VisualPrivate;
35 
37  class IGNITION_RENDERING_OGRE2_VISIBLE Ogre2Visual :
38  public BaseVisual<Ogre2Node>
39  {
41  protected: Ogre2Visual();
42 
44  public: virtual ~Ogre2Visual();
45 
46  // Documentation inherited.
47  public: virtual void SetVisible(bool _visible) override;
48 
49  // Documentation inherited.
50  public: virtual void SetVisibilityFlags(uint32_t _flags) override;
51 
52  // Documentation inherited.
53  public: virtual ignition::math::AxisAlignedBox BoundingBox()
54  const override;
55 
56  // Documentation inherited.
57  public: virtual ignition::math::AxisAlignedBox LocalBoundingBox()
58  const override;
59 
66  private: virtual void BoundsHelper(
67  ignition::math::AxisAlignedBox &_box, bool _local,
68  const ignition::math::Pose3d &_pose) const;
69 
75  private: virtual void BoundsHelper(
76  ignition::math::AxisAlignedBox &_box, bool _local) const;
77 
78  // Documentation inherited.
79  protected: virtual GeometryStorePtr Geometries() const override;
80 
81  // Documentation inherited.
82  protected: virtual bool AttachGeometry(GeometryPtr _geometry) override;
83 
84  // Documentation inherited.
85  protected: virtual bool DetachGeometry(GeometryPtr _geometry) override;
86 
88  protected: virtual void Init() override;
89 
92  private: Ogre2VisualPtr SharedThis();
93 
96 
98  private: std::unique_ptr<Ogre2VisualPrivate> dataPtr;
99 
101  private: friend class Ogre2Scene;
102  };
103  }
104  }
105 }
106 #endif
Ogre2.x implementation of the visual class.
Definition: Ogre2Visual.hh:37
Ogre2GeometryStorePtr geometries
Pointer to the attached geometries.
Definition: Ogre2Visual.hh:95
Ogre2.x implementation of the scene class.
Definition: Ogre2Scene.hh:56
Definition: BaseVisual.hh:37