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
static int
IN
Indicates this connection point is an input to aNode
.Node
node
TheNode
containing theNodeVariable
with a connection point.int
nodeVariableIndex
The index of theNodeVariable
within this node with the connection point.static int
OUT
Indicates this connection point is an output from aNode
. -
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 variableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
node
TheNode
containing theNodeVariable
with a connection point. -
nodeVariableIndex
public int nodeVariableIndexThe index of theNodeVariable
within this node with the connection point. -
OUT
public static final int OUTIndicates this connection point is an output from aNode
.- See Also:
- Constant Field Values
-
IN
public static final int INIndicates this connection point is an input to aNode
.- See Also:
- Constant Field Values
-
flags
public int flags
-
-
Constructor Details
-
Method Details
-
getVariable
Returns the variable- Returns:
- the variable
-