|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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.
コンストラクタの概要 | |
---|---|
MatParam()
Serialization only. |
|
MatParam(VarType type,
java.lang.String name,
java.lang.Object value,
FixedFuncBinding ffBinding)
Create a new material parameter. |
メソッドの概要 | |
---|---|
MatParam |
clone()
|
boolean |
equals(java.lang.Object other)
|
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)
|
クラス java.lang.Object から継承されたメソッド |
---|
getClass, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public MatParam(VarType type, java.lang.String name, java.lang.Object value, FixedFuncBinding ffBinding)
public MatParam()
メソッドの詳細 |
---|
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.
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()
java.lang.Object
内の clone
public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
java.io.IOException
public boolean equals(java.lang.Object other)
java.lang.Object
内の equals
public int hashCode()
java.lang.Object
内の hashCode
public java.lang.String toString()
java.lang.Object
内の toString
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |