Gazebo Rendering

API Reference

6.6.3
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 IGNITION_RENDERING_LIGHTVISUAL_HH_
18 #define IGNITION_RENDERING_LIGHTVISUAL_HH_
19 
24 
25 namespace ignition
26 {
27  namespace rendering
28  {
29  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
30 
32  enum IGNITION_RENDERING_VISIBLE LightVisualType
33  {
35  LVT_EMPTY = 0,
36 
38  LVT_POINT = 1,
39 
42 
45  };
46 
49  class IGNITION_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
@ LVT_EMPTY
No type.
Definition: gz/rendering/LightVisual.hh:35
@ LVT_SPOT
Spot light.
Definition: gz/rendering/LightVisual.hh:44
virtual double InnerAngle()=0
Get inner angle.
virtual void SetType(LightVisualType _type)=0
set type of the light
virtual void SetInnerAngle(double _innerAngle)=0
Set inner angle for spot lights.
Represents a light visual.
Definition: gz/rendering/LightVisual.hh:49
virtual LightVisualType Type()=0
Get light visual type.
virtual void SetOuterAngle(double _outerAngle)=0
Set outer angle for spot lights.
Represents a visual node in a scene graph. A Visual is the only node that can have Geometry and other...
Definition: gz/rendering/Visual.hh:33
virtual double OuterAngle()=0
Get outer angle.
LightVisualType
Enum for LightVisual types.
Definition: gz/rendering/LightVisual.hh:32
@ LVT_DIRECTIONAL
Directional light.
Definition: gz/rendering/LightVisual.hh:41
virtual ~LightVisual()
Descructor.
Definition: gz/rendering/LightVisual.hh:53
@ LVT_POINT
Point light.
Definition: gz/rendering/LightVisual.hh:38