public class ShaderNode extends java.lang.Object implements Savable, java.lang.Cloneable
| Constructor and Description |
|---|
ShaderNode()
Creates a shader node.
|
ShaderNode(java.lang.String name,
ShaderNodeDefinition definition,
java.lang.String condition)
Creates a shader node.
|
| Modifier and Type | Method and Description |
|---|---|
ShaderNode |
clone() |
java.lang.String |
getCondition()
Gets the condition.
|
ShaderNodeDefinition |
getDefinition()
Returns the shader node definition.
|
java.util.List<VariableMapping> |
getInputMapping()
Returns a list of variable mapping representing the input mappings of this
node.
|
java.lang.String |
getName()
Gets the name of the node.
|
java.util.List<VariableMapping> |
getOutputMapping()
Returns a list of variable mapping representing the output mappings of this
node.
|
void |
read(JmeImporter im)
jme serialization
|
void |
setCondition(java.lang.String condition)
Sets the condition.
|
void |
setDefinition(ShaderNodeDefinition definition)
Sets the shader node definition.
|
void |
setInputMapping(java.util.List<VariableMapping> inputMapping)
Sets the input mappings.
|
void |
setName(java.lang.String name)
Sets the name of the node.
|
void |
setOutputMapping(java.util.List<VariableMapping> outputMapping)
Sets the output mappings.
|
java.lang.String |
toString()
convenience toString
|
void |
write(JmeExporter ex)
jme serialization
|
public ShaderNode(java.lang.String name,
ShaderNodeDefinition definition,
java.lang.String condition)
name - the name.definition - the shader node definition.condition - the condition to activate this node.public ShaderNode()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the node.public ShaderNodeDefinition getDefinition()
public void setDefinition(ShaderNodeDefinition definition)
definition - the shader node definition.public java.lang.String getCondition()
public void setCondition(java.lang.String condition)
condition - the condition.public java.util.List<VariableMapping> getInputMapping()
public void setInputMapping(java.util.List<VariableMapping> inputMapping)
inputMapping - the input mappings.public java.util.List<VariableMapping> getOutputMapping()
public void setOutputMapping(java.util.List<VariableMapping> outputMapping)
outputMapping - the output mappings.public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public java.lang.String toString()
toString in class java.lang.Objectpublic ShaderNode clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException