public abstract class GraphNode
extends java.lang.Object
| Constructor and Description |
|---|
GraphNode(int numInputs) |
| Modifier and Type | Method and Description |
|---|---|
GraphNode |
getInput(int i) |
GraphNode |
getInput(java.lang.String name) |
java.lang.String |
getInputName(int i) |
java.lang.String |
getName() |
int |
getNumInputs() |
boolean |
isActive() |
abstract boolean |
isInputActive(int inputIndex) |
void |
setInput(int i,
GraphNode node) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
void |
visit(IVisitor<GraphNode> visitor)
GraphNode visitor |
public final java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.String getName()
public final void setName(java.lang.String name)
name - the number of input of this nodepublic final int getNumInputs()
public final GraphNode getInput(int i)
i - indexGraphNode input at the specified indexjava.lang.ArrayIndexOutOfBoundsException - if i is not in range [0;getNumInputs()[public final void setInput(int i,
GraphNode node)
i - indexnode - the GraphNode to connect to the input at the specified indexjava.lang.ArrayIndexOutOfBoundsException - if i is not in range [0;getNumInputs()[public final GraphNode getInput(java.lang.String name)
name - nameGraphNode input having the specified name, or null if not foundpublic final java.lang.String getInputName(int i)
public final boolean isActive()
public abstract boolean isInputActive(int inputIndex)
isActive().isActive() and isInputActive(int) returns true.isActive()Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com