Wrapper around an ogre light source. More...
#include <Light.hh>
Public Member Functions | |
| Light (Scene *scene) | |
| Constructor. | |
| virtual | ~Light () |
| Destructor. | |
| void | Load (sdf::ElementPtr &_sdf) |
| Load the light using a set of SDF parameters. | |
| void | Load () |
| Load the light using default parameters. | |
| void | LoadFromMsg (ConstLightPtr &msg) |
| Load from a light message. | |
| void | SetName (const std::string &name) |
| Set the name of the visual. | |
| std::string | GetName () const |
| Get the name of the visual. | |
| void | SetPosition (const math::Vector3 &p) |
| Set the position of the light. | |
| virtual bool | SetSelected (bool s) |
| Set whether this entity has been selected by the user through the gui. | |
| void | ToggleShowVisual () |
| void | ShowVisual (bool s) |
| Set whether to show the visual. | |
| void | SetLightType (const std::string &type) |
| Set the light type. | |
| void | SetDiffuseColor (const common::Color &color) |
| Set the diffuse. | |
| void | SetSpecularColor (const common::Color &color) |
| Set the specular color. | |
| void | SetDirection (const math::Vector3 &dir) |
| Set the direction. | |
| void | SetAttenuation (double constant, double linear, double quadratic) |
| Set the attenuation. | |
| void | SetSpotInnerAngle (const double &angle) |
| Set the spot light inner angle. | |
| void | SetSpotOuterAngle (const double &angle) |
| Set the spot light outter angle. | |
| void | SetSpotFalloff (const double &angle) |
| Set the spot light falloff. | |
| void | SetRange (const double &range) |
| Set the range. | |
| void | SetCastShadows (const bool &cast) |
| Set cast shadowsj. | |
Protected Member Functions | |
| virtual void | OnPoseChange () |
Wrapper around an ogre light source.
1.7.5.1