Go to the documentation of this file.
18 #ifndef GAZEBO_GUI_LIGHTMAKER_HH_
19 #define GAZEBO_GUI_LIGHTMAKER_HH_
23 #include <ignition/math/Vector3.hh>
25 #include "gazebo/msgs/light.pb.h"
32 class LightMakerPrivate;
52 public:
bool InitFromLight(
const std::string &_lightName);
55 public:
virtual ignition::math::Vector3d EntityPosition()
const;
58 protected:
virtual void SetEntityPosition(
59 const ignition::math::Vector3d &_pos);
63 protected:
virtual bool Init();
66 protected:
virtual void CreateTheEntity();
69 protected: msgs::Light
msg;
76 private: std::unique_ptr<LightMakerPrivate> dataPtr;
std::string lightTypename
Type of the light being spawned.
Definition: LightMaker.hh:72
virtual bool Init()
Initialize the light maker.
To make an entity, base class.
Definition: EntityMaker.hh:39
Used to insert a new light into the scene.
Definition: LightMaker.hh:35
Forward declarations for the common classes.
Definition: Animation.hh:26
virtual void CreateTheEntity()
Creates the entity.
void Start()
Start the maker.
SpotLightMaker()
Constructor.
virtual ignition::math::Vector3d EntityPosition() const
Returns the entity world position.
Used to insert a new directional light into the scene.
Definition: LightMaker.hh:94
Used to insert a new spot light into the scene.
Definition: LightMaker.hh:87
void Stop()
Stop the maker.
DirectionalLightMaker()
Constructor.
Used to insert a new point light into the scene.
Definition: LightMaker.hh:80
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
virtual void SetEntityPosition(const ignition::math::Vector3d &_pos)
Sets the entity world position.
bool InitFromLight(const std::string &_lightName)
Initialize the light maker from an existing light in the scene.
virtual ~LightMaker()
Destructor.
msgs::Light msg
Message that holds all the light information.
Definition: LightMaker.hh:69
PointLightMaker()
Constructor.