CriWare Unreal Engine
Plug-ins for CriWare solutions.
载入中...
搜索中...
未找到
UAtomRackGraph类 参考

#include <AtomRackGraph.h>

类 UAtomRackGraph 继承关系图:

Public 成员函数

 UAtomRackGraph (const FObjectInitializer &ObjectInitializer)
void AddDroppedAtomRacks (const TSet< UAtomRackBase * > &AtomRacks, int32 NodePosX, int32 NodePosY)
CRIWARECOREEDITOR_API void AddNewAtomRack (UEdGraphPin *FromPin, UAtomRackBase *AtomRack, int32 NodePosX, int32 NodePosY, bool bSelectNewNode=true)
CRIWARECOREEDITOR_API UAtomRackGraphNode * FindExistingNode (UAtomRackBase *AtomRack) const
UAtomRackBase * GetRootAtomRack () const
bool IsRackDisplayed (UAtomRackBase *AtomRack) const
void LinkAtomRacks ()
CRIWARECOREEDITOR_API void RebuildGraph ()
CRIWARECOREEDITOR_API void RecursivelyRemoveNodes (const TSet< UObject * > NodesToRemove)
CRIWARECOREEDITOR_API void RefreshGraphLinks ()
CRIWARECOREEDITOR_API void SetRootAtomRack (UAtomRackBase *InAtomRack)

Private 成员函数

int32 ConstructNodes (UAtomRackBase *AtomRack, int32 NodePosX, int32 NodePosY, bool bSelectNewNode=true)
UAtomRackGraphNode * CreateNode (UAtomRackBase *AtomRack, int32 NodePosX, int32 NodePosY, bool bSelectNewNode=true)
int32 RecursivelyConstructChildNodes (UAtomRackGraphNode *ParentNode, const TMap< UAtomRackBase *, int32 > &InChildCounts, bool bSelectNewNode=true)
int32 RecursivelyGatherChildCounts (UAtomRackBase *ParentRack, TMap< UAtomRackBase *, int32 > &OutChildCounts)
void RecursivelyRemoveNode (UAtomRackGraphNode *ParentNode)
void RemoveAllNodes ()

Private 属性

TObjectPtr< UAtomRackBase > RootAtomRack = nullptr
TArray< TObjectPtr< UAtomRackBase > > StaleRoots

构造及析构函数说明

◆ UAtomRackGraph()

UAtomRackGraph::UAtomRackGraph ( const FObjectInitializer & ObjectInitializer)

成员函数说明

◆ AddDroppedAtomRacks()

void UAtomRackGraph::AddDroppedAtomRacks ( const TSet< UAtomRackBase * > & AtomRacks,
int32 NodePosX,
int32 NodePosY )

Display AtomRacks (and all of their children) that have been dragged onto the editor

参数
AtomRacksAtomRacks not already represented on the graph
NodePosXX coordinate rack(s) were dropped at
NodePosYY coordinate rack(s) were dropped at

◆ AddNewAtomRack()

void UAtomRackGraph::AddNewAtomRack ( UEdGraphPin * FromPin,
UAtomRackBase * AtomRack,
int32 NodePosX,
int32 NodePosY,
bool bSelectNewNode = true )

Display a new AtomRack that has just been created using the editor

参数
FromPinThe Pin that was dragged from to create the AtomRack (may be null)
AtomRackThe newly created AtomRack
NodePosXX coordinate new rack was created at
NodePosYY coordinate new rack was created at
bSelectNewNodeWhether or not to select the new node being created

◆ ConstructNodes()

int32 UAtomRackGraph::ConstructNodes ( UAtomRackBase * AtomRack,
int32 NodePosX,
int32 NodePosY,
bool bSelectNewNode = true )
private

Construct Nodes to represent a AtomRack and all of its children

参数
AtomRackThe AtomRack to represent
NodePosXX coordinate to place first node at
NodePosYY coordinate to place first node at
bSelectNewNodeWhether or not to select the new node being created
返回
Total height of all constructed nodes (used to arrange multiple new nodes)

◆ CreateNode()

UAtomRackGraphNode * UAtomRackGraph::CreateNode ( UAtomRackBase * AtomRack,
int32 NodePosX,
int32 NodePosY,
bool bSelectNewNode = true )
private

Create a new node to represent a AtomRack

参数
AtomRackThe AtomRack to represent
NodePosXX coordinate to place node at
NodePosYY coordinate to place node at
bSelectNewNodeWhether or not to select the new node being created
返回
Either a new node or an existing node representing the class

◆ FindExistingNode()

UAtomRackGraphNode * UAtomRackGraph::FindExistingNode ( UAtomRackBase * AtomRack) const

Find an existing node that represents a given AtomRack

◆ GetRootAtomRack()

UAtomRackBase * UAtomRackGraph::GetRootAtomRack ( ) const

Get the AtomRack which forms the root of this graph

◆ IsRackDisplayed()

bool UAtomRackGraph::IsRackDisplayed ( UAtomRackBase * AtomRack) const

Checks whether a AtomRack is already represented on this graph

◆ LinkAtomRacks()

void UAtomRackGraph::LinkAtomRacks ( )

Use this graph to re-link all of the AtomRacks it represents after a change in linkage

◆ RebuildGraph()

void UAtomRackGraph::RebuildGraph ( )

Completely rebuild the graph from the root, removing all old nodes

◆ RecursivelyConstructChildNodes()

int32 UAtomRackGraph::RecursivelyConstructChildNodes ( UAtomRackGraphNode * ParentNode,
const TMap< UAtomRackBase *, int32 > & InChildCounts,
bool bSelectNewNode = true )
private

Recursively Construct Nodes to represent the children of a AtomRack

参数
ParentNodeThe Node we are constructing children for
InChildCountsMap of child counts
bSelectNewNodeWhether or not to select the new node being created
返回
Total height of constructed nodes (used to arrange next new node)

◆ RecursivelyGatherChildCounts()

int32 UAtomRackGraph::RecursivelyGatherChildCounts ( UAtomRackBase * ParentRack,
TMap< UAtomRackBase *, int32 > & OutChildCounts )
private

Recursively build a map of child counts for each AtomRack to arrange them correctly

参数
ParentRackThe AtomRack we are getting child counts for
OutChildCountsMap of child counts
返回
Total child count for ParentClass

◆ RecursivelyRemoveNode()

void UAtomRackGraph::RecursivelyRemoveNode ( UAtomRackGraphNode * ParentNode)
private

Recursively remove a node and its children from the graph

◆ RecursivelyRemoveNodes()

void UAtomRackGraph::RecursivelyRemoveNodes ( const TSet< UObject * > NodesToRemove)

Recursively remove a set of nodes from this graph and re-link AtomRacks afterwards

◆ RefreshGraphLinks()

void UAtomRackGraph::RefreshGraphLinks ( )

Re-link all of the nodes in this graph after a change to AtomRack linkage

◆ RemoveAllNodes()

void UAtomRackGraph::RemoveAllNodes ( )
private

Remove all Nodes from the graph

◆ SetRootAtomRack()

void UAtomRackGraph::SetRootAtomRack ( UAtomRackBase * InAtomRack)

Set the AtomRack which forms the root of this graph

类成员变量说明

◆ RootAtomRack

TObjectPtr<UAtomRackBase> UAtomRackGraph::RootAtomRack = nullptr
private

AtomRack which forms the root of this graph

◆ StaleRoots

TArray<TObjectPtr<UAtomRackBase> > UAtomRackGraph::StaleRoots
private

该类的文档由以下文件生成:
  • C:/git/uev2/Engine/Plugins/Runtime/CriWare/CriWare/Source/CriWareCoreEditor/Private/Graphs/AtomRackGraph.h
  • C:/git/uev2/Engine/Plugins/Runtime/CriWare/CriWare/Source/CriWareCoreEditor/Private/Graphs/AtomRackGraph.cpp