Files
UnrealEngineUWP/Engine/Source/Editor/AnimGraph/Classes/AnimGraphNode_MultiWayBlend.h
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

43 lines
1.5 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "AnimGraphNode_Base.h"
#include "AnimNodes/AnimNode_MultiWayBlend.h"
#include "AnimGraphNode_MultiWayBlend.generated.h"
UCLASS(MinimalAPI)
class UAnimGraphNode_MultiWayBlend : public UAnimGraphNode_Base
{
GENERATED_UCLASS_BODY()
UPROPERTY(EditAnywhere, Category=Settings)
FAnimNode_MultiWayBlend Node;
// Adds a new pose pin
//@TODO: Generalize this behavior (returning a list of actions/delegates maybe?)
ANIMGRAPH_API virtual void AddPinToBlendNode();
ANIMGRAPH_API virtual void RemovePinFromBlendNode(UEdGraphPin* Pin);
ANIMGRAPH_API virtual void ReallocatePinsDuringReconstruction(TArray<UEdGraphPin*>& OldPins) override;
//~ Begin UEdGraphNode Interface.
virtual FLinearColor GetNodeTitleColor() const override;
virtual FText GetTooltipText() const override;
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
virtual void PostPlacedNewNode() override;
//~ End UEdGraphNode Interface.
//~ Begin UAnimGraphNode_Base Interface
virtual FString GetNodeCategory() const override;
//~ End UAnimGraphNode_Base Interface
// UK2Node interface
virtual void GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const override;
// End of UK2Node interface
private:
int32 RemovedPinArrayIndex;
// removes removed pins and adjusts array indices of remained pins
void RemovePinsFromOldPins(TArray<UEdGraphPin*>& OldPins, int32 RemovedArrayIndex);
};