|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.material.MatParam
public class MatParam
Describes a material parameter. This is used for both defining a name and type as well as a material parameter value.
Field Summary | |
---|---|
protected FixedFuncBinding |
ffBinding
|
protected java.lang.String |
name
|
protected java.lang.String |
prefixedName
|
protected VarType |
type
|
protected java.lang.Object |
value
|
Constructor Summary | |
---|---|
MatParam()
Serialization only. |
|
MatParam(VarType type,
java.lang.String name,
java.lang.Object value,
FixedFuncBinding ffBinding)
Create a new material parameter. |
Method Summary | |
---|---|
MatParam |
clone()
|
boolean |
equals(java.lang.Object obj)
|
FixedFuncBinding |
getFixedFuncBinding()
Returns the fixed function binding. |
java.lang.String |
getName()
Returns the name of the material parameter. |
java.lang.String |
getPrefixedName()
Returns the name with "m_" prefixed to it. |
java.lang.Object |
getValue()
Returns the value of this material parameter. |
java.lang.String |
getValueAsString()
Returns the material parameter value as it would appear in a J3M file. |
VarType |
getVarType()
Returns the material parameter type. |
int |
hashCode()
|
void |
read(JmeImporter im)
|
void |
setValue(java.lang.Object value)
Sets the value of this material parameter. |
java.lang.String |
toString()
|
void |
write(JmeExporter ex)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected VarType type
protected java.lang.String name
protected java.lang.String prefixedName
protected java.lang.Object value
protected FixedFuncBinding ffBinding
Constructor Detail |
---|
public MatParam(VarType type, java.lang.String name, java.lang.Object value, FixedFuncBinding ffBinding)
public MatParam()
Method Detail |
---|
public FixedFuncBinding getFixedFuncBinding()
public VarType getVarType()
public java.lang.String getName()
public java.lang.String getPrefixedName()
public java.lang.Object getValue()
Material parameters that are used for material definitions will not have a value, unless there's a default value declared in the definition.
public void setValue(java.lang.Object value)
It is assumed the value is of the same type
as this material parameter.
value
- the value of this material parameter.public java.lang.String getValueAsString()
MaterialParameters {
ABC : 1 2 3 4
}
Assuming "ABC" is a Vector4 parameter, then the value
"1 2 3 4" would be returned by this method.
public MatParam clone()
clone
in class java.lang.Object
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |