You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb jordi.rovira,gerard.martin #preflight 642d54a6c6769c6082c090ca [CL 24928760 by henry falconer in ue5-main branch]
73 lines
2.2 KiB
C++
73 lines
2.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MuR/ExtensionData.h"
|
|
#include "MuR/Ptr.h"
|
|
#include "MuR/RefCounted.h"
|
|
#include "MuT/NodeExtensionData.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
// Forward definitions
|
|
class NodeExtensionDataConstant;
|
|
typedef Ptr<NodeExtensionDataConstant> NodeExtensionDataConstantPtr;
|
|
typedef Ptr<const NodeExtensionDataConstant> NodeExtensionDataConstantPtrConst;
|
|
|
|
//! Node that outputs a constant ExtensionData
|
|
//! \ingroup model
|
|
class MUTABLETOOLS_API NodeExtensionDataConstant : public NodeExtensionData
|
|
{
|
|
public:
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Life cycle
|
|
//-----------------------------------------------------------------------------------------
|
|
NodeExtensionDataConstant();
|
|
|
|
void SerialiseWrapper(OutputArchive& arch) const override;
|
|
static void Serialise(const NodeExtensionDataConstant* pNode, OutputArchive& arch);
|
|
static NodeExtensionDataConstantPtr StaticUnserialise(InputArchive& arch);
|
|
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Node Interface
|
|
//-----------------------------------------------------------------------------------------
|
|
const NODE_TYPE* GetType() const override;
|
|
static const NODE_TYPE* GetStaticType();
|
|
|
|
int GetInputCount() const override;
|
|
Node* GetInputNode(int i) const override;
|
|
void SetInputNode(int i, NodePtr pNode) override;
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Own Interface
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
//! Get the constant ExtensionData that will be returned.
|
|
ExtensionDataPtrConst GetValue() const;
|
|
|
|
//! Set the constant ExtensionData that will be returned.
|
|
void SetValue(ExtensionDataPtrConst Value);
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Interface pattern
|
|
//-----------------------------------------------------------------------------------------
|
|
class Private;
|
|
Private* GetPrivate() const;
|
|
Node::Private* GetBasePrivate() const override;
|
|
|
|
protected:
|
|
//! Forbidden. Manage with the Ptr<> template.
|
|
~NodeExtensionDataConstant();
|
|
|
|
private:
|
|
Private* m_pD;
|
|
|
|
};
|
|
|
|
|
|
}
|