Gazebo Rendering

API Reference

6.6.3
gz/rendering/ogre2/Ogre2WireBox.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 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 
18 #ifndef IGNITION_RENDERING_OGRE2_OGRE2WIREBOX_HH_
19 #define IGNITION_RENDERING_OGRE2_OGRE2WIREBOX_HH_
20 
21 #include <memory>
24 
25 namespace Ogre
26 {
27  class MovableObject;
28 }
29 
30 namespace ignition
31 {
32  namespace rendering
33  {
34  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
35  //
36  // Forward declaration
37  class Ogre2WireBoxPrivate;
38 
40  class IGNITION_RENDERING_OGRE2_VISIBLE Ogre2WireBox
41  : public BaseWireBox<Ogre2Geometry>
42  {
44  protected: Ogre2WireBox();
45 
47  public: virtual ~Ogre2WireBox();
48 
49  // Documentation inherited.
50  public: virtual void Init() override;
51 
52  // Documentation inherited.
53  public: virtual Ogre::MovableObject *OgreObject() const override;
54 
55  // Documentation inherited.
56  public: virtual void PreRender() override;
57 
58  // Documentation inherited.
59  public: virtual MaterialPtr Material() const override;
60 
61  // Documentation inherited.
62  public: virtual void SetMaterial(MaterialPtr _material, bool _unique)
63  override;
64 
67  protected: virtual void SetMaterialImpl(Ogre2MaterialPtr _material);
68 
70  private: void Create();
71 
73  private: friend class Ogre2Scene;
74 
76  private: std::unique_ptr<Ogre2WireBoxPrivate> dataPtr;
77  };
78  }
79  }
80 }
81 #endif
Definition: gz/rendering/ogre/OgreCamera.hh:27
STL class.
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:57
Definition: gz/rendering/ogre/OgreObject.hh:32
Ogre2 implementation of a wire box geometry.
Definition: gz/rendering/ogre2/Ogre2WireBox.hh:40
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
Base implementation of a wireframe box.
Definition: gz/rendering/base/BaseWireBox.hh:31