Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Classes/SoundCueGraph/SoundCueGraphNode.h
Jaroslaw Palczynski f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00

54 lines
1.9 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SoundCueGraphNode_Base.h"
#include "SoundCueGraphNode.generated.h"
UCLASS(MinimalAPI)
class USoundCueGraphNode : public USoundCueGraphNode_Base
{
GENERATED_UCLASS_BODY()
/** The SoundNode this represents */
UPROPERTY(VisibleAnywhere, instanced, Category=Sound)
USoundNode* SoundNode;
/** Set the SoundNode this represents (also assigns this to the SoundNode in Editor)*/
UNREALED_API void SetSoundNode(USoundNode* InSoundNode);
/** Fix up the node's owner after being copied */
UNREALED_API void PostCopyNode();
/** Create a new input pin for this node */
UNREALED_API void CreateInputPin();
/** Add an input pin to this node and recompile the SoundCue */
UNREALED_API void AddInputPin();
/** Remove a specific input pin from this node and recompile the SoundCue */
UNREALED_API void RemoveInputPin(UEdGraphPin* InGraphPin);
/** Estimate the width of this Node from the length of its title */
UNREALED_API int32 EstimateNodeWidth() const;
/** Checks whether an input can be added to this node */
UNREALED_API bool CanAddInputPin() const;
// USoundCueGraphNode_Base interface
virtual void CreateInputPins() override;
// End of USoundCueGraphNode_Base interface
// UEdGraphNode interface
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
virtual void PrepareForCopying() override;
virtual void GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const override;
virtual FText GetTooltipText() const override;
virtual FString GetDocumentationExcerptName() const override;
// End of UEdGraphNode interface
// UObject interface
virtual void PostLoad() override;
virtual void PostEditImport() override;
virtual void PostDuplicate(bool bDuplicateForPIE) override;
// End of UObject interface
private:
/** Make sure the soundnode is owned by the SoundCue */
void ResetSoundNodeOwner();
};