|
CARLA
|
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. | |
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.
| using carla::rpc::VehicleLightState::flag_type = uint32_t |
Definition at line 29 of file LibCarla/source/carla/rpc/VehicleLightState.h.
|
strong |
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.
|
default |
|
inline |
Definition at line 50 of file LibCarla/source/carla/rpc/VehicleLightState.h.
|
inline |
Definition at line 53 of file LibCarla/source/carla/rpc/VehicleLightState.h.
|
inline |
Definition at line 58 of file LibCarla/source/carla/rpc/VehicleLightState.h.
References Brake, FVehicleLightState::Brake, Fog, FVehicleLightState::Fog, HighBeam, FVehicleLightState::HighBeam, Interior, FVehicleLightState::Interior, LeftBlinker, FVehicleLightState::LeftBlinker, light_state, LowBeam, FVehicleLightState::LowBeam, None, Position, FVehicleLightState::Position, Reverse, FVehicleLightState::Reverse, RightBlinker, FVehicleLightState::RightBlinker, SET_FLAG, Special1, FVehicleLightState::Special1, Special2, and FVehicleLightState::Special2.
|
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.
|
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.
|
inline |
Definition at line 73 of file LibCarla/source/carla/rpc/VehicleLightState.h.
References Brake, FVehicleLightState::Brake, FLAG_ENABLED, Fog, FVehicleLightState::Fog, HighBeam, FVehicleLightState::HighBeam, Interior, FVehicleLightState::Interior, LeftBlinker, FVehicleLightState::LeftBlinker, light_state, LowBeam, FVehicleLightState::LowBeam, Position, FVehicleLightState::Position, Reverse, FVehicleLightState::Reverse, RightBlinker, FVehicleLightState::RightBlinker, Special1, FVehicleLightState::Special1, Special2, and FVehicleLightState::Special2.
| flag_type carla::rpc::VehicleLightState::light_state = static_cast<flag_type>(LightState::None) |
Lights state flag, all turned off by default.
Definition at line 102 of file LibCarla/source/carla/rpc/VehicleLightState.h.
Referenced by FFrameData::AddVehicleLight(), ACarlaRecorder::AddVehicleLight(), GetLightStateAsValue(), GetLightStateEnum(), operator FVehicleLightState(), and VehicleLightState().