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

Used to set settings for every actor that is spawned into the world. 更多...

#include <CarlaSettingsDelegate.h>

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

Public 成员函数

void ApplyQualityLevelPostRestart ()
 After loading a level, apply the current settings.
 
void ApplyQualityLevelPreRestart ()
 Before loading a level, apply the current settings.
 
void RegisterSpawnHandler (UWorld *World)
 Create the event trigger handler for all the newly spawned actors to be processed with a custom function here.
 
void Reset ()
 Reset settings to default.
 
void SetAllActorsDrawDistance (UWorld *world, float max_draw_distance) const
 
 UCarlaSettingsDelegate ()
 

Private 成员函数

void CheckCarlaSettings (UWorld *world)
 Check that the world, instance and settings are valid and save the CarlaSettings instance.
 
UWorld * GetLocalWorld ()
 
void LaunchEpicQualityCommands (UWorld *world) const
 Execute engine commands to apply the epic quality level to the world.
 
void LaunchLowQualityCommands (UWorld *world) const
 Execute engine commands to apply the low quality level to the world.
 
void OnActorSpawned (AActor *Actor)
 Function to apply to the actor that is being spawned to apply the current settings.
 
void SetActorComponentsDrawDistance (AActor *actor, float max_draw_distance) const
 
void SetAllLights (UWorld *world, float max_distance_fade, bool cast_shadows, bool hide_non_directional) const
 
void SetAllRoads (UWorld *world, float max_draw_distance, const TArray< FStaticMaterial > &road_pieces_materials) const
 
void SetPostProcessEffectsEnabled (UWorld *world, bool enabled) const
 

Private 属性

FOnActorSpawned::FDelegate ActorSpawnedDelegate
 
UCarlaSettingsCarlaSettings = nullptr
 

静态 Private 属性

static EQualityLevel AppliedLowPostResetQualityLevel = EQualityLevel::Epic
 Currently applied quality level after level is restarted.
 

详细描述

Used to set settings for every actor that is spawned into the world.

在文件 CarlaSettingsDelegate.h21 行定义.

构造及析构函数说明

◆ UCarlaSettingsDelegate()

UCarlaSettingsDelegate::UCarlaSettingsDelegate ( )

在文件 CarlaSettingsDelegate.cpp27 行定义.

成员函数说明

◆ ApplyQualityLevelPostRestart()

void UCarlaSettingsDelegate::ApplyQualityLevelPostRestart ( )

After loading a level, apply the current settings.

在文件 CarlaSettingsDelegate.cpp73 行定义.

引用了 AppliedLowPostResetQualityLevel, CarlaSettings, CheckCarlaSettings(), Epic, UCarlaSettings::GetQualityLevel(), LaunchEpicQualityCommands(), LaunchLowQualityCommands(), Low, UCarlaSettings::LowLightFadeDistance, SetAllActorsDrawDistance(), SetAllLights(), SetAllRoads() , 以及 SetPostProcessEffectsEnabled().

被这些函数引用 ACarlaGameModeBase::InitGame().

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

◆ ApplyQualityLevelPreRestart()

void UCarlaSettingsDelegate::ApplyQualityLevelPreRestart ( )

Before loading a level, apply the current settings.

在文件 CarlaSettingsDelegate.cpp120 行定义.

引用了 UCarlaSettings::bDisableRendering, CarlaSettings, CheckCarlaSettings() , 以及 IsValid().

被这些函数引用 ACarlaGameModeBase::RestartPlayer().

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

◆ CheckCarlaSettings()

void UCarlaSettingsDelegate::CheckCarlaSettings ( UWorld * world)
private

Check that the world, instance and settings are valid and save the CarlaSettings instance.

参数
worldused to get the instance of CarlaSettings.

在文件 CarlaSettingsDelegate.cpp152 行定义.

引用了 CarlaSettings, GetLocalWorld() , 以及 IsValid().

被这些函数引用 ApplyQualityLevelPostRestart(), ApplyQualityLevelPreRestart() , 以及 RegisterSpawnHandler().

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

◆ GetLocalWorld()

UWorld * UCarlaSettingsDelegate::GetLocalWorld ( )
private

在文件 CarlaSettingsDelegate.cpp147 行定义.

被这些函数引用 CheckCarlaSettings().

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

◆ LaunchEpicQualityCommands()

void UCarlaSettingsDelegate::LaunchEpicQualityCommands ( UWorld * world) const
private

Execute engine commands to apply the epic quality level to the world.

在文件 CarlaSettingsDelegate.cpp371 行定义.

被这些函数引用 ApplyQualityLevelPostRestart().

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

◆ LaunchLowQualityCommands()

void UCarlaSettingsDelegate::LaunchLowQualityCommands ( UWorld * world) const
private

Execute engine commands to apply the low quality level to the world.

在文件 CarlaSettingsDelegate.cpp169 行定义.

被这些函数引用 ApplyQualityLevelPostRestart().

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

◆ OnActorSpawned()

void UCarlaSettingsDelegate::OnActorSpawned ( AActor * Actor)
private

Function to apply to the actor that is being spawned to apply the current settings.

在文件 CarlaSettingsDelegate.cpp43 行定义.

引用了 UCarlaSettings::CARLA_ROAD_TAG, CARLA_SETTINGS_MAX_SCALE_SIZE, UCarlaSettings::CARLA_SKY_TAG, CarlaSettings, UCarlaSettings::GetQualityLevel(), IsValid(), Low , 以及 SetActorComponentsDrawDistance().

+ 函数调用图:

◆ RegisterSpawnHandler()

void UCarlaSettingsDelegate::RegisterSpawnHandler ( UWorld * World)

Create the event trigger handler for all the newly spawned actors to be processed with a custom function here.

在文件 CarlaSettingsDelegate.cpp37 行定义.

引用了 ActorSpawnedDelegate , 以及 CheckCarlaSettings().

被这些函数引用 ACarlaGameModeBase::InitGame().

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

◆ Reset()

void UCarlaSettingsDelegate::Reset ( )

Reset settings to default.

在文件 CarlaSettingsDelegate.cpp32 行定义.

引用了 AppliedLowPostResetQualityLevel , 以及 Epic.

被这些函数引用 ACarlaGameModeBase::EndPlay().

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

◆ SetActorComponentsDrawDistance()

void UCarlaSettingsDelegate::SetActorComponentsDrawDistance ( AActor * actor,
float max_draw_distance ) const
private

在文件 CarlaSettingsDelegate.cpp291 行定义.

引用了 CARLA_SETTINGS_MAX_SCALE_SIZE , 以及 IsValid().

被这些函数引用 OnActorSpawned() , 以及 SetAllActorsDrawDistance().

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

◆ SetAllActorsDrawDistance()

void UCarlaSettingsDelegate::SetAllActorsDrawDistance ( UWorld * world,
float max_draw_distance ) const

@TODO: use semantics to grab all actors by type (vehicles,ground,people,props) and set different distances configured in the global properties

在文件 CarlaSettingsDelegate.cpp318 行定义.

引用了 UCarlaSettings::CARLA_ROAD_TAG, UCarlaSettings::CARLA_SKY_TAG, IsValid() , 以及 SetActorComponentsDrawDistance().

被这些函数引用 ApplyQualityLevelPostRestart() , 以及 ACarlaGameModeBase::OnEpisodeSettingsChanged().

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

◆ SetAllLights()

void UCarlaSettingsDelegate::SetAllLights ( UWorld * world,
float max_distance_fade,
bool cast_shadows,
bool hide_non_directional ) const
private

在文件 CarlaSettingsDelegate.cpp416 行定义.

引用了 IsValid().

被这些函数引用 ApplyQualityLevelPostRestart().

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

◆ SetAllRoads()

void UCarlaSettingsDelegate::SetAllRoads ( UWorld * world,
float max_draw_distance,
const TArray< FStaticMaterial > & road_pieces_materials ) const
private

在文件 CarlaSettingsDelegate.cpp227 行定义.

引用了 UCarlaSettings::CARLA_ROAD_TAG , 以及 IsValid().

被这些函数引用 ApplyQualityLevelPostRestart().

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

◆ SetPostProcessEffectsEnabled()

void UCarlaSettingsDelegate::SetPostProcessEffectsEnabled ( UWorld * world,
bool enabled ) const
private

在文件 CarlaSettingsDelegate.cpp352 行定义.

引用了 IsValid().

被这些函数引用 ApplyQualityLevelPostRestart().

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

类成员变量说明

◆ ActorSpawnedDelegate

FOnActorSpawned::FDelegate UCarlaSettingsDelegate::ActorSpawnedDelegate
private

在文件 CarlaSettingsDelegate.h88 行定义.

被这些函数引用 RegisterSpawnHandler().

◆ AppliedLowPostResetQualityLevel

EQualityLevel UCarlaSettingsDelegate::AppliedLowPostResetQualityLevel = EQualityLevel::Epic
staticprivate

Currently applied quality level after level is restarted.

quality settings configuration between runs

在文件 CarlaSettingsDelegate.h84 行定义.

被这些函数引用 ApplyQualityLevelPostRestart() , 以及 Reset().

◆ CarlaSettings

UCarlaSettings* UCarlaSettingsDelegate::CarlaSettings = nullptr
private

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