Constructor and Description |
---|
VariableMapping()
Creates a VariableMapping.
|
VariableMapping(ShaderNodeVariable leftVariable,
java.lang.String leftSwizzling,
ShaderNodeVariable rightVariable,
java.lang.String rightSwizzling,
java.lang.String condition)
Creates a VariableMapping.
|
Modifier and Type | Method and Description |
---|---|
protected VariableMapping |
clone() |
java.lang.String |
getCondition()
Gets the condition.
|
java.lang.String |
getLeftSwizzling()
Gets the left swizzle.
|
ShaderNodeVariable |
getLeftVariable()
Gets the left variable.
|
java.lang.String |
getRightExpression()
Gets the right expression.
|
java.lang.String |
getRightSwizzling()
Gets the right swizzle.
|
ShaderNodeVariable |
getRightVariable()
Gets the right variable.
|
void |
read(JmeImporter im)
jme serialization (not used)
|
void |
setCondition(java.lang.String condition)
Sets the condition.
|
void |
setLeftSwizzling(java.lang.String leftSwizzling)
Sets the left swizzle.
|
void |
setLeftVariable(ShaderNodeVariable leftVariable)
Sets the left variable.
|
void |
setRightExpression(java.lang.String rightExpression)
Sets the right expression.
|
void |
setRightSwizzling(java.lang.String rightSwizzling)
Sets the right swizzle.
|
void |
setRightVariable(ShaderNodeVariable rightVariable)
Sets the right variable.
|
java.lang.String |
toString() |
void |
write(JmeExporter ex)
jme serialization (not used)
|
public VariableMapping()
public VariableMapping(ShaderNodeVariable leftVariable, java.lang.String leftSwizzling, ShaderNodeVariable rightVariable, java.lang.String rightSwizzling, java.lang.String condition)
leftVariable
- the left hand side variable of the expressionleftSwizzling
- the swizzling of the left variablerightVariable
- the right hand side variable of the expressionrightSwizzling
- the swizzling of the right variablecondition
- the condition for this mappingpublic ShaderNodeVariable getLeftVariable()
public void setLeftVariable(ShaderNodeVariable leftVariable)
leftVariable
- the left variable.public ShaderNodeVariable getRightVariable()
public void setRightVariable(ShaderNodeVariable rightVariable)
rightVariable
- the right variable.public java.lang.String getRightExpression()
public void setRightExpression(java.lang.String rightExpression)
rightExpression
- the right expression.public java.lang.String getCondition()
public void setCondition(java.lang.String condition)
condition
- the condition or null.public java.lang.String getLeftSwizzling()
public void setLeftSwizzling(java.lang.String leftSwizzling)
leftSwizzling
- the left swizzle.public java.lang.String getRightSwizzling()
public void setRightSwizzling(java.lang.String rightSwizzling)
rightSwizzling
- the right swizzle.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.Object
protected VariableMapping clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException