CARLA
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
AWeather Class Reference

#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 FWeatherParametersGetCurrentWeather () 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 ()
 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 Attributes

bool DayNightCycle = true
 
FWeatherParameters Weather
 

Detailed Description

Definition at line 16 of file Weather.h.

Constructor & Destructor Documentation

◆ AWeather()

AWeather::AWeather ( const FObjectInitializer &  ObjectInitializer)

Definition at line 10 of file Weather.cpp.

Member Function Documentation

◆ ApplyWeather()

void AWeather::ApplyWeather ( const FWeatherParameters WeatherParameters)

Update the weather parameters and notifies it to the blueprint's event.

Definition at line 17 of file Weather.cpp.

References FWeatherParameters::Cloudiness, 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:

◆ GetCurrentWeather()

const FWeatherParameters& AWeather::GetCurrentWeather ( ) const
inline

Returns the current WeatherParameters.

Definition at line 37 of file Weather.h.

◆ GetDayNightCycle()

const bool& AWeather::GetDayNightCycle ( ) const
inline

Returns whether the day night cycle is active (automatic on/off switch when changin to night mode)

Definition at line 44 of file Weather.h.

◆ NotifyWeather()

void AWeather::NotifyWeather ( )

Notifing the weather to the blueprint's event.

Definition at line 42 of file Weather.cpp.

References RefreshWeather(), and Weather.

Referenced by ASceneCaptureSensor::BeginPlay().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RefreshWeather()

void AWeather::RefreshWeather ( const FWeatherParameters WeatherParameters)
protected

Referenced by ApplyWeather(), and NotifyWeather().

+ Here is the caller graph for this function:

◆ SetDayNightCycle()

void AWeather::SetDayNightCycle ( const bool &  active)

Update the day night cycle.

Definition at line 53 of file Weather.cpp.

References DayNightCycle.

◆ SetWeather()

void AWeather::SetWeather ( const FWeatherParameters WeatherParameters)

Update the weather parameters without notifing it to the blueprint's event.

Definition at line 48 of file Weather.cpp.

References Weather.

Referenced by ApplyWeather().

+ Here is the caller graph for this function:

Member Data Documentation

◆ DayNightCycle

bool AWeather::DayNightCycle = true
private

Definition at line 63 of file Weather.h.

Referenced by SetDayNightCycle().

◆ Weather

FWeatherParameters AWeather::Weather
private

Definition at line 60 of file Weather.h.

Referenced by ApplyWeather(), NotifyWeather(), and SetWeather().


The documentation for this class was generated from the following files: