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

#include <Weather.h>

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

Public 成员函数

void ApplyWeather (const FWeatherParameters &WeatherParameters)
 更新天气参数并将其通知到蓝图的事件
 
 AWeather (const FObjectInitializer &ObjectInitializer)
 
const FWeatherParametersGetCurrentWeather () const
 返回当前的 天气参数 WeatherParameters
 
const bool & GetDayNightCycle () const
 返回昼夜循环是否有效(切换到夜间模式时自动 开/关 切换)
 
void NotifyWeather (ASensor *Sensor=nullptr)
 将天气通知到蓝图的事件
 
void SetDayNightCycle (const bool &active)
 更新昼夜周期
 
void SetWeather (const FWeatherParameters &WeatherParameters)
 在不通知蓝图事件的情况下更新天气参数
 

Protected 成员函数

void RefreshWeather (const FWeatherParameters &WeatherParameters)
 

Private 成员函数

void CheckWeatherPostProcessEffects ()
 

Private 属性

TMap< UMaterial *, float > ActiveBlendables
 
bool DayNightCycle = true
 
UMaterial * DustStormPostProcessMaterial
 
UMaterial * PrecipitationPostProcessMaterial
 
FWeatherParameters Weather
 

详细描述

在文件 Weather.h18 行定义.

构造及析构函数说明

◆ AWeather()

AWeather::AWeather ( const FObjectInitializer & ObjectInitializer)

在文件 Weather.cpp15 行定义.

引用了 DustStormPostProcessMaterial , 以及 PrecipitationPostProcessMaterial.

成员函数说明

◆ ApplyWeather()

void AWeather::ApplyWeather ( const FWeatherParameters & WeatherParameters)

◆ CheckWeatherPostProcessEffects()

void AWeather::CheckWeatherPostProcessEffects ( )
private

在文件 Weather.cpp35 行定义.

引用了 ActiveBlendables, FWeatherParameters::DustStorm, DustStormPostProcessMaterial, ASceneCaptureSensor::GetCaptureComponent2D(), FWeatherParameters::Precipitation, PrecipitationPostProcessMaterial , 以及 Weather.

被这些函数引用 ApplyWeather() , 以及 NotifyWeather().

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

◆ GetCurrentWeather()

const FWeatherParameters & AWeather::GetCurrentWeather ( ) const
inline

返回当前的 天气参数 WeatherParameters

在文件 Weather.h39 行定义.

◆ GetDayNightCycle()

const bool & AWeather::GetDayNightCycle ( ) const
inline

返回昼夜循环是否有效(切换到夜间模式时自动 开/关 切换)

在文件 Weather.h46 行定义.

◆ NotifyWeather()

void AWeather::NotifyWeather ( ASensor * Sensor = nullptr)

将天气通知到蓝图的事件

在文件 Weather.cpp101 行定义.

引用了 CheckWeatherPostProcessEffects(), RefreshWeather() , 以及 Weather.

+ 函数调用图:

◆ RefreshWeather()

void AWeather::RefreshWeather ( const FWeatherParameters & WeatherParameters)
protected

被这些函数引用 ApplyWeather() , 以及 NotifyWeather().

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

◆ SetDayNightCycle()

void AWeather::SetDayNightCycle ( const bool & active)

更新昼夜周期

在文件 Weather.cpp117 行定义.

引用了 DayNightCycle.

◆ SetWeather()

void AWeather::SetWeather ( const FWeatherParameters & WeatherParameters)

在不通知蓝图事件的情况下更新天气参数

在文件 Weather.cpp111 行定义.

引用了 Weather.

被这些函数引用 ApplyWeather().

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

类成员变量说明

◆ ActiveBlendables

TMap<UMaterial*, float> AWeather::ActiveBlendables
private

在文件 Weather.h80 行定义.

被这些函数引用 CheckWeatherPostProcessEffects().

◆ DayNightCycle

bool AWeather::DayNightCycle = true
private

在文件 Weather.h85 行定义.

被这些函数引用 SetDayNightCycle().

◆ DustStormPostProcessMaterial

UMaterial* AWeather::DustStormPostProcessMaterial
private

在文件 Weather.h75 行定义.

被这些函数引用 AWeather() , 以及 CheckWeatherPostProcessEffects().

◆ PrecipitationPostProcessMaterial

UMaterial* AWeather::PrecipitationPostProcessMaterial
private

在文件 Weather.h72 行定义.

被这些函数引用 AWeather() , 以及 CheckWeatherPostProcessEffects().

◆ Weather

FWeatherParameters AWeather::Weather
private

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