Class NodeConnectionPointInfo

java.lang.Object
com.marginallyclever.nodegraphcore.ConnectionPointInfo

public class NodeConnectionPointInfo
extends java.lang.Object
NodeConnectionPointInfo makes it easier to query connection points of a NodeVariable within a Node. A use case is for remembering a new NodeConnection's starting point as it is being created.
Since:
2022-02-11
  • Field Summary

    Fields
    Modifier and Type Field Description
    int flags
    IN or OUT.
    static int IN
    Indicates this connection point is an input to a Node.
    Node node
    The Node containing the NodeVariable with a connection point.
    int nodeVariableIndex
    The index of the NodeVariable within this node with the connection point.
    static int OUT
    Indicates this connection point is an output from a Node.
  • Constructor Summary

    Constructors
    Constructor Description
    NodeConnectionPointInfo()
    Constructor for subclasses to call.
    NodeConnectionPointInfo​(Node node, int nodeVariableIndex, int flags)
    Constructor for subclasses to call.
  • Method Summary

    Modifier and Type Method Description
    NodeVariable<?> getVariable()
    Returns the variable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • node

      public Node node
      The Node containing the NodeVariable with a connection point.
    • nodeVariableIndex

      public int nodeVariableIndex
      The index of the NodeVariable within this node with the connection point.
    • OUT

      public static final int OUT
      Indicates this connection point is an output from a Node.
      See Also:
      Constant Field Values
    • IN

      public static final int IN
      Indicates this connection point is an input to a Node.
      See Also:
      Constant Field Values
    • flags

      public int flags
      IN or OUT.
  • Constructor Details

    • NodeConnectionPointInfo

      public NodeConnectionPointInfo()
      Constructor for subclasses to call.
    • NodeConnectionPointInfo

      public NodeConnectionPointInfo​(Node node, int nodeVariableIndex, int flags)
      Constructor for subclasses to call.
      Parameters:
      node - a Node
      nodeVariableIndex - the index to a variable inside the node.
      flags - IN or OUT
  • Method Details

    • getVariable

      public NodeVariable<?> getVariable()
      Returns the variable
      Returns:
      the variable