Table of Contents

Class CeresGraphViewExtensions

Namespace
Ceres.Editor.Graph
Assembly
Ceres.Graph.Editor.dll
public static class CeresGraphViewExtensions
Inheritance
CeresGraphViewExtensions
Inherited Members

Methods

AddNodeView(CeresGraphView, ICeresNodeView, Rect)

Add custom node view to graph with world rect

public static void AddNodeView(this CeresGraphView graphView, ICeresNodeView node, Rect worldRect)

Parameters

graphView CeresGraphView
node ICeresNodeView
worldRect Rect

ConnectPorts(CeresGraphView, CeresPortElement, CeresPortElement)

Connect port to port by direction

public static void ConnectPorts(this CeresGraphView graphView, CeresPortElement portLeft, CeresPortElement portRight)

Parameters

graphView CeresGraphView
portLeft CeresPortElement
portRight CeresPortElement

ConnectPorts(CeresGraphView, CeresPortView, CeresPortView)

Connect port to port by direction

public static void ConnectPorts(this CeresGraphView graphView, CeresPortView portLeft, CeresPortView portRight)

Parameters

graphView CeresGraphView
portLeft CeresPortView
portRight CeresPortView

DisconnectPort(CeresGraphView, CeresPortElement)

Disconnect port first connection

public static void DisconnectPort(this CeresGraphView graphView, CeresPortElement port)

Parameters

graphView CeresGraphView
port CeresPortElement

DisconnectPort(CeresGraphView, CeresPortView)

Disconnect port first connection

public static void DisconnectPort(this CeresGraphView graphView, CeresPortView port)

Parameters

graphView CeresGraphView
port CeresPortView

GetContainerObject(CeresGraphView)

Get container object of this graph

public static Object GetContainerObject(this CeresGraphView graphView)

Parameters

graphView CeresGraphView

Returns

Object

GetContainerType(CeresGraphView)

Get container type of this graph

public static Type GetContainerType(this CeresGraphView graphView)

Parameters

graphView CeresGraphView

Returns

Type

Screen2GraphPosition(CeresGraphView, Vector2)

Convert screen position to graph view local position

public static Vector2 Screen2GraphPosition(this CeresGraphView graphView, Vector2 mousePosition)

Parameters

graphView CeresGraphView
mousePosition Vector2

Returns

Vector2