2021-10-06 11:19:01 -04:00
|
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
2022-07-20 12:03:45 -04:00
|
|
|
|
#include "Containers/UnrealString.h"
|
|
|
|
|
|
#include "CoreTypes.h"
|
|
|
|
|
|
#include "HAL/PlatformCrt.h"
|
|
|
|
|
|
#include "Misc/Optional.h"
|
2021-10-06 11:19:01 -04:00
|
|
|
|
#include "VisualGraphElement.h"
|
|
|
|
|
|
|
2022-07-20 12:03:45 -04:00
|
|
|
|
class FVisualGraph;
|
|
|
|
|
|
|
2021-10-06 11:19:01 -04:00
|
|
|
|
class VISUALGRAPHUTILS_API FVisualGraphNode : public FVisualGraphElement
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
FVisualGraphNode()
|
|
|
|
|
|
: FVisualGraphElement()
|
|
|
|
|
|
, Shape()
|
|
|
|
|
|
, SubGraphIndex(INDEX_NONE)
|
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
virtual ~FVisualGraphNode() override {}
|
|
|
|
|
|
|
|
|
|
|
|
TOptional<EVisualGraphShape> GetShape() const { return Shape; }
|
|
|
|
|
|
void SetShape(EVisualGraphShape InValue) { Shape = InValue; }
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
virtual FString DumpDot(const FVisualGraph* InGraph, int32 InIndendation) const override;
|
|
|
|
|
|
|
|
|
|
|
|
TOptional<EVisualGraphShape> Shape;
|
|
|
|
|
|
int32 SubGraphIndex;
|
|
|
|
|
|
|
|
|
|
|
|
friend class FVisualGraph;
|
|
|
|
|
|
friend class FVisualGraphSubGraph;
|
|
|
|
|
|
};
|