Ignition Rendering

API Reference

6.3.1
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 
20 #include "ignition/rendering/config.hh"
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
No type.
Definition: LightVisual.hh:35
Represents a light visual.
Definition: LightVisual.hh:49
Spot light.
Definition: LightVisual.hh:44
Directional light.
Definition: LightVisual.hh:41
virtual ~LightVisual()
Descructor.
Definition: LightVisual.hh:53
LightVisualType
Enum for LightVisual types.
Definition: LightVisual.hh:32
Represents a visual node in a scene graph. A Visual is the only node that can have Geometry and other...
Definition: Visual.hh:33
Point light.
Definition: LightVisual.hh:38