Files
UnrealEngineUWP/Engine/Source/Editor/AnimGraph/Public/IAnimNodeEditMode.h
michael daum 7c6d7b3ab2 Drastically reduce the number of targets depending on UnrealWidget.h
#rb lauren.barnes

[CL 14266936 by michael daum in ue5-main branch]
2020-09-07 20:36:09 -04:00

43 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UnrealWidgetFwd.h"
#include "IPersonaEditMode.h"
/** Base interface for skeletal control edit modes */
class IAnimNodeEditMode : public IPersonaEditMode
{
public:
/** Returns the coordinate system that should be used for this bone */
virtual ECoordSystem GetWidgetCoordinateSystem() const = 0;
/** @return current widget mode this anim graph node supports */
virtual UE::Widget::EWidgetMode GetWidgetMode() const = 0;
/** Called when the user changed widget mode by pressing "Space" key */
virtual UE::Widget::EWidgetMode ChangeToNextWidgetMode(UE::Widget::EWidgetMode CurWidgetMode) = 0;
/** Called when the user set widget mode directly, returns true if InWidgetMode is available */
virtual bool SetWidgetMode(UE::Widget::EWidgetMode InWidgetMode) = 0;
/** Get the bone that the skeletal control is manipulating */
virtual FName GetSelectedBone() const = 0;
/** Called when the widget is dragged in translation mode */
virtual void DoTranslation(FVector& InTranslation) = 0;
/** Called when the widget is dragged in rotation mode */
virtual void DoRotation(FRotator& InRotation) = 0;
/** Called when the widget is dragged in scale mode */
virtual void DoScale(FVector& InScale) = 0;
/** Called when entering this edit mode */
virtual void EnterMode(class UAnimGraphNode_Base* InEditorNode, struct FAnimNode_Base* InRuntimeNode) = 0;
/** Called when exiting this edit mode */
virtual void ExitMode() = 0;
};