com.jme3.material
クラス MatParam

java.lang.Object
  上位を拡張 com.jme3.material.MatParam
すべての実装されたインタフェース:
Savable, java.lang.Cloneable
直系の既知のサブクラス:
MatParamTexture

public class MatParam
extends java.lang.Object
implements Savable, java.lang.Cloneable

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
 

コンストラクタの詳細

MatParam

public MatParam(VarType type,
                java.lang.String name,
                java.lang.Object value,
                FixedFuncBinding ffBinding)
Create a new material parameter. For internal use only.


MatParam

public MatParam()
Serialization only. Do not use.

メソッドの詳細

getFixedFuncBinding

public FixedFuncBinding getFixedFuncBinding()
Returns the fixed function binding.

戻り値:
the fixed function binding.

getVarType

public VarType getVarType()
Returns the material parameter type.

戻り値:
the material parameter type.

getName

public java.lang.String getName()
Returns the name of the material parameter.

戻り値:
the name of the material parameter.

getPrefixedName

public java.lang.String getPrefixedName()
Returns the name with "m_" prefixed to it.

戻り値:
the name with "m_" prefixed to it

getValue

public java.lang.Object getValue()
Returns the value of this material parameter.

Material parameters that are used for material definitions will not have a value.

戻り値:
the value of this material parameter.

setValue

public void setValue(java.lang.Object value)
Sets the value of this material parameter.

It is assumed the value is of the same type as this material parameter.

パラメータ:
value - the value of this material parameter.

getValueAsString

public java.lang.String getValueAsString()
Returns the material parameter value as it would appear in a J3M file. E.g.
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.

戻り値:
material parameter value as it would appear in a J3M file.

clone

public MatParam clone()
オーバーライド:
クラス java.lang.Object 内の clone

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
例外:
java.io.IOException

equals

public boolean equals(java.lang.Object other)
オーバーライド:
クラス java.lang.Object 内の equals

hashCode

public int hashCode()
オーバーライド:
クラス java.lang.Object 内の hashCode

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString