60 virtual void changedVisibility()
override;
63 {
return this->light_; }
66 { this->type_ = type; this->updateType(); }
68 {
return this->type_; }
71 { this->diffuse_ =
colour; this->updateDiffuseColour(); }
73 {
return this->diffuse_; }
76 { this->specular_ =
colour; this->updateSpecularColour(); }
78 {
return this->specular_; }
81 { this->setDiffuseColour(colour); this->setSpecularColour(colour); }
117 { this->attenuation_ = attenuation; this->updateAttenuation(); }
119 {
return this->attenuation_; }
130 { this->spotlightRange_ = spotlightRange; this->updateSpotlightRange(); }
132 {
return this->spotlightRange_; }
135 void registerVariables();
140 void updateDiffuseColour();
141 void updateSpecularColour();
142 void updateAttenuation();
143 void updateSpotlightRange();
Ogre::Light * getLight()
Definition: Light.h:62
Definition: ActionpointController.h:68
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
Vector4 attenuation_
Definition: Light.h:149
void setSpecularColour(const ColourValue &colour)
Definition: Light.h:75
void setSpotlightRange(const Vector3 &spotlightRange)
Sets the range of a spotlight, i.e.
Definition: Light.h:129
::std::string string
Definition: gtest-port.h:756
void setType(Light::Type type)
Definition: Light.h:65
Type
Definition: Light.h:44
void setDiffuseColour(const ColourValue &colour)
Definition: Light.h:70
Light::Type getType() const
Definition: Light.h:67
ColourValue diffuse_
Definition: Light.h:147
Ogre::ColourValue colour(const btVector3 &color, btScalar alpha)
Definition: OgreBulletUtils.h:41
const ColourValue & getDiffuseColour() const
Definition: Light.h:72
Ogre::Light * light_
Definition: Light.h:145
xmlelement
Definition: Super.h:519
ColourValue specular_
Definition: Light.h:148
Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the ...
virtual void setTeamColour(const ColourValue &colour) override
Definition: Light.h:80
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
const ColourValue & getSpecularColour() const
Definition: Light.h:77
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the orxonox library ...
Definition: TeamColourable.h:39
Light::Type type_
Definition: Light.h:146
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
Vector3 spotlightRange_
Definition: Light.h:150
void setAttenuation(const Vector4 &attenuation)
Sets the attenuation parameters of the light source i.e.
Definition: Light.h:116
const Vector4 & getAttenuation() const
Definition: Light.h:118
const Vector3 & getSpotlightRange() const
Definition: Light.h:131