CARLA
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
carla::rpc::VehicleLightState Class Reference

Defines the physical appearance of a vehicle whitch is obtained by the sensors. More...

#include <VehicleLightState.h>

Public Types

using flag_type = uint32_t
 
enum class  LightState : flag_type {
  None = 0 , Position = 0x1 , LowBeam = 0x1 << 1 , HighBeam = 0x1 << 2 ,
  Brake = 0x1 << 3 , RightBlinker = 0x1 << 4 , LeftBlinker = 0x1 << 5 , Reverse = 0x1 << 6 ,
  Fog = 0x1 << 7 , Interior = 0x1 << 8 , Special1 = 0x1 << 9 , Special2 = 0x1 << 10 ,
  All = 0xFFFFFFFF
}
 Can be used as flags. More...
 

Public Member Functions

flag_type GetLightStateAsValue () const
 Returns the current light state as a value type.
 
LightState GetLightStateEnum () const
 Returns the current light state as an enum type.
 
 operator FVehicleLightState () const
 
 VehicleLightState ()=default
 
 VehicleLightState (const FVehicleLightState &InLightState)
 
 VehicleLightState (flag_type light_state)
 
 VehicleLightState (LightState light_state)
 

Public Attributes

flag_type light_state = static_cast<flag_type>(LightState::None)
 Lights state flag, all turned off by default.
 

Detailed Description

Defines the physical appearance of a vehicle whitch is obtained by the sensors.

Definition at line 26 of file LibCarla/source/carla/rpc/VehicleLightState.h.

Member Typedef Documentation

◆ flag_type

Member Enumeration Documentation

◆ LightState

Can be used as flags.

Enumerator
None 
Position 
LowBeam 
HighBeam 
Brake 
RightBlinker 
LeftBlinker 
Reverse 
Fog 
Interior 
Special1 
Special2 
All 

Definition at line 32 of file LibCarla/source/carla/rpc/VehicleLightState.h.

Constructor & Destructor Documentation

◆ VehicleLightState() [1/4]

carla::rpc::VehicleLightState::VehicleLightState ( )
default

◆ VehicleLightState() [2/4]

carla::rpc::VehicleLightState::VehicleLightState ( LightState  light_state)
inline

◆ VehicleLightState() [3/4]

carla::rpc::VehicleLightState::VehicleLightState ( flag_type  light_state)
inline

◆ VehicleLightState() [4/4]

carla::rpc::VehicleLightState::VehicleLightState ( const FVehicleLightState &  InLightState)
inline

Member Function Documentation

◆ GetLightStateAsValue()

flag_type carla::rpc::VehicleLightState::GetLightStateAsValue ( ) const
inline

Returns the current light state as a value type.

Definition at line 97 of file LibCarla/source/carla/rpc/VehicleLightState.h.

References light_state.

◆ GetLightStateEnum()

LightState carla::rpc::VehicleLightState::GetLightStateEnum ( ) const
inline

Returns the current light state as an enum type.

Definition at line 92 of file LibCarla/source/carla/rpc/VehicleLightState.h.

References light_state.

◆ operator FVehicleLightState()

carla::rpc::VehicleLightState::operator FVehicleLightState ( ) const
inline

Member Data Documentation

◆ light_state

flag_type carla::rpc::VehicleLightState::light_state = static_cast<flag_type>(LightState::None)

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