|
CARLA
|
#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 |
|
inlineprivate |
| Color carla::client::Light::GetColor | ( | ) | const |
Definition at line 18 of file Light.cpp.
References _id, and _light_manager.
|
inline |
| float carla::client::Light::GetIntensity | ( | ) | const |
Definition at line 24 of file Light.cpp.
References _id, and _light_manager.
| LightGroup carla::client::Light::GetLightGroup | ( | ) | const |
Definition at line 30 of file Light.cpp.
References _id, and _light_manager.
| LightState carla::client::Light::GetLightState | ( | ) | const |
Definition at line 36 of file Light.cpp.
References _id, and _light_manager.
|
inline |
| bool carla::client::Light::IsOff | ( | ) | const |
Definition at line 48 of file Light.cpp.
References _id, and _light_manager.
| bool carla::client::Light::IsOn | ( | ) | const |
Definition at line 42 of file Light.cpp.
References _id, and _light_manager.
| void carla::client::Light::SetColor | ( | Color | color | ) |
Definition at line 54 of file Light.cpp.
References _id, and _light_manager.
| void carla::client::Light::SetIntensity | ( | float | intensity | ) |
Definition at line 60 of file Light.cpp.
References _id, _light_manager, and intensity.
| void carla::client::Light::SetLightGroup | ( | LightGroup | group | ) |
Definition at line 66 of file Light.cpp.
References _id, and _light_manager.
| void carla::client::Light::SetLightState | ( | const LightState & | state | ) |
Definition at line 72 of file Light.cpp.
References _id, and _light_manager.
| void carla::client::Light::TurnOff | ( | ) |
Definition at line 84 of file Light.cpp.
References _id, and _light_manager.
| void carla::client::Light::TurnOn | ( | ) |
Definition at line 78 of file Light.cpp.
References _id, and _light_manager.
|
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().