#include <Light.h>
Public Member Functions | |
Color | GetColor () const |
LightId | GetId () const |
float | GetIntensity () const |
LightGroup | GetLightGroup () const |
LightState | GetLightState () const |
const geom::Location | GetLocation () const |
bool | IsOff () const |
bool | IsOn () const |
Light () | |
void | SetColor (Color color) |
void | SetIntensity (float intensity) |
void | SetLightGroup (LightGroup group) |
void | SetLightState (const LightState &state) |
void | TurnOff () |
void | TurnOn () |
Private Types | |
using | LightGroup = rpc::LightState::LightGroup |
Private Member Functions | |
Light (WeakPtr< LightManager > light_manager, geom::Location location, LightId id) | |
Private Attributes | |
LightId | _id |
WeakPtr< LightManager > | _light_manager |
geom::Location | _location |
Friends | |
class | LightManager |
|
private |
|
inline |
Definition at line 27 of file Light.h.
References GetColor().
|
inlineprivate |
Color carla::client::Light::GetColor | ( | ) | const |
Definition at line 18 of file Light.cpp.
References _id, and _light_manager.
Referenced by Light().
|
inline |
Definition at line 31 of file Light.h.
References _id, and GetIntensity().
float carla::client::Light::GetIntensity | ( | ) | const |
Definition at line 24 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetId().
LightGroup carla::client::Light::GetLightGroup | ( | ) | const |
Definition at line 30 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
LightState carla::client::Light::GetLightState | ( | ) | const |
Definition at line 36 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
|
inline |
Definition at line 37 of file Light.h.
References _location, GetLightGroup(), GetLightState(), IsOff(), IsOn(), SetColor(), SetIntensity(), SetLightGroup(), SetLightState(), TurnOff(), and TurnOn().
bool carla::client::Light::IsOff | ( | ) | const |
Definition at line 48 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
bool carla::client::Light::IsOn | ( | ) | const |
Definition at line 42 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
void carla::client::Light::SetColor | ( | Color | color | ) |
Definition at line 54 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
void carla::client::Light::SetIntensity | ( | float | intensity | ) |
Definition at line 60 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
void carla::client::Light::SetLightGroup | ( | LightGroup | group | ) |
Definition at line 66 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
void carla::client::Light::SetLightState | ( | const LightState & | state | ) |
Definition at line 72 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
void carla::client::Light::TurnOff | ( | ) |
Definition at line 84 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
void carla::client::Light::TurnOn | ( | ) |
Definition at line 78 of file Light.cpp.
References _id, and _light_manager.
Referenced by GetLocation().
|
friend |
|
private |
Definition at line 75 of file Light.h.
Referenced by GetColor(), GetId(), GetIntensity(), GetLightGroup(), GetLightState(), IsOff(), IsOn(), SetColor(), SetIntensity(), SetLightGroup(), SetLightState(), TurnOff(), and TurnOn().
|
private |
Definition at line 72 of file Light.h.
Referenced by GetColor(), GetIntensity(), GetLightGroup(), GetLightState(), IsOff(), IsOn(), SetColor(), SetIntensity(), SetLightGroup(), SetLightState(), TurnOff(), and TurnOn().
|
private |
Definition at line 73 of file Light.h.
Referenced by GetLocation().