CARLA
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
carla::client::Light Class Reference

#include <Light.h>

+ Collaboration diagram for carla::client::Light:

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.

References GetColor().

+ Here is the call graph for this function:

◆ 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.

Member Function Documentation

◆ GetColor()

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

Definition at line 18 of file Light.cpp.

References _id, and _light_manager.

Referenced by Light().

+ Here is the caller graph for this function:

◆ GetId()

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

Definition at line 31 of file Light.h.

References _id, and GetIntensity().

+ Here is the call graph for this function:

◆ GetIntensity()

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

Definition at line 24 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetId().

+ Here is the caller graph for this function:

◆ GetLightGroup()

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

Definition at line 30 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ GetLightState()

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

Definition at line 36 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ GetLocation()

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

Definition at line 37 of file Light.h.

References _location, GetLightGroup(), GetLightState(), IsOff(), IsOn(), SetColor(), SetIntensity(), SetLightGroup(), SetLightState(), TurnOff(), and TurnOn().

+ Here is the call graph for this function:

◆ IsOff()

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

Definition at line 48 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ IsOn()

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

Definition at line 42 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ SetColor()

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

Definition at line 54 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ SetIntensity()

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

Definition at line 60 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ SetLightGroup()

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

Definition at line 66 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ SetLightState()

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

Definition at line 72 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ TurnOff()

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

Definition at line 84 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

◆ TurnOn()

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

Definition at line 78 of file Light.cpp.

References _id, and _light_manager.

Referenced by GetLocation().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ LightManager

friend class LightManager
friend

Definition at line 63 of file Light.h.

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().


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