Terminology | Description |
---|---|
Node-graph | A type of user interface which consists of draggable elements that can be connected together to create a comprehensible collection of data. |
Graph | A network of connected elements in a node-graph interface that are processed in a specific order. Graphs are saved as, and loaded from GraphData objects. |
Node | The main type of element in a graph. In TerraTiler2D, a node defines a function with input parameters and return values.
Some nodes have very intricate functions, while others only create a simple variable. |
Port | A node can contain several ports, indicated by the colored circles on the node. These ports define the input parameters and return values of the node. Each port has a color that indicates the type of variable of the port.
A port can either be an input port, or an output port. Ports on the left side of a node are input ports, which pass variables into the node. Ports on the right side of a node are output ports, which return a variable. |
Edge | An input port and an output port of the same type can be connected using an edge, by dragging and dropping from one port to the other. Connected output ports will pass their return value on to the input ports they are connected to. |
Flow | The word 'flow' is used to describe the main order in which nodes are processed. In TerraTiler2D the flow is indicated by ![]() Each TerraTiler2D graph contains a Start node with a flow port. This is the starting point of the graph, and will always be the first node to be processed. After processing a node with a flow port, the graph continues on to the next node along the flow. |
Special ports | Some ports have an icon around their colored circle. These icons indicate special behaviour.
- ![]() - ![]() - ![]() - ![]() - ![]() |