Vixen
02b45cc4
csharp
public sealed class GraphNode

One node in a graph.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Deliberately not an instance of the node class. A graph is a document — it is saved, loaded, undone and compared — and the class is a thing the compiler makes when it needs one. Keeping them apart is what lets a graph hold a node type that is not registered in this process, which is exactly what a graph saved against a missing plugin is.

Fields and properties (5)

  • public NodeId Id

    Its identity.

  • public string Type

    Which node type it is, by path.

  • public Vector2 Position

    Where it sits on the canvas.

  • public IReadOnlyDictionary<string, float[]> Values

    The inline values its unconnected inputs have been given.

  • public IReadOnlyDictionary<string, string> Texts

    The inline text its unconnected inputs have been given.

Methods (5)

  • public void SetValue(string port, params float[] value)

    Sets an inline value.

  • public bool ClearValue(string port)

    Forgets an inline value, so the port takes its type's default again.

  • public void SetText(string port, string value)

    Sets an inline text.

  • public bool ClearText(string port)

    Forgets an inline text.

  • public string TextOf(string port)

    The text a port carries, or an empty string.

Used by (43, showing 40)

  • AddNodeCommandVixen.Editor.NodeGraph
  • CommandTestsVixen.Editor.NodeGraph.Tests
  • CompositorCompilerTestsVixen.Editor.AssetEditors.Tests
  • CompositorDocumentTestsVixen.Editor.AssetEditors.Tests
  • CompositorGraphCompilerVixen.Editor.AssetEditors
  • CompositorViewVixen.Editor.AssetEditors
  • ExtractSubGraphCommandVixen.Editor.NodeGraph
  • FixedVixen.Editor.NodeGraph.Tests
  • FlattenerVixen.Editor.NodeGraph
  • GraphPairVixen.Editor.NodeGraph.Tests
  • INodePreviewSourceVixen.Editor.NodeGraph
  • LayoutTestsVixen.Editor.NodeGraph.Tests
  • ListingCompilerVixen.Editor.NodeGraph.Tests
  • MoveNodesCommandVixen.Editor.NodeGraph
  • NodeGraphClipboardVixen.Editor.NodeGraph
  • NodeGraphCompilerVixen.Editor.NodeGraph
  • NodeGraphDocumentVixen.Editor.NodeGraph
  • NodeGraphLayoutVixen.Editor.NodeGraph
  • NodeGraphModelVixen.Editor.NodeGraph
  • NodeGraphModelTestsVixen.Editor.NodeGraph.Tests
  • NodeGraphViewVixen.Editor.NodeGraph
  • NodeInspectorVixen.Editor.NodeGraph
  • NodePreviewLayerVixen.Editor.NodeGraph
  • NodeTypingTestsVixen.Editor.NodeGraph.Tests
  • PasteCommandVixen.Editor.NodeGraph
  • PortValueTestsVixen.Editor.NodeGraph.Tests
  • RecorderVixen.Editor.NodeGraph.Tests
  • RecordingVixen.Editor.NodeGraph.Tests
  • RemoveNodesCommandVixen.Editor.NodeGraph
  • SetPortTextCommandVixen.Editor.NodeGraph
  • SetPortValueCommandVixen.Editor.NodeGraph
  • ShaderGraphCompilerVixen.Editor.ShaderGraph
  • ShaderGraphCompilerTestsVixen.Editor.ShaderGraph.Tests
  • ShaderGraphDocumentVixen.Editor.AssetEditors
  • ShaderGraphTestsVixen.Editor.AssetEditors.Tests
  • ShaderGraphViewVixen.Editor.AssetEditors
  • ShaderGraphViewTestsVixen.Editor.AssetEditors.Tests
  • SubGraphTestsVixen.Editor.NodeGraph.Tests
  • SubGraphsVixen.Editor.NodeGraph
  • VfxDocumentVixen.Editor.AssetEditors