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 | SetWindowMode (EWindowMode::Type WindowType) |
void | SetSimulationSettings (FGlobalSimulationSettings NewSettings) |
void | SetWorldRendering (bool enabled) |
void | SetQualityLevel (EQualityLevel newQualityLevel) |
void | SetQualityLevelFromString (const FString &QualityLevelString) |
int32 | GetGlobalTargetFrameRate () const |
void | SetGlobalTargetFrameRate (int32 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 |
bool | IsRaytracingSupported () 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 () | |
void | SetGraphicsSettings (FGlobalGraphicsSettings NewSettings) |
bool | ParseLaunchArguments () |
void | SetUltraWithRaytracingLevel () |
void | EnableRaytracing () |
void | DisableRaytracing () |
void | SetUltraQualityLevel () |
void | SetBalancedQualityLevel () |
void | SetLowQualityLevel () |
Private Attributes | |
bool | RenderCustomDepth = true |
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 37 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 652 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 697 of file AgrarsenseSettings.cpp.
References CurrentWorld, PauseSimulationEndOfThisFrame(), and UnPauseSimulation().
Referenced by UROSCommands::HandleAdvanceTime().
|
override |
Definition at line 120 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 747 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 720 of file AgrarsenseSettings.cpp.
References ChangeMapByMapPath(), SimulatorLog::Log(), MapNames, and MapPaths.
Referenced by UROSCommands::HandleChangeMap().
|
private |
Definition at line 825 of file AgrarsenseSettings.cpp.
References CurrentWorld.
Referenced by SetBalancedQualityLevel(), SetLowQualityLevel(), and SetUltraQualityLevel().
|
private |
Definition at line 783 of file AgrarsenseSettings.cpp.
References CurrentWorld.
Referenced by SetUltraWithRaytracingLevel().
|
static |
Definition at line 110 of file AgrarsenseSettings.cpp.
Referenced by UAgrarsenseStatics::GetAgrarsenseSettings(), and AAgrarsenseGameModeBase::SpawnNeededActorsInitGame().
EAntiAliasing UAgrarsenseSettings::GetAntiAliasingMethod | ( | ) | const |
Get current anti aliasing method
Definition at line 429 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 177 of file AgrarsenseSettings.cpp.
|
inline |
Get current graphics quality level
Definition at line 354 of file AgrarsenseSettings.h.
|
inlinestatic |
Get Global Graphics settings.
Definition at line 426 of file AgrarsenseSettings.h.
|
inlinestatic |
Get Global simulation settings.
Definition at line 408 of file AgrarsenseSettings.h.
int32 UAgrarsenseSettings::GetGlobalTargetFrameRate | ( | ) | const |
Get the global target frame rate for the Simulator
Definition at line 531 of file AgrarsenseSettings.cpp.
float UAgrarsenseSettings::GetGlobalTimeDilation | ( | ) | const |
Get global time dilation factor, affecting the entire simulation tick time flow.
Definition at line 542 of file AgrarsenseSettings.cpp.
References CurrentWorld, SimulationSettings, and FGlobalSimulationSettings::TimeDilation.
bool UAgrarsenseSettings::GetGrassVisibility | ( | ) | const |
Get if grass visible or not
Definition at line 226 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::RenderGrass.
bool UAgrarsenseSettings::GetIsRenderingCustomDepthPass | ( | ) | const |
Get is rendering custom depth pass on.
Definition at line 424 of file AgrarsenseSettings.cpp.
References RenderCustomDepth.
bool UAgrarsenseSettings::GetIsUsingVirtualShadowMaps | ( | ) | const |
Get is rendering virtual shadow maps on.
Definition at line 419 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::UseVirtualShadowMaps.
|
inline |
Get map names as TArray. This TArray is hardcoded.
Definition at line 364 of file AgrarsenseSettings.h.
Referenced by UROSCommands::HandlePrintMaps().
|
inline |
Get map paths as TArray. This TArray is hardcoded.
Definition at line 374 of file AgrarsenseSettings.h.
float UAgrarsenseSettings::GetNaniteMaxPixelsPerEdge | ( | ) | const |
Definition at line 361 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 172 of file AgrarsenseSettings.cpp.
EShadowCacheInvalidationBehavior UAgrarsenseSettings::GetShadowCacheInvalidationBehavior | ( | ) | const |
Definition at line 366 of file AgrarsenseSettings.cpp.
References FGlobalGraphicsSettings::FoliageShadowCacheInvalidationBehaviour, and GraphicsSettings.
bool UAgrarsenseSettings::GetShadowCSMCache | ( | ) | const |
Get Shadow CSM cache
Definition at line 260 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::ShadowCSMCaching.
|
inline |
Get if spectator rain and snowfall niagara system should be visible
Definition at line 135 of file AgrarsenseSettings.h.
|
inline |
Get the max of the spectator pawn
Definition at line 125 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 371 of file AgrarsenseSettings.cpp.
References SimulationSettings, and FGlobalSimulationSettings::StartCameraWindowsMinimized.
int32 UAgrarsenseSettings::GetWorldPositionOffsetRenderDistance | ( | ) | const |
Definition at line 356 of file AgrarsenseSettings.cpp.
References GraphicsSettings, and FGlobalGraphicsSettings::WorldPositionOffsetDistance.
Referenced by AInstancedActorRenderer::BeginPlay().
|
inlinestatic |
Check if currently playing in the main menu map.
Definition at line 399 of file AgrarsenseSettings.h.
Referenced by ATagger::BeginPlay(), and USimulatorJsonParser::ParseAndOperateJSONFile().
bool UAgrarsenseSettings::IsRaytracingSupported | ( | ) | const |
Definition at line 769 of file AgrarsenseSettings.cpp.
Referenced by SetUltraWithRaytracingLevel().
|
inlinestatic |
Is simulation paused
Definition at line 417 of file AgrarsenseSettings.h.
References FGlobalSimulationSettings::IsSimulationPaused.
|
override |
Load and apply saved settings
Definition at line 115 of file AgrarsenseSettings.cpp.
|
private |
Definition at line 128 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 602 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 628 of file AgrarsenseSettings.cpp.
References EndOfFrameHandle, FGlobalSimulationSettings::IsSimulationPaused, PauseSimulation(), and SimulationSettings.
Referenced by AdvanceFrameCount(), AdvanceTime(), and UROSCommands::HandlePauseSimulator().
|
overridevirtual |
Definition at line 98 of file AgrarsenseSettings.cpp.
References ParseLaunchArguments().
void UAgrarsenseSettings::SetAntiAliasingMethod | ( | EAntiAliasing | AntiAliasingMethod | ) |
Override anti aliasing method. Default TAA.
AntiAliasingMethod |
Definition at line 434 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 476 of file AgrarsenseSettings.cpp.
References UEnumUtilities::ConvertStringToAntiAliasingMethod(), and SetAntiAliasingMethod().
|
private |
Definition at line 888 of file AgrarsenseSettings.cpp.
References CurrentWorld, DisableRaytracing(), and SetShadowCacheInvalidationBehavior().
Referenced by SetQualityLevel().
void UAgrarsenseSettings::SetGlobalTargetFrameRate | ( | int32 | 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 536 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 554 of file AgrarsenseSettings.cpp.
References CurrentWorld, SimulatorLog::Log(), SimulationSettings, and FGlobalSimulationSettings::TimeDilation.
Referenced by UROSCommands::HandleSetGlobalTimeDilation(), and SetSimulationSettings().
|
private |
Change global graphics settings.
NewSettings | The new graphics settings to apply. |
Definition at line 191 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 231 of file AgrarsenseSettings.cpp.
References CurrentWorld, GraphicsSettings, OnGraphicsSettingsChanged, and FGlobalGraphicsSettings::RenderGrass.
Referenced by UROSCommands::HandleSetGrassVisibility(), and SetGraphicsSettings().
void UAgrarsenseSettings::SetInstancedRenderingVisibility | ( | bool | Visible | ) |
Set instanced rendering visibility which is most static objects. Mainly for debugging purposes.
Definition at line 290 of file AgrarsenseSettings.cpp.
References CurrentWorld, UAgrarsenseStatics::GetInstancedRenderer(), and AInstancedRendererManager::SetInstancedRendering().
|
private |
Definition at line 926 of file AgrarsenseSettings.cpp.
References CurrentWorld, DisableRaytracing(), and SetShadowCacheInvalidationBehavior().
Referenced by SetQualityLevel().
void UAgrarsenseSettings::SetNaniteMaxPixelsPerEdge | ( | float | MaxPixelsPerEdge = 1.0f | ) |
Definition at line 310 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 496 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 526 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 381 of file AgrarsenseSettings.cpp.
References CurrentWorld, and RenderCustomDepth.
void UAgrarsenseSettings::SetShadowCacheInvalidationBehavior | ( | EShadowCacheInvalidationBehavior | Behaviour = EShadowCacheInvalidationBehavior::Rigid | ) |
Definition at line 325 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 334 of file AgrarsenseSettings.cpp.
References SetShadowCacheInvalidationBehavior().
void UAgrarsenseSettings::SetShadowCSMCache | ( | bool | CacheShadowCSM | ) |
Definition at line 265 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 585 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 216 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 569 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 376 of file AgrarsenseSettings.cpp.
References SimulationSettings, and FGlobalSimulationSettings::StartCameraWindowsMinimized.
Referenced by SetSimulationSettings().
|
private |
Definition at line 849 of file AgrarsenseSettings.cpp.
References CurrentWorld, DisableRaytracing(), and SetShadowCacheInvalidationBehavior().
Referenced by SetQualityLevel(), and SetUltraWithRaytracingLevel().
|
private |
Definition at line 756 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 41 of file AgrarsenseSettings.cpp.
References ApplySettings(), CurrentMapName, CurrentWorld, IsMainMenu, FGlobalSimulationSettings::IsSimulationPaused, 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 399 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 203 of file AgrarsenseSettings.cpp.
Referenced by Setup().
void UAgrarsenseSettings::SetWorldPositionOffsetRenderDistance | ( | int32 | WorldPositionOffsetDistance | ) |
Definition at line 304 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 482 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 390 of file AgrarsenseSettings.h.
Referenced by ACamera::SetupCamera().
void UAgrarsenseSettings::UnPauseSimulation | ( | ) |
Unpause the simulator immediately.
Definition at line 615 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 437 of file AgrarsenseSettings.h.
|
private |
Definition at line 473 of file AgrarsenseSettings.h.
Referenced by AdvanceFrameCount().
|
staticprivate |
Definition at line 509 of file AgrarsenseSettings.h.
Referenced by Setup().
|
private |
Definition at line 464 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 477 of file AgrarsenseSettings.h.
Referenced by AdvanceFrameCount(), and PauseSimulationEndOfThisFrame().
|
private |
Definition at line 474 of file AgrarsenseSettings.h.
Referenced by AdvanceFrameCount().
|
private |
Definition at line 470 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 508 of file AgrarsenseSettings.h.
Referenced by Setup().
|
private |
Definition at line 485 of file AgrarsenseSettings.h.
Referenced by ChangeMapByName().
|
private |
Definition at line 497 of file AgrarsenseSettings.h.
Referenced by ChangeMapByName().
FGraphicsSettingsDelegate UAgrarsenseSettings::OnGraphicsSettingsChanged |
On Graphics settings changed event
Definition at line 384 of file AgrarsenseSettings.h.
Referenced by AInstancedActorRenderer::BeginPlay(), AInstancedActorRenderer::EndPlay(), SetAntiAliasingMethod(), SetGrassVisibility(), SetNaniteMaxPixelsPerEdge(), SetQualityLevel(), SetShadowCacheInvalidationBehavior(), SetShadowCSMCache(), SetUseVirtualShadowMaps(), SetWorldPositionOffsetRenderDistance(), and SetWorldRendering().
|
private |
Definition at line 461 of file AgrarsenseSettings.h.
Referenced by GetIsRenderingCustomDepthPass(), and SetRenderCustomDepthPass().
|
private |
Definition at line 467 of file AgrarsenseSettings.h.
Referenced by ApplySettings(), GetGlobalTimeDilation(), GetStartWindowInitiallyMinimized(), ParseLaunchArguments(), PauseSimulation(), PauseSimulationEndOfThisFrame(), SetGlobalTimeDilation(), SetShowSpectatorRainAndSnowfall(), SetSimulationSettings(), SetSpectatorMaxSpeed(), SetStartWindowInitiallyMinimized(), Setup(), and UnPauseSimulation().