LightMaker.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2016 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 _GAZEBO_LIGHTMAKER_HH_
19 #define _GAZEBO_LIGHTMAKER_HH_
20 
21 #include <string>
22 
23 #include "gazebo/msgs/msgs.hh"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
30  class LightMakerPrivate;
31 
33  class GZ_GUI_VISIBLE LightMaker : public EntityMaker
34  {
36  public: LightMaker();
37 
38  // Documentation inherited
39  public: void Start();
40 
41  // Documentation inherited
42  public: void Stop();
43 
47  public: bool InitFromLight(const std::string &_lightName);
48 
49  // Documentation inherited
50  public: virtual ignition::math::Vector3d EntityPosition() const;
51 
52  // Documentation inherited
53  protected: virtual void SetEntityPosition(
54  const ignition::math::Vector3d &_pos);
55 
58  protected: virtual bool Init();
59 
60  // Documentation inherited
61  protected: virtual void CreateTheEntity();
62  };
63 
65  class GZ_GUI_VISIBLE PointLightMaker : public LightMaker
66  {
68  public: PointLightMaker();
69  };
70 
72  class GZ_GUI_VISIBLE SpotLightMaker : public LightMaker
73  {
75  public: SpotLightMaker();
76  };
77 
79  class GZ_GUI_VISIBLE DirectionalLightMaker : public LightMaker
80  {
82  public: DirectionalLightMaker();
83  };
84  }
85 }
86 #endif
Forward declarations for the common classes.
Definition: Animation.hh:33
Used to insert a new light into the scene.
Definition: LightMaker.hh:33
Used to insert a new spot light into the scene.
Definition: LightMaker.hh:72
Used to insert a new point light into the scene.
Definition: LightMaker.hh:65
To make an entity, base class.
Definition: EntityMaker.hh:37
Used to insert a new directional light into the scene.
Definition: LightMaker.hh:79
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.