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 intflagsstatic intINIndicates this connection point is an input to aNode.NodenodeTheNodecontaining theNodeVariablewith a connection point.intnodeVariableIndexThe index of theNodeVariablewithin this node with the connection point.static intOUTIndicates 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
TheNodecontaining theNodeVariablewith a connection point. -
nodeVariableIndex
public int nodeVariableIndexThe index of theNodeVariablewithin 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
-