59 public:
virtual ~
Light();
64 public:
void Load(sdf::ElementPtr _sdf);
71 public:
void LoadFromMsg(ConstLightPtr &_msg);
75 public:
void LoadFromMsg(
const msgs::Light &_msg);
79 public:
void SetName(
const std::string &_name);
83 public: std::string GetName()
const;
87 public: std::string GetType()
const;
108 public:
virtual bool SetSelected(
bool _s);
111 public:
void ToggleShowVisual();
115 public:
void ShowVisual(
bool _s);
119 public:
bool GetVisible()
const;
123 public:
void SetLightType(
const std::string &_type);
154 public:
void SetAttenuation(
double _constant,
double _linear,
159 public:
void SetSpotInnerAngle(
const double &_angle);
163 public:
void SetSpotOuterAngle(
const double &_angle);
167 public:
void SetSpotFalloff(
const double &_value);
171 public:
void SetRange(
const double &_range);
175 public:
void SetCastShadows(
const bool &_cast);
179 public:
void FillMsg(msgs::Light &_msg)
const;
183 public:
void UpdateFromMsg(ConstLightPtr &_msg);
195 private:
void CreateVisual();
198 private:
void Update();
202 private:
void UpdateSDFFromMsg(
const msgs::Light &_msg);
205 private: Ogre::Light *light;
214 private: sdf::ElementPtr sdf;
220 private:
static unsigned int lightCounter;
Class for drawing lines that can change.
Definition: DynamicLines.hh:43
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:144
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:76
A quaternion class.
Definition: Quaternion.hh:45
Defines a color.
Definition: Color.hh:39
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:72
A light source.
Definition: Light.hh:52
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:100
virtual void OnPoseChange()
On pose change callback.
Definition: Light.hh:192
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48