Gazebo Rendering

API Reference

3.7.2
gz/rendering/ogre2/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 GZ_RENDERING_OGRE2_OGRE2VISUAL_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2VISUAL_HH_
19 
23 
24 namespace ignition
25 {
26  namespace rendering
27  {
28  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
29  //
31  class IGNITION_RENDERING_OGRE2_VISIBLE Ogre2Visual :
32  public BaseVisual<Ogre2Node>
33  {
35  protected: Ogre2Visual();
36 
38  public: virtual ~Ogre2Visual();
39 
40  // Documentation inherited.
41  public: virtual void SetVisible(bool _visible) override;
42 
43  // Documentation inherited.
44  protected: virtual GeometryStorePtr Geometries() const override;
45 
46  // Documentation inherited.
47  protected: virtual bool AttachGeometry(GeometryPtr _geometry) override;
48 
49  // Documentation inherited.
50  protected: virtual bool DetachGeometry(GeometryPtr _geometry) override;
51 
53  protected: virtual void Init() override;
54 
57  private: Ogre2VisualPtr SharedThis();
58 
61 
63  private: friend class Ogre2Scene;
64  };
65  }
66  }
67 }
68 #endif
Ogre2.x implementation of the visual class.
Definition: gz/rendering/ogre2/Ogre2Visual.hh:31
STL class.
Definition: gz/rendering/base/BaseVisual.hh:35
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:41
Ogre2GeometryStorePtr geometries
Pointer to the attached geometries.
Definition: gz/rendering/ogre2/Ogre2Visual.hh:60