VertexDeclaration
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable, java.lang.Comparable
public final class VertexDeclaration implements Iterable<VertexField>, Comparable<VertexDeclaration>
カスタム定義された頂点構造の宣言
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| VertexDeclaration() |
メソッド
| メソッド | 説明 |
|---|---|
| addField(int dataType, VertexFieldSemantic semantic) | 新しい頂点フィールドを追加する |
| addField(int dataType, VertexFieldSemantic semantic, int index) | 新しい頂点フィールドを追加する |
| addField(int dataType, VertexFieldSemantic semantic, int index, String alias) | 新しい頂点フィールドを追加する |
| clear() | すべてのフィールドをクリアする。 |
| compareTo(VertexDeclaration other) | このインスタンスを指定されたオブジェクトと比較し、相対的な値の指標を返します。 |
| equals(Object obj) | このインスタンスと、指定されたオブジェクト(これも VertexDeclaration オブジェクトである必要があります)が同じ値かどうかを判断します。 |
| fromGeometry(Geometry geometry, boolean useFloat) | Geometry のレイアウトに基づいて VertexDeclaration を作成します。 |
| get(int index) | インデックスで VertexField を取得します |
| getClass() | |
| getCount() | この VertexDeclaration で定義されたすべてのフィールドの数を取得します |
| getSealed() | TriMesh に使用されたとき、VertexDeclaration はシールドされ、これ以上の変更は許可されません。 |
| getSize() | 頂点構造体のバイト単位のサイズ。 |
| hashCode() | この文字列のハッシュコードを返します。 |
| iterator() | このインスタンス内のすべての頂点フィールドを走査する列挙子を取得します。 |
| notify() | |
| notifyAll() | |
| toString() | VertexDeclaration の文字列表現 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
VertexDeclaration()
public VertexDeclaration()
addField(int dataType, VertexFieldSemantic semantic)
public VertexField addField(int dataType, VertexFieldSemantic semantic)
新しい頂点フィールドを追加する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| dataType | int | 頂点フィールドのデータ型 |
| semantic | VertexFieldSemantic | このフィールドは何に使用されますか |
Returns: VertexField
addField(int dataType, VertexFieldSemantic semantic, int index)
public VertexField addField(int dataType, VertexFieldSemantic semantic, int index)
新しい頂点フィールドを追加する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| dataType | int | 頂点フィールドのデータ型 |
| semantic | VertexFieldSemantic | このフィールドは何に使用されますか |
| インデックス | int | 同一フィールドのセマンティックのインデックス、-1 は自動生成です |
Returns: VertexField
addField(int dataType, VertexFieldSemantic semantic, int index, String alias)
public VertexField addField(int dataType, VertexFieldSemantic semantic, int index, String alias)
新しい頂点フィールドを追加する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| dataType | int | 頂点フィールドのデータ型 |
| semantic | VertexFieldSemantic | このフィールドは何に使用されますか |
| インデックス | int | 同一フィールドのセマンティックのインデックス、-1 は自動生成です |
| エイリアス | java.lang.String | フィールドのエイリアス名 |
Returns: VertexField
clear()
public void clear()
すべてのフィールドをクリアする。
compareTo(VertexDeclaration other)
public int compareTo(VertexDeclaration other)
このインスタンスを指定されたオブジェクトと比較し、相対的な値の指標を返します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| other | VertexDeclaration |
Returns: int
equals(Object obj)
public boolean equals(Object obj)
このインスタンスと、指定されたオブジェクト(これも VertexDeclaration オブジェクトである必要があります)が同じ値かどうかを判断します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
fromGeometry(Geometry geometry, boolean useFloat)
public static VertexDeclaration fromGeometry(Geometry geometry, boolean useFloat)
Geometry のレイアウトに基づいて VertexDeclaration を作成します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| geometry | Geometry | |
| useFloat | boolean | double 型の代わりに float を使用します |
Returns: VertexDeclaration
get(int index)
public VertexField get(int index)
インデックスで VertexField を取得します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| インデックス | int |
Returns: VertexField - the VertexField by index
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCount()
public int getCount()
この VertexDeclaration で定義されたすべてのフィールドの数を取得します
Returns: int - この VertexDeclaration で定義されたすべてのフィールドの数
getSealed()
public boolean getSealed()
TriMesh に使用されたとき、VertexDeclaration はシールドされ、これ以上の変更は許可されません。
Returns: boolean - VertexDeclaration は TriMesh に使用されるとシールされ、これ以上の変更は許可されません。
getSize()
public int getSize()
頂点構造体のバイト単位のサイズ。
Returns: int - 頂点構造体のサイズ(バイト単位)です。
hashCode()
public int hashCode()
この文字列のハッシュコードを返します。
Returns: int - 32 ビット符号付き整数のハッシュコード。
iterator()
public Iterator<VertexField> iterator()
このインスタンス内のすべての頂点フィールドを走査する列挙子を取得します。
Returns: java.util.Iterator<com.aspose.threed.VertexField> - 列挙子
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
VertexDeclaration の文字列表現
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |