#include <Weather.h>
Inheritance diagram for AWeather:
Collaboration diagram for AWeather:Public Member Functions | |
| void | ApplyWeather (const FWeatherParameters &WeatherParameters) |
| Update the weather parameters and notifies it to the blueprint's event. More... | |
| AWeather (const FObjectInitializer &ObjectInitializer) | |
| const FWeatherParameters & | GetCurrentWeather () const |
| Returns the current WeatherParameters. More... | |
| const bool & | GetDayNightCycle () const |
| Returns whether the day night cycle is active (automatic on/off switch when changin to night mode) More... | |
| void | NotifyWeather (ASensor *Sensor=nullptr) |
| Notifing the weather to the blueprint's event. More... | |
| void | SetDayNightCycle (const bool &active) |
| Update the day night cycle. More... | |
| void | SetWeather (const FWeatherParameters &WeatherParameters) |
| Update the weather parameters without notifing it to the blueprint's event. More... | |
Protected Member Functions | |
| void | RefreshWeather (const FWeatherParameters &WeatherParameters) |
Private Member Functions | |
| void | CheckWeatherPostProcessEffects () |
Private Attributes | |
| TMap< UMaterial *, float > | ActiveBlendables |
| bool | DayNightCycle = true |
| UMaterial * | DustStormPostProcessMaterial |
| UMaterial * | PrecipitationPostProcessMaterial |
| FWeatherParameters | Weather |
| AWeather::AWeather | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 14 of file Weather.cpp.
References DustStormPostProcessMaterial, and PrecipitationPostProcessMaterial.
| void AWeather::ApplyWeather | ( | const FWeatherParameters & | WeatherParameters | ) |
Update the weather parameters and notifies it to the blueprint's event.
Definition at line 49 of file Weather.cpp.
References CheckWeatherPostProcessEffects(), FWeatherParameters::Cloudiness, FWeatherParameters::DustStorm, FWeatherParameters::FogDensity, FWeatherParameters::FogDistance, FWeatherParameters::FogFalloff, FWeatherParameters::MieScatteringScale, FWeatherParameters::Precipitation, FWeatherParameters::PrecipitationDeposits, FWeatherParameters::RayleighScatteringScale, RefreshWeather(), FWeatherParameters::ScatteringIntensity, SetWeather(), FWeatherParameters::SunAltitudeAngle, FWeatherParameters::SunAzimuthAngle, Weather, FWeatherParameters::Wetness, and FWeatherParameters::WindIntensity.
Referenced by ACarlaGameModeBase::BeginPlay().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 27 of file Weather.cpp.
References ActiveBlendables, FWeatherParameters::DustStorm, DustStormPostProcessMaterial, ASceneCaptureSensor::GetCaptureComponent2D(), FWeatherParameters::Precipitation, PrecipitationPostProcessMaterial, and Weather.
Referenced by ApplyWeather(), and NotifyWeather().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
| void AWeather::NotifyWeather | ( | ASensor * | Sensor = nullptr | ) |
Notifing the weather to the blueprint's event.
Definition at line 76 of file Weather.cpp.
References CheckWeatherPostProcessEffects(), RefreshWeather(), and Weather.
Referenced by ASceneCaptureSensor::BeginPlay().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| void AWeather::SetDayNightCycle | ( | const bool & | active | ) |
| void AWeather::SetWeather | ( | const FWeatherParameters & | WeatherParameters | ) |
Update the weather parameters without notifing it to the blueprint's event.
Definition at line 84 of file Weather.cpp.
References Weather.
Referenced by ApplyWeather().
Here is the caller graph for this function:
|
private |
Definition at line 70 of file Weather.h.
Referenced by CheckWeatherPostProcessEffects().
|
private |
Definition at line 73 of file Weather.h.
Referenced by SetDayNightCycle().
|
private |
Definition at line 68 of file Weather.h.
Referenced by AWeather(), and CheckWeatherPostProcessEffects().
|
private |
Definition at line 66 of file Weather.h.
Referenced by AWeather(), and CheckWeatherPostProcessEffects().
|
private |
Definition at line 64 of file Weather.h.
Referenced by ApplyWeather(), CheckWeatherPostProcessEffects(), NotifyWeather(), and SetWeather().
1.8.13