|
CARLA
|
#include <TrafficSignBase.h>
Public Member Functions | |
| ATrafficSignBase (const FObjectInitializer &ObjectInitializer) | |
| int32 | GetSpeedLimitKmh () const |
| km/h this sign limits to, -1 when it is not a speed-limit sign. | |
| ETrafficSignState | GetTrafficSignState () const |
| UBoxComponent * | GetTriggerVolume () const |
| TArray< UBoxComponent * > | GetTriggerVolumes () const |
| void | SetSpeedLimitKmh (int32 Kmh) |
| Make this a speed-limit sign for Kmh: picks the dedicated state when one exists, the custom state (value kept in SpeedLimitKmh) otherwise. | |
| void | SetTrafficSignState (ETrafficSignState State) |
Public Attributes | |
| bool | bGeneratedFromOpenDRIVE = false |
| True for signs/lights generated from the OpenDRIVE map. | |
| bool | bPositioned = false |
| True once this sign has been snapped to the ground, to avoid adjusting it more than once. | |
Private Attributes | |
| int32 | SpeedLimitKmh = 0 |
| Limit in km/h for the custom SpeedLimit state (ignored for the dedicated states). | |
| ETrafficSignState | TrafficSignState = ETrafficSignState::UNKNOWN |
Definition at line 105 of file TrafficSignBase.h.
| ATrafficSignBase::ATrafficSignBase | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 11 of file TrafficSignBase.cpp.
|
inline |
km/h this sign limits to, -1 when it is not a speed-limit sign.
Dedicated states answer from the enum; the custom SpeedLimit state answers from SpeedLimitKmh.
Definition at line 128 of file TrafficSignBase.h.
References GetSpeedLimitKmh(), KmhForSpeedLimitState(), SpeedLimitKmh, and TrafficSignState.
Referenced by GetSpeedLimitKmh(), MatchSignalAndActor(), and UCarlaEpisode_GetTrafficSignId().
|
inline |
Definition at line 114 of file TrafficSignBase.h.
References GetTrafficSignState(), and TrafficSignState.
Referenced by GetTrafficSignState(), MatchSignalAndActor(), AGeoTrafficSign::PostInitializeComponents(), and UCarlaEpisode_GetTrafficSignId().
| UBoxComponent * ATrafficSignBase::GetTriggerVolume | ( | ) | const |
References GetTriggerVolume(), and GetTriggerVolumes().
Referenced by GetTriggerVolume(), and GetTriggerVolumes().
| TArray< UBoxComponent * > ATrafficSignBase::GetTriggerVolumes | ( | ) | const |
Definition at line 20 of file TrafficSignBase.cpp.
References GetTriggerVolume().
Referenced by ACarlaRecorder::AddTriggerVolume(), FFrameData::AddTriggerVolume(), TrafficSignHeightUtils::AdjustSignToGround(), and GetTriggerVolume().
|
inline |
Make this a speed-limit sign for Kmh: picks the dedicated state when one exists, the custom state (value kept in SpeedLimitKmh) otherwise.
Definition at line 140 of file TrafficSignBase.h.
References SetSpeedLimitKmh(), SpeedLimitKmh, SpeedLimitStateForKmh(), and TrafficSignState.
Referenced by AGeoTrafficSign::ConfigureForSignal(), and SetSpeedLimitKmh().
|
inline |
Definition at line 120 of file TrafficSignBase.h.
References SetTrafficSignState(), State, and TrafficSignState.
Referenced by ATrafficLightBase::ATrafficLightBase(), AGeoTrafficSign::ConfigureForSignal(), and SetTrafficSignState().
| bool ATrafficSignBase::bGeneratedFromOpenDRIVE = false |
True for signs/lights generated from the OpenDRIVE map.
Height adjustment only moves generated actors, never signs placed by hand in the level.
Definition at line 159 of file TrafficSignBase.h.
Referenced by TrafficSignHeightUtils::AdjustSignToGround(), and ATrafficLightManager::SpawnSignals().
| bool ATrafficSignBase::bPositioned = false |
True once this sign has been snapped to the ground, to avoid adjusting it more than once.
Definition at line 154 of file TrafficSignBase.h.
Referenced by TrafficSignHeightUtils::AdjustSignToGround().
|
private |
Limit in km/h for the custom SpeedLimit state (ignored for the dedicated states).
Definition at line 168 of file TrafficSignBase.h.
Referenced by GetSpeedLimitKmh(), and SetSpeedLimitKmh().
|
private |
Definition at line 164 of file TrafficSignBase.h.
Referenced by GetSpeedLimitKmh(), GetTrafficSignState(), SetSpeedLimitKmh(), and SetTrafficSignState().