Enfusion Script API
Loading...
Searching...
No Matches
GraphNode Interface Reference
Inheritance diagram for GraphNode:
ScriptAndConfig Managed

Public Member Functions

proto external string GetName ()
 
proto external GraphNodePortBase GetPort (int id, EGraphNodePortDirection direction)
 Access node port by 'id'.
 
proto external GraphNodePortBase FindPort (string portName, EGraphNodePortDirection direction)
 
proto external int GetPortConnectionsCount (int id, EGraphNodePortDirection direction)
 Return number of port connections.
 
proto external int GetTotalConnectionsCount ()
 Return total connections count.
 
proto external vector GetLocalPosition ()
 Get local position, can be equal to scene position if there is no parent.
 
proto external void SetLocalPosition (vector localPos)
 Set local position, can be equal to scene position if there is no parent.
 
proto external vector GetPosition ()
 Get position considering parent position as well.
 
proto external vector GetSize ()
 Get size of the node.
 
proto external void SetSelectedColor (notnull Color selectedColor)
 
proto external ref Color GetSelectedColor ()
 
proto external void SetUnselectedColor (notnull Color selectedColor)
 
proto external ref Color GetUnselectedColor ()
 
TypeName GetPortType (int portId, EGraphNodePortDirection portDirection, owned string name)
 Get which port type to instantiate when creating a connection from this node, returning null will instantiate GraphNodePortCircle port type.
 
void Render (notnull GraphWidget graphWidget, notnull GraphNodeView view)
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Static Public Member Functions

static void GetPortsInfo (BaseContainer graphSrc, BaseContainer nodeSrc, notnull array< ref GraphPortInfo > inputPorts, notnull array< ref GraphPortInfo > outputPorts)
 

Member Function Documentation

◆ FindPort()

proto external GraphNodePortBase GraphNode.FindPort ( string portName,
EGraphNodePortDirection direction )

◆ GetLocalPosition()

proto external vector GraphNode.GetLocalPosition ( )

Get local position, can be equal to scene position if there is no parent.

◆ GetName()

proto external string GraphNode.GetName ( )

◆ GetPort()

proto external GraphNodePortBase GraphNode.GetPort ( int id,
EGraphNodePortDirection direction )

Access node port by 'id'.

◆ GetPortConnectionsCount()

proto external int GraphNode.GetPortConnectionsCount ( int id,
EGraphNodePortDirection direction )

Return number of port connections.

◆ GetPortsInfo()

static void GraphNode.GetPortsInfo ( BaseContainer graphSrc,
BaseContainer nodeSrc,
notnull array< ref GraphPortInfo > inputPorts,
notnull array< ref GraphPortInfo > outputPorts )
static

◆ GetPortType()

TypeName GraphNode.GetPortType ( int portId,
EGraphNodePortDirection portDirection,
owned string name )

Get which port type to instantiate when creating a connection from this node, returning null will instantiate GraphNodePortCircle port type.

◆ GetPosition()

proto external vector GraphNode.GetPosition ( )

Get position considering parent position as well.

◆ GetSelectedColor()

proto external ref Color GraphNode.GetSelectedColor ( )

◆ GetSize()

proto external vector GraphNode.GetSize ( )

Get size of the node.

◆ GetTotalConnectionsCount()

proto external int GraphNode.GetTotalConnectionsCount ( )

Return total connections count.

◆ GetUnselectedColor()

proto external ref Color GraphNode.GetUnselectedColor ( )

◆ Render()

void GraphNode.Render ( notnull GraphWidget graphWidget,
notnull GraphNodeView view )

◆ SetLocalPosition()

proto external void GraphNode.SetLocalPosition ( vector localPos)

Set local position, can be equal to scene position if there is no parent.

◆ SetSelectedColor()

proto external void GraphNode.SetSelectedColor ( notnull Color selectedColor)

◆ SetUnselectedColor()

proto external void GraphNode.SetUnselectedColor ( notnull Color selectedColor)

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