CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Private 属性 | 所有成员列表
ATrafficLightBase类 参考

#include <TrafficLightBase.h>

+ 类 ATrafficLightBase 继承关系图:
+ ATrafficLightBase 的协作图:

Public 成员函数

void AddTimeToRecorder ()
 
 ATrafficLightBase (const FObjectInitializer &ObjectInitializer)
 
float GetElapsedTime () const
 
float GetGreenTime () const
 
TArray< ATrafficLightBase * > GetGroupTrafficLights () const
 
int GetPoleIndex () const
 
float GetRedTime () const
 
bool GetTimeIsFrozen () const
 
UTrafficLightComponent * GetTrafficLightComponent ()
 
const UTrafficLightComponent * GetTrafficLightComponent () const
 
ETrafficLightState GetTrafficLightState () const
 
float GetYellowTime () const
 
void LightChangedCompatibility (ETrafficLightState NewLightState)
 
void NotifyWheeledVehicle (ACarlaWheeledVehicle *Vehicle)
 
void SetElapsedTime (float InElapsedTime)
 
void SetGreenTime (float InGreenTime)
 
void SetGroupTrafficLights (TArray< ATrafficLightBase * > InGroupTrafficLights)
 
void SetPoleIndex (int InPoleIndex)
 
void SetRedTime (float InRedTime)
 
void SetTimeIsFrozen (bool InTimeIsFrozen)
 
void SetTrafficLightState (ETrafficLightState State)
 
void SetYellowTime (float InYellowTime)
 
void UnNotifyWheeledVehicle (ACarlaWheeledVehicle *Vehicle)
 
- Public 成员函数 继承自 ATrafficSignBase
 ATrafficSignBase (const FObjectInitializer &ObjectInitializer)
 
ETrafficSignState GetTrafficSignState () const
 
UBoxComponent * GetTriggerVolume () const
 
TArray< UBoxComponent * > GetTriggerVolumes () const
 
void SetTrafficSignState (ETrafficSignState State)
 

Protected 成员函数

void OnTrafficLightStateChanged (ETrafficLightState TrafficLightState)
 

Private 属性

TArray< ATrafficLightBase * > GroupTrafficLights
 
int PoleIndex = 0
 
UTrafficLightComponent * TrafficLightComponent = nullptr
 
TArray< AWheeledVehicleAIController * > Vehicles
 

详细描述

在文件 TrafficLightBase.h 第 20 行定义.

构造及析构函数说明

◆ ATrafficLightBase()

ATrafficLightBase::ATrafficLightBase ( const FObjectInitializer &  ObjectInitializer)

在文件 TrafficLightBase.cpp 第 40 行定义.

引用了 ATrafficSignBase::SetTrafficSignState() , 以及 TrafficLightComponent.

+ 函数调用图:

成员函数说明

◆ AddTimeToRecorder()

void ATrafficLightBase::AddTimeToRecorder ( )

在文件 TrafficLightBase.cpp 第 267 行定义.

引用了 UCarlaStatics::GetRecorder().

被这些函数引用 SetGreenTime(), SetRedTime() , 以及 SetYellowTime().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ GetElapsedTime()

float ATrafficLightBase::GetElapsedTime ( ) const

在文件 TrafficLightBase.cpp 第 178 行定义.

引用了 TrafficLightComponent.

◆ GetGreenTime()

float ATrafficLightBase::GetGreenTime ( ) const

在文件 TrafficLightBase.cpp 第 112 行定义.

引用了 TrafficLightComponent.

◆ GetGroupTrafficLights()

TArray< ATrafficLightBase * > ATrafficLightBase::GetGroupTrafficLights ( ) const

在文件 TrafficLightBase.cpp 第 231 行定义.

引用了 ATrafficLightGroup::GetControllers(), GroupTrafficLights , 以及 TrafficLightComponent.

+ 函数调用图:

◆ GetPoleIndex()

int ATrafficLightBase::GetPoleIndex ( ) const

在文件 TrafficLightBase.cpp 第 226 行定义.

引用了 PoleIndex.

◆ GetRedTime()

float ATrafficLightBase::GetRedTime ( ) const

在文件 TrafficLightBase.cpp 第 164 行定义.

引用了 TrafficLightComponent.

◆ GetTimeIsFrozen()

bool ATrafficLightBase::GetTimeIsFrozen ( ) const

在文件 TrafficLightBase.cpp 第 210 行定义.

引用了 TrafficLightComponent.

◆ GetTrafficLightComponent() [1/2]

UTrafficLightComponent * ATrafficLightBase::GetTrafficLightComponent ( )

在文件 TrafficLightBase.cpp 第 258 行定义.

引用了 TrafficLightComponent.

◆ GetTrafficLightComponent() [2/2]

const UTrafficLightComponent * ATrafficLightBase::GetTrafficLightComponent ( ) const

在文件 TrafficLightBase.cpp 第 262 行定义.

引用了 TrafficLightComponent.

◆ GetTrafficLightState()

ETrafficLightState ATrafficLightBase::GetTrafficLightState ( ) const

在文件 TrafficLightBase.cpp 第 52 行定义.

引用了 TrafficLightComponent.

被这些函数引用 NotifyWheeledVehicle().

+ 这是这个函数的调用关系图:

◆ GetYellowTime()

float ATrafficLightBase::GetYellowTime ( ) const

在文件 TrafficLightBase.cpp 第 138 行定义.

引用了 TrafficLightComponent.

◆ LightChangedCompatibility()

void ATrafficLightBase::LightChangedCompatibility ( ETrafficLightState  NewLightState)

在文件 TrafficLightBase.cpp 第 276 行定义.

引用了 OnTrafficLightStateChanged().

+ 函数调用图:

◆ NotifyWheeledVehicle()

void ATrafficLightBase::NotifyWheeledVehicle ( ACarlaWheeledVehicle *  Vehicle)

在文件 TrafficLightBase.cpp 第 73 行定义.

引用了 GetTrafficLightState(), IsValid(), Vehicle , 以及 Vehicles.

+ 函数调用图:

◆ OnTrafficLightStateChanged()

void ATrafficLightBase::OnTrafficLightStateChanged ( ETrafficLightState  TrafficLightState)
protected

被这些函数引用 LightChangedCompatibility().

+ 这是这个函数的调用关系图:

◆ SetElapsedTime()

void ATrafficLightBase::SetElapsedTime ( float  InElapsedTime)

在文件 TrafficLightBase.cpp 第 192 行定义.

引用了 TrafficLightComponent.

◆ SetGreenTime()

void ATrafficLightBase::SetGreenTime ( float  InGreenTime)

在文件 TrafficLightBase.cpp 第 100 行定义.

引用了 AddTimeToRecorder(), UTrafficLightController::SetGreenTime() , 以及 TrafficLightComponent.

+ 函数调用图:

◆ SetGroupTrafficLights()

void ATrafficLightBase::SetGroupTrafficLights ( TArray< ATrafficLightBase * >  InGroupTrafficLights)

在文件 TrafficLightBase.cpp 第 253 行定义.

引用了 GroupTrafficLights.

◆ SetPoleIndex()

void ATrafficLightBase::SetPoleIndex ( int  InPoleIndex)

在文件 TrafficLightBase.cpp 第 221 行定义.

引用了 PoleIndex.

◆ SetRedTime()

void ATrafficLightBase::SetRedTime ( float  InRedTime)

在文件 TrafficLightBase.cpp 第 152 行定义.

引用了 AddTimeToRecorder(), UTrafficLightController::SetRedTime() , 以及 TrafficLightComponent.

+ 函数调用图:

◆ SetTimeIsFrozen()

void ATrafficLightBase::SetTimeIsFrozen ( bool  InTimeIsFrozen)

在文件 TrafficLightBase.cpp 第 202 行定义.

引用了 TrafficLightComponent.

◆ SetTrafficLightState()

void ATrafficLightBase::SetTrafficLightState ( ETrafficLightState  State)

在文件 TrafficLightBase.cpp 第 64 行定义.

引用了 InState , 以及 TrafficLightComponent.

◆ SetYellowTime()

void ATrafficLightBase::SetYellowTime ( float  InYellowTime)

在文件 TrafficLightBase.cpp 第 126 行定义.

引用了 AddTimeToRecorder(), UTrafficLightController::SetYellowTime() , 以及 TrafficLightComponent.

+ 函数调用图:

◆ UnNotifyWheeledVehicle()

void ATrafficLightBase::UnNotifyWheeledVehicle ( ACarlaWheeledVehicle *  Vehicle)

在文件 TrafficLightBase.cpp 第 87 行定义.

引用了 IsValid() , 以及 Vehicle.

+ 函数调用图:

类成员变量说明

◆ GroupTrafficLights

TArray<ATrafficLightBase *> ATrafficLightBase::GroupTrafficLights
private

在文件 TrafficLightBase.h 第 107 行定义.

被这些函数引用 GetGroupTrafficLights() , 以及 SetGroupTrafficLights().

◆ PoleIndex

int ATrafficLightBase::PoleIndex = 0
private

在文件 TrafficLightBase.h 第 104 行定义.

被这些函数引用 GetPoleIndex() , 以及 SetPoleIndex().

◆ TrafficLightComponent

UTrafficLightComponent* ATrafficLightBase::TrafficLightComponent = nullptr
private

◆ Vehicles

TArray<AWheeledVehicleAIController *> ATrafficLightBase::Vehicles
private

在文件 TrafficLightBase.h 第 101 行定义.

被这些函数引用 NotifyWheeledVehicle().


该类的文档由以下文件生成: