Gazebo Rendering

API Reference

7.4.2
gz/rendering/LightVisual.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 #ifndef GZ_RENDERING_LIGHTVISUAL_HH_
18 #define GZ_RENDERING_LIGHTVISUAL_HH_
19 
20 #include "gz/rendering/config.hh"
21 #include "gz/rendering/Object.hh"
23 #include "gz/rendering/Visual.hh"
24 
25 namespace gz
26 {
27  namespace rendering
28  {
29  inline namespace GZ_RENDERING_VERSION_NAMESPACE {
30 
32  enum GZ_RENDERING_VISIBLE LightVisualType
33  {
35  LVT_EMPTY = 0,
36 
38  LVT_POINT = 1,
39 
42 
45  };
46 
49  class GZ_RENDERING_VISIBLE LightVisual :
50  public virtual Visual
51  {
53  public: virtual ~LightVisual();
54 
57  public: virtual void SetType(LightVisualType _type) = 0;
58 
61  public: virtual LightVisualType Type() = 0;
62 
65  public: virtual void SetInnerAngle(double _innerAngle) = 0;
66 
69  public: virtual double InnerAngle() = 0;
70 
73  public: virtual void SetOuterAngle(double _outerAngle) = 0;
74 
77  public: virtual double OuterAngle() = 0;
78  };
79  }
80  }
81 }
82 #endif