Agrarsense
|
#include <AgrarsenseSettings.h>
Public Member Functions | |
void | Setup (UWorld *World) |
virtual void | PostInitProperties () override |
void | LoadSettings (bool bForceReload=false) override |
void | ApplySettings (bool bCheckForCommandLineOverrides) override |
void | SetGraphicsSettings (FGlobalGraphicsSettings NewSettings) |
void | SetWindowMode (EWindowMode::Type WindowType) |
void | SetSimulationSettings (FGlobalSimulationSettings NewSettings) |
void | SetWorldRendering (bool enabled) |
void | SetQualityLevel (EQualityLevel newQualityLevel) |
void | SetQualityLevelFromString (const FString &QualityLevelString) |
int | GetGlobalTargetFrameRate () const |
void | SetGlobalTargetFrameRate (int NewTargetFrameRate) |
float | GetGlobalTimeDilation () const |
void | SetSpectatorMaxSpeed (float MaxSpeed) |
void | SetShowSpectatorRainAndSnowfall (bool Show) |
float | GetSpectatorMaxSpeed () const |
bool | GetShowSpectatorRainAndSnowfall () const |
void | SetGlobalTimeDilation (float TimeDilation) |
void | PauseSimulation () |
void | UnPauseSimulation () |
void | PauseSimulationEndOfThisFrame () |
void | AdvanceFrameCount (int32 FramesToAdvance) |
void | AdvanceTime (float TimeToAdvance) |
void | ChangeMapByName (FString MapName) |
void | ChangeMapByMapPath (const FString &Path) |
bool | GetGrassVisibility () const |
void | SetGrassVisibility (bool Visible) |
bool | GetShadowCSMCache () const |
void | SetShadowCSMCache (bool CacheShadowCSM) |
EAntiAliasing | GetAntiAliasingMethod () const |
void | SetAntiAliasingMethod (EAntiAliasing AntiAliasingMethod) |
void | SetAntiAliasingMethodFromString (const FString &AntiAliasingMethodString) |
void | SetInstancedRenderingVisibility (bool Visible) |
void | SetWorldPositionOffsetRenderDistance (int32 WorldPositionOffsetDistance) |
void | SetNaniteMaxPixelsPerEdge (float MaxPixelsPerEdge=1.0f) |
void | SetShadowCacheInvalidationBehavior (EShadowCacheInvalidationBehavior Behaviour=EShadowCacheInvalidationBehavior::Rigid) |
void | SetShadowCacheInvalidationBehaviorFromString (const FString &BehaviourString) |
int32 | GetWorldPositionOffsetRenderDistance () const |
float | GetNaniteMaxPixelsPerEdge () const |
EShadowCacheInvalidationBehavior | GetShadowCacheInvalidationBehavior () const |
bool | GetStartWindowInitiallyMinimized () const |
void | SetStartWindowInitiallyMinimized (bool Minimized) |
void | SetRenderCustomDepthPass (bool RenderCustomDepthPass) |
void | SetUseVirtualShadowMaps (bool UseVirtualShadowMaps) |
bool | GetIsUsingVirtualShadowMaps () const |
bool | GetIsRenderingCustomDepthPass () const |
int32 | GetNumberOfWorkerThreads () const |
FString | GetConsoleVariableValueString (const FString &VariableName) const |
EQualityLevel | GetCurrentQualityLevel () const |
TArray< FString > | GetMapNames () const |
TArray< FString > | GetMapPaths () const |
Static Public Member Functions | |
static UAgrarsenseSettings * | GetAgrarsenseSettings () |
static bool | ShouldStartWindowMinimized () |
static bool | IsPlayingInMainMenu () |
static FGlobalSimulationSettings | GetGlobalSimulationSettings () |
static bool | IsSimulationPaused () |
static FGlobalGraphicsSettings | GetGlobalGraphicsSettings () |
Public Attributes | |
FGraphicsSettingsDelegate | OnGraphicsSettingsChanged |
Private Member Functions | |
UAgrarsenseSettings () | |
bool | ParseLaunchArguments () |
void | OnSensorSpawned (ASensor *SensorPtr) |
void | OnSensorDestroyed (ASensor *SensorPtr) |
void | SetUltraWithRaytracingLevel () |
bool | IsRaytracingSupported () const |
void | EnableRaytracing () |
void | DisableRaytracing () |
void | SetUltraQualityLevel () |
void | SetBalancedQualityLevel () |
void | SetLowQualityLevel () |
Private Attributes | |
int | NumberOfPostProcessingSensors = 0 |
bool | RenderCustomDepth = false |
TWeakObjectPtr< UWorld > | CurrentWorld = nullptr |
FGlobalSimulationSettings | SimulationSettings |
FGlobalGraphicsSettings | GraphicsSettings |
FDelegateHandle | AdvanceFramesHandle |
int32 | FrameCount = 0 |
FDelegateHandle | EndOfFrameHandle |
const TArray< FString > | MapNames |
const TArray< FString > | MapPaths |
Static Private Attributes | |
static bool | IsMainMenu = false |
static FString | CurrentMapName |
Friends | |
class | AAgrarsenseGameModeBase |
Definition at line 28 of file AgrarsenseSettings.h.
|
private |
Definition at line 41 of file AgrarsenseSettings.cpp.
void UAgrarsenseSettings::AdvanceFrameCount | ( | int32 | FramesToAdvance | ) |
Amount of frames to advance before pausing simulation.
Frames | number of frames to advance before pausing simulation. |
Definition at line 668 of file AgrarsenseSettings.cpp.
References AdvanceFramesHandle, EndOfFrameHandle, FrameCount, PauseSimulationEndOfThisFrame(), and UnPauseSimulation().
Referenced by UROSCommands::HandleAdvanceFrames(), and UROSCommands::HandleAdvanceOneFrame().
void UAgrarsenseSettings::AdvanceTime | ( | float | TimeToAdvance | ) |
Amount of time to advance before pausing simulation. @TimeToAdvance time in seconds.
Definition at line 713 of file AgrarsenseSettings.cpp.
References CurrentWorld, PauseSimulationEndOfThisFrame(), and UnPauseSimulation().
Referenced by UROSCommands::HandleAdvanceTime().
|
override |
Definition at line 137 of file AgrarsenseSettings.cpp.
References GraphicsSettings, SetGraphicsSettings(), SetSimulationSettings(), and SimulationSettings.
Referenced by SetGlobalTargetFrameRate(), and Setup().
void UAgrarsenseSettings::ChangeMapByMapPath | ( | const FString & | Path | ) |
Change map by map relative path
Definition at line 763 of file AgrarsenseSettings.cpp.
References CurrentWorld.
Referenced by ChangeMapByName().
void UAgrarsenseSettings::ChangeMapByName | ( | FString | MapName | ) |
Change map by name. This only works for maps defined in MapNames TArray.
MapName | map name as FString |
Definition at line 736 of file AgrarsenseSettings.cpp.
References ChangeMapByMapPath(), SimulatorLog::Log(), MapNames, and MapPaths.
Referenced by UROSCommands::HandleChangeMap().
|
private |
Definition at line 865 of file AgrarsenseSettings.cpp.
References CurrentWorld.
Referenced by SetBalancedQualityLevel(), SetLowQualityLevel(), and SetUltraQualityLevel().
|
private |
Definition at line 847 of file AgrarsenseSettings.cpp.
References CurrentWorld.
Referenced by SetUltraWithRaytracingLevel().
|
static |
Definition at line 127 of file AgrarsenseSettings.cpp.
Referenced by UAgrarsenseStatics::GetAgrarsenseSettings(), and AAgrarsenseGameModeBase::SpawnNeededActorsInitGame().
EAntiAliasing UAgrarsenseSettings::GetAntiAliasingMethod | ( | ) | const |
Get current anti aliasing method
Definition at line 445 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::AntiAliasingMethod, and GraphicsSettings.
FString UAgrarsenseSettings::GetConsoleVariableValueString | ( | const FString & | VariableName | ) | const |
Get Console variable value as FString.
Definition at line 194 of file AgrarsenseSettings.cpp.
|
inline |
Get current graphics quality level
Definition at line 360 of file AgrarsenseSettings.h.
|
inlinestatic |
Get Global Graphics settings.
Definition at line 432 of file AgrarsenseSettings.h.
|
inlinestatic |
Get Global simulation settings.
Definition at line 414 of file AgrarsenseSettings.h.
int UAgrarsenseSettings::GetGlobalTargetFrameRate | ( | ) | const |
Get the global target frame rate for the Simulator
Definition at line 547 of file AgrarsenseSettings.cpp.
float UAgrarsenseSettings::GetGlobalTimeDilation | ( | ) | const |
Get global time dilation factor, affecting the entire simulation tick time flow.
Definition at line 558 of file AgrarsenseSettings.cpp.
References CurrentWorld, SimulationSettings, and FGlobalSimulationSettings::TimeDilation.
bool UAgrarsenseSettings::GetGrassVisibility | ( | ) | const |
Get if grass visible or not
Definition at line 243 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::RenderGrass.
bool UAgrarsenseSettings::GetIsRenderingCustomDepthPass | ( | ) | const |
Get is rendering custom depth pass on.
Definition at line 440 of file AgrarsenseSettings.cpp.
References RenderCustomDepth.
bool UAgrarsenseSettings::GetIsUsingVirtualShadowMaps | ( | ) | const |
Get is rendering virtual shadow maps on.
Definition at line 435 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::UseVirtualShadowMaps.
|
inline |
Get map names as TArray. This TArray is hardcoded.
Definition at line 370 of file AgrarsenseSettings.h.
Referenced by UROSCommands::HandlePrintMaps().
|
inline |
Get map paths as TArray. This TArray is hardcoded.
Definition at line 380 of file AgrarsenseSettings.h.
float UAgrarsenseSettings::GetNaniteMaxPixelsPerEdge | ( | ) | const |
Definition at line 378 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::NaniteMaxPixelsPerEdge.
int32 UAgrarsenseSettings::GetNumberOfWorkerThreads | ( | ) | const |
Returns the number of worker threads used by the Simulator.
Definition at line 189 of file AgrarsenseSettings.cpp.
EShadowCacheInvalidationBehavior UAgrarsenseSettings::GetShadowCacheInvalidationBehavior | ( | ) | const |
Definition at line 383 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::FoliageShadowCacheInvalidationBehaviour, and GraphicsSettings.
bool UAgrarsenseSettings::GetShadowCSMCache | ( | ) | const |
Get Shadow CSM cache
Definition at line 277 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::ShadowCSMCaching.
|
inline |
Get if spectator rain and snowfall niagara system should be visible
Definition at line 141 of file AgrarsenseSettings.h.
|
inline |
Get the max of the spectator pawn
Definition at line 131 of file AgrarsenseSettings.h.
bool UAgrarsenseSettings::GetStartWindowInitiallyMinimized | ( | ) | const |
Get if new UnrealWindow's start minimized instead of popping in front of everything.
Definition at line 388 of file AgrarsenseSettings.cpp.
References SimulationSettings, and FGlobalSimulationSettings::StartCameraWindowsMinimized.
int32 UAgrarsenseSettings::GetWorldPositionOffsetRenderDistance | ( | ) | const |
Definition at line 373 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::WorldPositionOffsetDistance.
Referenced by AInstancedRenderer::BeginPlay().
|
inlinestatic |
Check if currently playing in the main menu map.
Definition at line 405 of file AgrarsenseSettings.h.
Referenced by ATagger::BeginPlay(), and USimulatorJsonParser::ParseAndOperateJSONFile().
|
private |
Definition at line 821 of file AgrarsenseSettings.cpp.
Referenced by SetUltraWithRaytracingLevel().
|
inlinestatic |
Is simulation paused
Definition at line 423 of file AgrarsenseSettings.h.
References FGlobalSimulationSettings::IsSimulationPaused.
|
override |
Load and apply saved settings
Definition at line 132 of file AgrarsenseSettings.cpp.
|
private |
Definition at line 788 of file AgrarsenseSettings.cpp.
References ASensor::GetSensorType(), NumberOfPostProcessingSensors, SemanticSegmentationCamera, SetRenderCustomDepthPass(), and ThermalCamera.
Referenced by Setup().
|
private |
Definition at line 772 of file AgrarsenseSettings.cpp.
References ASensor::GetSensorType(), NumberOfPostProcessingSensors, SemanticSegmentationCamera, SetRenderCustomDepthPass(), and ThermalCamera.
Referenced by Setup().
|
private |
Definition at line 145 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::AntiAliasingMethod, UEnumUtilities::ConvertStringToQualityLevel(), FGlobalGraphicsSettings::DisableSpectatorRendering, GraphicsSettings, FGlobalGraphicsSettings::QualityLevel, SimulationSettings, and FGlobalSimulationSettings::StartCameraWindowsMinimized.
Referenced by PostInitProperties().
void UAgrarsenseSettings::PauseSimulation | ( | ) |
Pause the Simulator immediately.
Definition at line 618 of file AgrarsenseSettings.cpp.
References CurrentWorld, FGlobalSimulationSettings::IsSimulationPaused, SimulatorLog::Log(), and SimulationSettings.
Referenced by PauseSimulationEndOfThisFrame().
void UAgrarsenseSettings::PauseSimulationEndOfThisFrame | ( | ) |
Pauses the Simulator after the end of this frame.
Definition at line 644 of file AgrarsenseSettings.cpp.
References EndOfFrameHandle, FGlobalSimulationSettings::IsSimulationPaused, PauseSimulation(), and SimulationSettings.
Referenced by AdvanceFrameCount(), AdvanceTime(), and UROSCommands::HandlePauseSimulator().
|
overridevirtual |
Definition at line 115 of file AgrarsenseSettings.cpp.
References ParseLaunchArguments().
void UAgrarsenseSettings::SetAntiAliasingMethod | ( | EAntiAliasing | AntiAliasingMethod | ) |
Override anti aliasing method. Default TAA.
AntiAliasingMethod |
Definition at line 450 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::AntiAliasingMethod, CurrentWorld, FXAA, GraphicsSettings, NONE, OnGraphicsSettingsChanged, TAA, and TSR.
Referenced by SetAntiAliasingMethodFromString(), and SetGraphicsSettings().
void UAgrarsenseSettings::SetAntiAliasingMethodFromString | ( | const FString & | AntiAliasingMethodString | ) |
@Override anti aliasing method using a string.
AntiAliasingMethodString |
Definition at line 492 of file AgrarsenseSettings.cpp.
References UEnumUtilities::ConvertStringToAntiAliasingMethod(), and SetAntiAliasingMethod().
|
private |
Definition at line 922 of file AgrarsenseSettings.cpp.
References CurrentWorld, DisableRaytracing(), and SetShadowCacheInvalidationBehavior().
Referenced by SetQualityLevel().
void UAgrarsenseSettings::SetGlobalTargetFrameRate | ( | int | NewTargetFrameRate | ) |
Sets the global target frame rate for the Simulator. This function allows you to specify a target frame rate in frames per second (FPS) that Unreal Engine will attempt to maintain.
NewTargetFrameRate | The desired target frame rate to set (in FPS). |
Definition at line 552 of file AgrarsenseSettings.cpp.
References ApplySettings().
Referenced by UROSCommands::HandleSetGlobalTargetFrameRate().
void UAgrarsenseSettings::SetGlobalTimeDilation | ( | float | TimeDilation | ) |
Set the global time dilation factor, affecting the entire simulation tick time flow. This function allows you to control the time dilation factor for the entire game world. Time dilation affects the speed of all game actors, animations, and other time-dependent processes.
TimeDilation | The desired time dilation factor. A value of 1.0 represents real-time, while values less than 1.0 slow down time, and values greater than 1.0 speed it up. |
Definition at line 570 of file AgrarsenseSettings.cpp.
References CurrentWorld, SimulatorLog::Log(), SimulationSettings, and FGlobalSimulationSettings::TimeDilation.
Referenced by UROSCommands::HandleSetGlobalTimeDilation(), and SetSimulationSettings().
void UAgrarsenseSettings::SetGraphicsSettings | ( | FGlobalGraphicsSettings | NewSettings | ) |
Change global graphics settings.
NewSettings | The new graphics settings to apply. |
Definition at line 208 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::AntiAliasingMethod, FGlobalGraphicsSettings::DisableSpectatorRendering, GraphicsSettings, FGlobalGraphicsSettings::QualityLevel, FGlobalGraphicsSettings::RenderGrass, SetAntiAliasingMethod(), SetGrassVisibility(), SetQualityLevel(), SetShadowCSMCache(), SetUseVirtualShadowMaps(), SetWorldRendering(), FGlobalGraphicsSettings::ShadowCSMCaching, and FGlobalGraphicsSettings::UseVirtualShadowMaps.
Referenced by ApplySettings().
void UAgrarsenseSettings::SetGrassVisibility | ( | bool | Visible | ) |
Set grass rendering visibility.
Definition at line 248 of file AgrarsenseSettings.cpp.
References CurrentWorld, GraphicsSettings, OnGraphicsSettingsChanged, and FGlobalGraphicsSettings::RenderGrass.
Referenced by SetGraphicsSettings().
void UAgrarsenseSettings::SetInstancedRenderingVisibility | ( | bool | Visible | ) |
Set instanced rendering visibility which is most static objects. Mainly for debugging purposes.
Definition at line 307 of file AgrarsenseSettings.cpp.
References CurrentWorld, UAgrarsenseStatics::GetInstancedRenderer(), and AInstancedRenderer::SetInstancedRendering().
|
private |
Definition at line 960 of file AgrarsenseSettings.cpp.
References CurrentWorld, DisableRaytracing(), and SetShadowCacheInvalidationBehavior().
Referenced by SetQualityLevel().
void UAgrarsenseSettings::SetNaniteMaxPixelsPerEdge | ( | float | MaxPixelsPerEdge = 1.0f | ) |
Definition at line 327 of file AgrarsenseSettings.cpp.
References CurrentWorld, GraphicsSettings, FGlobalGraphicsSettings::NaniteMaxPixelsPerEdge, and OnGraphicsSettingsChanged.
Referenced by UROSCommands::HandleSetNaniteMaxPixelsPerEdge().
void UAgrarsenseSettings::SetQualityLevel | ( | EQualityLevel | newQualityLevel | ) |
Set new Graphics quality level.
qualityLevel | EQualityLevel enum |
Definition at line 512 of file AgrarsenseSettings.cpp.
References Balanced, UEnumUtilities::ConvertQualityLevelToString(), GraphicsSettings, SimulatorLog::Log(), Low, OnGraphicsSettingsChanged, FGlobalGraphicsSettings::QualityLevel, SetBalancedQualityLevel(), SetLowQualityLevel(), SetUltraQualityLevel(), SetUltraWithRaytracingLevel(), Ultra, and UltraRaytracing.
Referenced by SetGraphicsSettings(), and SetQualityLevelFromString().
void UAgrarsenseSettings::SetQualityLevelFromString | ( | const FString & | QualityLevelString | ) |
Set new graphics quality level from string parsed to quality level enum.
FString& | QualityLevelString |
Definition at line 542 of file AgrarsenseSettings.cpp.
References UEnumUtilities::ConvertStringToQualityLevel(), and SetQualityLevel().
Referenced by UROSCommands::HandleSetQualityLevel().
void UAgrarsenseSettings::SetRenderCustomDepthPass | ( | bool | RenderCustomDepthPass | ) |
Set should custom depth pass be rendered at all.
Definition at line 398 of file AgrarsenseSettings.cpp.
References CurrentWorld, and RenderCustomDepth.
Referenced by OnSensorDestroyed(), and OnSensorSpawned().
void UAgrarsenseSettings::SetShadowCacheInvalidationBehavior | ( | EShadowCacheInvalidationBehavior | Behaviour = EShadowCacheInvalidationBehavior::Rigid | ) |
Definition at line 342 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::FoliageShadowCacheInvalidationBehaviour, GraphicsSettings, and OnGraphicsSettingsChanged.
Referenced by SetBalancedQualityLevel(), SetLowQualityLevel(), SetShadowCacheInvalidationBehaviorFromString(), and SetUltraQualityLevel().
void UAgrarsenseSettings::SetShadowCacheInvalidationBehaviorFromString | ( | const FString & | BehaviourString | ) |
Set Shadow cache invalidation behavior option from string.
BehaviourString | String to convert to enum |
Definition at line 351 of file AgrarsenseSettings.cpp.
References SetShadowCacheInvalidationBehavior().
void UAgrarsenseSettings::SetShadowCSMCache | ( | bool | CacheShadowCSM | ) |
Definition at line 282 of file AgrarsenseSettings.cpp.
References CurrentWorld, GraphicsSettings, OnGraphicsSettingsChanged, and FGlobalGraphicsSettings::ShadowCSMCaching.
Referenced by SetGraphicsSettings().
void UAgrarsenseSettings::SetShowSpectatorRainAndSnowfall | ( | bool | Show | ) |
Set if specator rain and snowfall niagara system is enabled
Definition at line 601 of file AgrarsenseSettings.cpp.
References CurrentWorld, UAgrarsenseStatics::GetSpectator(), ASpectator::IsNiagaraComponentVisible(), ASpectator::SetNiagaraComponentVisibility(), FGlobalSimulationSettings::ShowSpectatorRainAndSnowfall, and SimulationSettings.
Referenced by SetSimulationSettings().
void UAgrarsenseSettings::SetSimulationSettings | ( | FGlobalSimulationSettings | NewSettings | ) |
Change global simulation settings
NewSettings | The new simulation settings to apply |
Definition at line 233 of file AgrarsenseSettings.cpp.
References SetGlobalTimeDilation(), SetShowSpectatorRainAndSnowfall(), SetSpectatorMaxSpeed(), SetStartWindowInitiallyMinimized(), FGlobalSimulationSettings::ShowSpectatorRainAndSnowfall, SimulationSettings, FGlobalSimulationSettings::SpectatorMaxSpeed, FGlobalSimulationSettings::StartCameraWindowsMinimized, and FGlobalSimulationSettings::TimeDilation.
Referenced by ApplySettings().
void UAgrarsenseSettings::SetSpectatorMaxSpeed | ( | float | MaxSpeed | ) |
Set the max speed of the spectator pawn
Definition at line 585 of file AgrarsenseSettings.cpp.
References CurrentWorld, ASpectator::GetMaxSpeed(), UAgrarsenseStatics::GetSpectator(), ASpectator::SetMaxSpeed(), SimulationSettings, and FGlobalSimulationSettings::SpectatorMaxSpeed.
Referenced by SetSimulationSettings().
void UAgrarsenseSettings::SetStartWindowInitiallyMinimized | ( | bool | Minimized | ) |
Set should new UnrealWindow's start minimized instead of popping in front of everything.
Definition at line 393 of file AgrarsenseSettings.cpp.
References SimulationSettings, and FGlobalSimulationSettings::StartCameraWindowsMinimized.
Referenced by SetSimulationSettings().
|
private |
Definition at line 883 of file AgrarsenseSettings.cpp.
References CurrentWorld, DisableRaytracing(), and SetShadowCacheInvalidationBehavior().
Referenced by SetQualityLevel(), and SetUltraWithRaytracingLevel().
|
private |
Definition at line 808 of file AgrarsenseSettings.cpp.
References EnableRaytracing(), IsRaytracingSupported(), SimulatorLog::Log(), and SetUltraQualityLevel().
Referenced by SetQualityLevel().
void UAgrarsenseSettings::Setup | ( | UWorld * | World | ) |
Setup the settings with the new world, and apply settings.
World |
Definition at line 45 of file AgrarsenseSettings.cpp.
References ApplySettings(), CurrentMapName, CurrentWorld, USensorManager::Get(), IsMainMenu, FGlobalSimulationSettings::IsSimulationPaused, USensorManager::OnSensorDestroyed, OnSensorDestroyed(), USensorManager::OnSensorSpawned, OnSensorSpawned(), RenderCustomDepth, SetWindowMode(), and SimulationSettings.
Referenced by AAgrarsenseGameModeBase::SpawnNeededActorsInitGame().
void UAgrarsenseSettings::SetUseVirtualShadowMaps | ( | bool | UseVirtualShadowMaps | ) |
Set should virtual shadow maps be used, otherwise regular shadow maps are used.
Definition at line 415 of file AgrarsenseSettings.cpp.
References CurrentWorld, GraphicsSettings, OnGraphicsSettingsChanged, and FGlobalGraphicsSettings::UseVirtualShadowMaps.
Referenced by SetGraphicsSettings().
void UAgrarsenseSettings::SetWindowMode | ( | EWindowMode::Type | WindowType | ) |
Set Main unreal window type
Definition at line 220 of file AgrarsenseSettings.cpp.
Referenced by Setup().
void UAgrarsenseSettings::SetWorldPositionOffsetRenderDistance | ( | int32 | WorldPositionOffsetDistance | ) |
Definition at line 321 of file AgrarsenseSettings.cpp.
References GraphicsSettings, OnGraphicsSettingsChanged, and FGlobalGraphicsSettings::WorldPositionOffsetDistance.
Referenced by UROSCommands::HandleSetWPO().
void UAgrarsenseSettings::SetWorldRendering | ( | bool | enabled | ) |
Set main Unreal window world rendering on or off. Doesn't stop rendering UI elements.
enabled | boolean to set rendering on or off |
Definition at line 498 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::DisableSpectatorRendering, GraphicsSettings, SimulatorLog::Log(), and OnGraphicsSettingsChanged.
Referenced by UROSCommands::HandleSetWorldRendering(), and SetGraphicsSettings().
|
inlinestatic |
Static method to determine whether the Unreal window should start in a minimized state. Called by UnrealWindow.cpp.
Definition at line 396 of file AgrarsenseSettings.h.
Referenced by FUnrealWindow::FUnrealWindow().
void UAgrarsenseSettings::UnPauseSimulation | ( | ) |
Unpause the simulator immediately.
Definition at line 631 of file AgrarsenseSettings.cpp.
References CurrentWorld, FGlobalSimulationSettings::IsSimulationPaused, SimulatorLog::Log(), SimulationSettings, and FGlobalSimulationSettings::TimeDilation.
Referenced by AdvanceFrameCount(), AdvanceTime(), and UROSCommands::HandleUnPauseSimulator().
|
friend |
Definition at line 440 of file AgrarsenseSettings.h.
|
private |
Definition at line 480 of file AgrarsenseSettings.h.
Referenced by AdvanceFrameCount().
|
staticprivate |
Definition at line 512 of file AgrarsenseSettings.h.
Referenced by Setup().
|
private |
Definition at line 471 of file AgrarsenseSettings.h.
Referenced by AdvanceTime(), ChangeMapByMapPath(), DisableRaytracing(), EnableRaytracing(), GetGlobalTimeDilation(), PauseSimulation(), SetAntiAliasingMethod(), SetBalancedQualityLevel(), SetGlobalTimeDilation(), SetGrassVisibility(), SetInstancedRenderingVisibility(), SetLowQualityLevel(), SetNaniteMaxPixelsPerEdge(), SetRenderCustomDepthPass(), SetShadowCSMCache(), SetShowSpectatorRainAndSnowfall(), SetSpectatorMaxSpeed(), SetUltraQualityLevel(), Setup(), SetUseVirtualShadowMaps(), and UnPauseSimulation().
|
private |
Definition at line 484 of file AgrarsenseSettings.h.
Referenced by AdvanceFrameCount(), and PauseSimulationEndOfThisFrame().
|
private |
Definition at line 481 of file AgrarsenseSettings.h.
Referenced by AdvanceFrameCount().
|
private |
Definition at line 477 of file AgrarsenseSettings.h.
Referenced by ApplySettings(), GetAntiAliasingMethod(), GetGrassVisibility(), GetIsUsingVirtualShadowMaps(), GetNaniteMaxPixelsPerEdge(), GetShadowCacheInvalidationBehavior(), GetShadowCSMCache(), GetWorldPositionOffsetRenderDistance(), ParseLaunchArguments(), SetAntiAliasingMethod(), SetGraphicsSettings(), SetGrassVisibility(), SetNaniteMaxPixelsPerEdge(), SetQualityLevel(), SetShadowCacheInvalidationBehavior(), SetShadowCSMCache(), SetUseVirtualShadowMaps(), SetWorldPositionOffsetRenderDistance(), and SetWorldRendering().
|
staticprivate |
Definition at line 511 of file AgrarsenseSettings.h.
Referenced by Setup().
|
private |
Definition at line 492 of file AgrarsenseSettings.h.
Referenced by ChangeMapByName().
|
private |
Definition at line 502 of file AgrarsenseSettings.h.
Referenced by ChangeMapByName().
|
private |
Definition at line 466 of file AgrarsenseSettings.h.
Referenced by OnSensorDestroyed(), and OnSensorSpawned().
FGraphicsSettingsDelegate UAgrarsenseSettings::OnGraphicsSettingsChanged |
On Graphics settings changed event
Definition at line 390 of file AgrarsenseSettings.h.
Referenced by AInstancedRenderer::BeginPlay(), AInstancedRenderer::EndPlay(), SetAntiAliasingMethod(), SetGrassVisibility(), SetNaniteMaxPixelsPerEdge(), SetQualityLevel(), SetShadowCacheInvalidationBehavior(), SetShadowCSMCache(), SetUseVirtualShadowMaps(), SetWorldPositionOffsetRenderDistance(), and SetWorldRendering().
|
private |
Definition at line 468 of file AgrarsenseSettings.h.
Referenced by GetIsRenderingCustomDepthPass(), SetRenderCustomDepthPass(), and Setup().
|
private |
Definition at line 474 of file AgrarsenseSettings.h.
Referenced by ApplySettings(), GetGlobalTimeDilation(), GetStartWindowInitiallyMinimized(), ParseLaunchArguments(), PauseSimulation(), PauseSimulationEndOfThisFrame(), SetGlobalTimeDilation(), SetShowSpectatorRainAndSnowfall(), SetSimulationSettings(), SetSpectatorMaxSpeed(), SetStartWindowInitiallyMinimized(), Setup(), and UnPauseSimulation().