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

Public Member Functions

void GraphNodeScene ()
 
proto external void SetModel (IGraphModel graphModel)
 
proto external IGraphModel GetModel ()
 
proto external void DeleteSelectedItems ()
 Delete every selected items.
 
proto external void BeginDrawConnection (notnull GraphNodePortBase pPort, bool clear=true)
 Start drawing temporary connection from pPort, clear define if we should clear other current temporary connection.
 
proto external vector SnapToGrid (vector scenePos)
 Returns a position snapped to the grid.
 
proto external GraphGraphicsItem ItemAt (vector scenePos)
 Returns graphics item at scene position.
 
proto external int GetSelectedItems (notnull array< GraphGraphicsItem > selectedItems)
 Returns every selected items.
 
proto external bool SelectItemAt (vector scenePos, bool clear=true)
 Select top most item at scenePos, clear is true when we want to clear already selected items. Returns true if an item has been selected.
 
proto external void UpdateDrawConnection (vector scenePos)
 Update current drawing connection with scenePos as parameter.
 
proto external void EndDrawConnection (vector scenePos)
 End current drawing connection with scenePos as parameter.
 
proto external void SetNodePosition (notnull GraphNode node, vector newScenePos, bool finalPosition=true)
 Set node position, if finalPosition is true, node position is applied to the model, otherwise node position is only moved in the scene.
 
- 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)
 

Constructor & Destructor Documentation

◆ GraphNodeScene()

void GraphNodeScene.GraphNodeScene ( )

Member Function Documentation

◆ BeginDrawConnection()

proto external void GraphNodeScene.BeginDrawConnection ( notnull GraphNodePortBase pPort,
bool clear = true )

Start drawing temporary connection from pPort, clear define if we should clear other current temporary connection.

◆ DeleteSelectedItems()

proto external void GraphNodeScene.DeleteSelectedItems ( )

Delete every selected items.

◆ EndDrawConnection()

proto external void GraphNodeScene.EndDrawConnection ( vector scenePos)

End current drawing connection with scenePos as parameter.

◆ GetModel()

proto external IGraphModel GraphNodeScene.GetModel ( )

◆ GetSelectedItems()

proto external int GraphNodeScene.GetSelectedItems ( notnull array< GraphGraphicsItem > selectedItems)

Returns every selected items.

◆ ItemAt()

proto external GraphGraphicsItem GraphNodeScene.ItemAt ( vector scenePos)

Returns graphics item at scene position.

◆ SelectItemAt()

proto external bool GraphNodeScene.SelectItemAt ( vector scenePos,
bool clear = true )

Select top most item at scenePos, clear is true when we want to clear already selected items. Returns true if an item has been selected.

◆ SetModel()

proto external void GraphNodeScene.SetModel ( IGraphModel graphModel)

◆ SetNodePosition()

proto external void GraphNodeScene.SetNodePosition ( notnull GraphNode node,
vector newScenePos,
bool finalPosition = true )

Set node position, if finalPosition is true, node position is applied to the model, otherwise node position is only moved in the scene.

◆ SnapToGrid()

proto external vector GraphNodeScene.SnapToGrid ( vector scenePos)

Returns a position snapped to the grid.

◆ UpdateDrawConnection()

proto external void GraphNodeScene.UpdateDrawConnection ( vector scenePos)

Update current drawing connection with scenePos as parameter.


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