Ignition Rendering

API Reference

5.0.0
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 <vector>
21 
25 
26 namespace ignition
27 {
28  namespace rendering
29  {
30  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
31  //
32  class IGNITION_RENDERING_OGRE_VISIBLE OgreVisual :
33  public BaseVisual<OgreNode>
34  {
35  protected: OgreVisual();
36 
37  public: virtual ~OgreVisual();
38 
39  // Documentation inherited.
40  public: virtual void SetVisible(bool _visible) override;
41 
42  // Documentation inherited.
43  public: virtual void SetVisibilityFlags(uint32_t _flags) override;
44 
45  // Documentation inherited.
46  public: virtual ignition::math::AxisAlignedBox LocalBoundingBox()
47  const override;
48 
49  // Documentation inherited.
50  public: virtual ignition::math::AxisAlignedBox BoundingBox()
51  const override;
52 
59  private: virtual void BoundsHelper(
60  ignition::math::AxisAlignedBox &_box, bool _local,
61  const ignition::math::Pose3d &_pose) const;
62 
68  private: virtual void BoundsHelper(
69  ignition::math::AxisAlignedBox &_box, bool _local) const;
70 
71  protected: virtual GeometryStorePtr Geometries() const override;
72 
73  // Documentation inherited.
74  protected: virtual bool AttachGeometry(GeometryPtr _geometry) override;
75 
76  // Documentation inherited.
77  protected: virtual bool DetachGeometry(GeometryPtr _geometry) override;
78 
79  // Documentation inherited.
80  protected: virtual void Init() override;
81 
83 
84  private: OgreVisualPtr SharedThis();
85 
86  private: friend class OgreScene;
87  };
88  }
89  }
90 }
91 #endif
Definition: BaseVisual.hh:37
Definition: OgreScene.hh:39
Definition: OgreVisual.hh:32
OgreGeometryStorePtr geometries
Definition: OgreVisual.hh:82