Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.DAIStudio.Node Class Reference

Detailed Description

In-editor logical node instance.

Public Member Functions

 Node (List< PipelineMap > source)
 Creates node instance from the source data. More...
 
 Node (List< PipelineMap > source, Node parent)
 Creates hierarchy placed node. More...
 
void Sort ()
 Build list along with the order of elements on node.
 
void ConnectPipelineItem (PipelineItem item)
 Bonds node with the source. More...
 
void CalculateNewTargetPosition (float offsetY, bool rewriteCurrentPosition=false)
 Computes new target positions for node. More...
 

Public Attributes

List< Nodechildren = new List<Node>()
 List of children nodes.
 

Package Attributes

int linqs
 Count of child nodes called for the node.
 

Properties

virtual float Height [get]
 Height of the node.
 
float BranchHeight [get]
 Height of the entire brunch of the node including children.
 
Vector2 DestinationPosition = new Vector2(20, 20) [get, protected set]
 Destination position of the node that should be reached.
 
Vector2 position = new Vector2(20, 20) [get, set]
 In-editor position of the node at the moment.
 
ReorderableList GUIRepresentation [get]
 GUI representation of the node's content.
 
Node parent [get]
 Parental node reference.
 
int ParentHierarchyIndex [get, set]
 Index of the node on the parental node.
 
List< PipelineMapsource = new List<PipelineMap>() [get]
 Reference to the source map.
 
int layer [get]
 Index of layer at in-editor visualization graph.
 

Constructor & Destructor Documentation

◆ Node() [1/2]

Doloro.AI.DAIStudio.Node.Node ( List< PipelineMap source)

Creates node instance from the source data.

Parameters
sourceData source.

◆ Node() [2/2]

Doloro.AI.DAIStudio.Node.Node ( List< PipelineMap source,
Node  parent 
)

Creates hierarchy placed node.

Parameters
sourceData source.
parentParental node in hierachy.

Member Function Documentation

◆ CalculateNewTargetPosition()

void Doloro.AI.DAIStudio.Node.CalculateNewTargetPosition ( float  offsetY,
bool  rewriteCurrentPosition = false 
)

Computes new target positions for node.

Parameters
offsetYY offset of the node on the canvas.
rewriteCurrentPositionIf true than position will receive destination value instantly.
See also
DestinationPosition

◆ ConnectPipelineItem()

void Doloro.AI.DAIStudio.Node.ConnectPipelineItem ( PipelineItem  item)

Bonds node with the source.

Parameters
item

The documentation for this class was generated from the following file: