You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
# Also exposed the typed element selection set to the queries API in ITF. # Implemented a stash/pop selection on the typed element selection set for modes to use. #Jira UE-107091 #rb jamie.dale chris.gagnon ryan.schmidt #ROBOMERGE-SOURCE: CL 15359303 in //UE5/Release-5.0-EarlyAccess/... #ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668) [CL 15360406 by brooke hubert in ue5-main branch]
84 lines
2.3 KiB
C++
84 lines
2.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "LevelEditorToolsContextInterfaces.h"
|
|
|
|
#include "InteractiveToolsContext.h"
|
|
#include "Math/Quat.h"
|
|
|
|
FLevelEditorToolsContextQueriesImpl::FLevelEditorToolsContextQueriesImpl(UInteractiveToolsContext* InContext)
|
|
: ToolsContext(InContext)
|
|
{
|
|
check(ToolsContext);
|
|
}
|
|
|
|
void FLevelEditorToolsContextQueriesImpl::GetCurrentSelectionState(FToolBuilderState& StateOut) const
|
|
{
|
|
StateOut.ToolManager = ToolsContext->ToolManager;
|
|
StateOut.GizmoManager = ToolsContext->GizmoManager;
|
|
StateOut.World = nullptr;
|
|
StateOut.SelectedActors.Empty();
|
|
StateOut.SelectedComponents.Empty();
|
|
StateOut.TypedElementSelectionSet.Reset();
|
|
}
|
|
|
|
void FLevelEditorToolsContextQueriesImpl::GetCurrentViewState(FViewCameraState& StateOut) const
|
|
{
|
|
StateOut.bIsOrthographic = false;
|
|
StateOut.Position = FVector::ZeroVector;
|
|
StateOut.HorizontalFOVDegrees = 100.f;
|
|
StateOut.AspectRatio = 1.f;
|
|
StateOut.Orientation = FQuat::Identity;
|
|
StateOut.bIsVR = false;
|
|
}
|
|
|
|
EToolContextCoordinateSystem FLevelEditorToolsContextQueriesImpl::GetCurrentCoordinateSystem() const
|
|
{
|
|
return EToolContextCoordinateSystem::World;
|
|
}
|
|
|
|
bool FLevelEditorToolsContextQueriesImpl::ExecuteSceneSnapQuery(const FSceneSnapQueryRequest& Request, TArray<FSceneSnapQueryResult>& Results) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
UMaterialInterface* FLevelEditorToolsContextQueriesImpl::GetStandardMaterial(EStandardToolContextMaterials MaterialType) const
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
HHitProxy* FLevelEditorToolsContextQueriesImpl::GetHitProxy(int32 X, int32 Y) const
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
void FLevelEditorContextTransactionImpl::DisplayMessage(const FText& Message, EToolMessageLevel Level)
|
|
{
|
|
}
|
|
|
|
void FLevelEditorContextTransactionImpl::PostInvalidation()
|
|
{
|
|
}
|
|
|
|
void FLevelEditorContextTransactionImpl::BeginUndoTransaction(const FText& Description)
|
|
{
|
|
}
|
|
|
|
void FLevelEditorContextTransactionImpl::EndUndoTransaction()
|
|
{
|
|
}
|
|
|
|
void FLevelEditorContextTransactionImpl::AppendChange(UObject* TargetObject, TUniquePtr<FToolCommandChange> Change, const FText& Description)
|
|
{
|
|
}
|
|
|
|
bool FLevelEditorContextTransactionImpl::RequestSelectionChange(const FSelectedOjectsChangeList& SelectionChange)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FLevelEditorContextTransactionImpl::RequestToolSelectionStore(const UInteractiveToolStorableSelection* StorableSelection,
|
|
const FToolSelectionStoreParams& Params)
|
|
{
|
|
return false;
|
|
}
|