Gazebo Rendering

API Reference

9.0.0~pre2
OgreLightVisual.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 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 GZ_RENDERING_OGRE_OGRELIGHTVISUAL_HH_
19#define GZ_RENDERING_OGRE_OGRELIGHTVISUAL_HH_
20
21#include <memory>
22
27
28namespace Ogre
29{
30 class MovableObject;
31}
32
33namespace gz
34{
35 namespace rendering
36 {
37 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
38
39 // Forward declaration
40 class OgreLightVisualPrivate;
41
42 class GZ_RENDERING_OGRE_VISIBLE OgreLightVisual :
43 public BaseLightVisual<OgreVisual>
44 {
46 protected: OgreLightVisual();
47
49 public: virtual ~OgreLightVisual();
50
51 // Documentation inherited.
52 public: virtual void Init() override;
53
54 // Documentation inherited.
55 public: virtual void PreRender() override;
56
57 // Documentation inherited.
58 public: Ogre::MovableObject *OgreObject() const;
59
61 public: void CreateVisual();
62
63 // Documentation inherited.
64 public: virtual MaterialPtr Material() const override;
65
66 // Documentation inherited.
67 public: virtual void SetMaterial(
68 MaterialPtr _material, bool _unique) override;
69
72 protected: virtual void SetMaterialImpl(OgreMaterialPtr _material);
73
74 private: friend class OgreScene;
75
78 };
79 }
80 }
81}
82#endif