Gazebo Rendering

API Reference

8.2.1
Ogre2Geometry.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 GZ_RENDERING_OGRE2_OGRE2GEOMETRY_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2GEOMETRY_HH_
19 
22 
23 namespace Ogre
24 {
25  class MovableObject;
26 }
27 
28 namespace gz
29 {
30  namespace rendering
31  {
32  inline namespace GZ_RENDERING_VERSION_NAMESPACE {
33  //
35  class GZ_RENDERING_OGRE2_VISIBLE Ogre2Geometry :
36  public BaseGeometry<Ogre2Object>
37  {
39  protected: Ogre2Geometry();
40 
42  public: virtual ~Ogre2Geometry();
43 
44  // Documentation inherited.
45  public: virtual bool HasParent() const override;
46 
47  // Documentation inherited.
48  public: virtual VisualPtr Parent() const override;
49 
52  public: virtual Ogre::MovableObject *OgreObject() const = 0;
53 
56  protected: virtual void SetParent(Ogre2VisualPtr _parent);
57 
59  protected: Ogre2VisualPtr parent;
60 
63  private: friend class Ogre2Visual;
64  };
65  }
66  }
67 }
68 #endif