CARLA
Loading...
Searching...
No Matches
carla::client::Light Class Reference

#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

Detailed Description

Definition at line 21 of file Light.h.

Member Typedef Documentation

◆ LightGroup

Definition at line 23 of file Light.h.

Constructor & Destructor Documentation

◆ Light() [1/2]

carla::client::Light::Light ( )
inline

Definition at line 27 of file Light.h.

Referenced by carla::client::LightManager::QueryLightsStateToServer().

◆ Light() [2/2]

carla::client::Light::Light ( WeakPtr< LightManager > light_manager,
geom::Location location,
LightId id )
inlineprivate

Definition at line 65 of file Light.h.

References _id, _light_manager, and _location.

Member Function Documentation

◆ GetColor()

Color carla::client::Light::GetColor ( ) const

Definition at line 18 of file Light.cpp.

References _id, and _light_manager.

◆ GetId()

LightId carla::client::Light::GetId ( ) const
inline

Definition at line 31 of file Light.h.

References _id.

◆ GetIntensity()

float carla::client::Light::GetIntensity ( ) const

Definition at line 24 of file Light.cpp.

References _id, and _light_manager.

◆ GetLightGroup()

LightGroup carla::client::Light::GetLightGroup ( ) const

Definition at line 30 of file Light.cpp.

References _id, and _light_manager.

◆ GetLightState()

LightState carla::client::Light::GetLightState ( ) const

Definition at line 36 of file Light.cpp.

References _id, and _light_manager.

◆ GetLocation()

const geom::Location carla::client::Light::GetLocation ( ) const
inline

Definition at line 37 of file Light.h.

References _location.

◆ IsOff()

bool carla::client::Light::IsOff ( ) const

Definition at line 48 of file Light.cpp.

References _id, and _light_manager.

◆ IsOn()

bool carla::client::Light::IsOn ( ) const

Definition at line 42 of file Light.cpp.

References _id, and _light_manager.

◆ SetColor()

void carla::client::Light::SetColor ( Color color)

Definition at line 54 of file Light.cpp.

References _id, and _light_manager.

◆ SetIntensity()

void carla::client::Light::SetIntensity ( float intensity)

Definition at line 60 of file Light.cpp.

References _id, and _light_manager.

◆ SetLightGroup()

void carla::client::Light::SetLightGroup ( LightGroup group)

Definition at line 66 of file Light.cpp.

References _id, and _light_manager.

◆ SetLightState()

void carla::client::Light::SetLightState ( const LightState & state)

Definition at line 72 of file Light.cpp.

References _id, and _light_manager.

◆ TurnOff()

void carla::client::Light::TurnOff ( )

Definition at line 84 of file Light.cpp.

References _id, and _light_manager.

◆ TurnOn()

void carla::client::Light::TurnOn ( )

Definition at line 78 of file Light.cpp.

References _id, and _light_manager.

◆ LightManager

friend class LightManager
friend

Definition at line 63 of file Light.h.

References LightManager.

Referenced by LightManager.

Member Data Documentation

◆ _id

LightId carla::client::Light::_id
private

◆ _light_manager

WeakPtr<LightManager> carla::client::Light::_light_manager
private

◆ _location

geom::Location carla::client::Light::_location
private

Definition at line 73 of file Light.h.

Referenced by GetLocation(), and Light().


The documentation for this class was generated from the following files: