Files
UnrealEngineUWP/Engine/Source/Editor/LevelAssetEditor/Private/LevelEditorToolsContextInterfaces.cpp
brooke hubert 890a5c72c2 Implement Lasso Selection tool (brush based selection) in asset placement mode.
# 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]
2021-02-08 17:13:32 -04:00

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;
}