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;
100 public:
virtual bool SetSelected(
bool _s);
103 public:
void ToggleShowVisual();
107 public:
void ShowVisual(
bool _s);
111 public:
bool GetVisible()
const;
115 public:
void SetLightType(
const std::string &_type);
146 public:
void SetAttenuation(
double _constant,
double _linear,
151 public:
void SetSpotInnerAngle(
const double &_angle);
155 public:
void SetSpotOuterAngle(
const double &_angle);
159 public:
void SetSpotFalloff(
const double &_value);
163 public:
void SetRange(
const double &_range);
167 public:
void SetCastShadows(
const bool &_cast);
171 public:
void FillMsg(msgs::Light &_msg)
const;
175 public:
void UpdateFromMsg(ConstLightPtr &_msg);
181 private:
void CreateVisual();
184 private:
void Update();
188 private:
void UpdateSDFFromMsg(
const msgs::Light &_msg);
191 private: Ogre::Light *light;
200 private: sdf::ElementPtr sdf;
206 private:
static unsigned int lightCounter;