53 public boost::enable_shared_from_this<Light>
60 public:
virtual ~
Light();
65 public:
void Load(sdf::ElementPtr _sdf);
72 public:
void LoadFromMsg(ConstLightPtr &_msg);
76 public:
void LoadFromMsg(
const msgs::Light &_msg);
80 public:
void SetName(
const std::string &_name);
84 public: std::string GetName()
const;
88 public: std::string GetType()
const;
109 public:
virtual bool SetSelected(
bool _s);
112 public:
void ToggleShowVisual();
116 public:
void ShowVisual(
bool _s);
120 public:
bool GetVisible()
const;
124 public:
void SetLightType(
const std::string &_type);
155 public:
void SetAttenuation(
double _constant,
double _linear,
160 public:
void SetSpotInnerAngle(
const double &_angle);
164 public:
void SetSpotOuterAngle(
const double &_angle);
168 public:
void SetSpotFalloff(
const double &_value);
172 public:
void SetRange(
const double &_range);
176 public:
void SetCastShadows(
const bool &_cast);
180 public:
void FillMsg(msgs::Light &_msg)
const;
184 public:
void UpdateFromMsg(ConstLightPtr &_msg);
196 private:
void CreateVisual();
199 private:
void Update();
203 private:
void UpdateSDFFromMsg(
const msgs::Light &_msg);
206 private: Ogre::Light *light;
215 private: sdf::ElementPtr sdf;
221 private:
static unsigned int lightCounter;
Class for drawing lines that can change.
Definition: DynamicLines.hh:43
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:147
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:83
#define GZ_RENDERING_VISIBLE
Definition: system.hh:241
A quaternion class.
Definition: Quaternion.hh:42
Defines a color.
Definition: Color.hh:36
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:79
A light source.
Definition: Light.hh:52
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:107
virtual void OnPoseChange()
On pose change callback.
Definition: Light.hh:193