You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Cleanup usage of most of STL from mutable runtime. Exception is string for now. Cleanup a lot of unused code like reference implementations, node cloning boilerplate, etc. #preflight 63441fcf7045f13c96b43bcf [REVIEW] [at]max.garcia [FYI] [at]alexei.lebedev [FYI] genis.sole [CL 22454093 by jordi rovira in ue5-main branch]
102 lines
2.7 KiB
C++
102 lines
2.7 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MuR/Ptr.h"
|
|
#include "MuR/RefCounted.h"
|
|
#include "MuT/Node.h"
|
|
#include "MuT/NodeMesh.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
// Forward definitions
|
|
class NodeMeshTable;
|
|
typedef Ptr<NodeMeshTable> NodeMeshTablePtr;
|
|
typedef Ptr<const NodeMeshTable> NodeMeshTablePtrConst;
|
|
|
|
class NodeLayout;
|
|
typedef Ptr<NodeLayout> NodeLayoutPtr;
|
|
typedef Ptr<const NodeLayout> NodeLayoutPtrConst;
|
|
|
|
class Table;
|
|
typedef Ptr<Table> TablePtr;
|
|
typedef Ptr<const Table> TablePtrConst;
|
|
|
|
|
|
//! This node provides the meshes stored in the column of a table.
|
|
//! \ingroup transform
|
|
class MUTABLETOOLS_API NodeMeshTable : public NodeMesh
|
|
{
|
|
public:
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Life cycle
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
NodeMeshTable();
|
|
|
|
void SerialiseWrapper(OutputArchive& arch) const override;
|
|
static void Serialise( const NodeMeshTable* pNode, OutputArchive& arch );
|
|
static NodeMeshTablePtr 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
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
//! Set the name of the implicit table parameter.
|
|
void SetParameterName( const char* strName );
|
|
|
|
//!
|
|
TablePtr GetTable() const;
|
|
void SetTable( TablePtr );
|
|
|
|
//!
|
|
const char* GetColumn() const;
|
|
void SetColumn( const char* strName );
|
|
|
|
//! Get the number of layouts defined in the meshes on this column.
|
|
int GetLayoutCount() const;
|
|
void SetLayoutCount( int );
|
|
|
|
//! Get the node defining a layout of the meshes on this column.
|
|
NodeLayoutPtr GetLayout( int index ) const;
|
|
void SetLayout( int index, NodeLayoutPtr );
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Interface pattern
|
|
//-----------------------------------------------------------------------------------------
|
|
class Private;
|
|
Private* GetPrivate() const;
|
|
Node::Private* GetBasePrivate() const override;
|
|
|
|
|
|
protected:
|
|
|
|
//! Forbidden. Manage with the Ptr<> template.
|
|
~NodeMeshTable();
|
|
|
|
private:
|
|
|
|
Private* m_pD;
|
|
|
|
};
|
|
|
|
|
|
}
|