ピラミッド

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity, com.aspose.threed.Primitive

public class Pyramid extends Primitive

パラメータ化されたピラミッドです。

コンストラクタ

コンストラクタ説明
Pyramid()デフォルトの底面積(10, 10)とデフォルトの高さ(5)で新しいピラミッドインスタンスを構築する
Pyramid(double xbottom, double ybottom, double height)指定された底面積で新しいピラミッドインスタンスを構築する
Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height)指定された底面積と上面積と高さで新しいピラミッドインスタンスを構築する。
Pyramid(String name, double xbottom, double ybottom, double xtop, double ytop, double height)指定された底面積と上面積と高さで新しいピラミッドインスタンスを構築する。

メソッド

メソッド説明
equals(Object arg0)
findProperty(String propertyName)プロパティを検索します。
getBottomArea()底面キャップの面積
getBottomOffset()底部頂点のオフセット
getBoundingBox()現在のエンティティのオブジェクト空間座標系におけるバウンディングボックスを取得します。
getCastShadows()このジオメトリが影を落とすかどうかを取得します
getClass()
getEntityRendererKey()レンダラーに登録されたエンティティレンダラーのキーを取得します
getExcluded()エクスポート時にこのエンティティを除外するかどうかを取得します。
getHeight()ピラミッドの高さ
getName()名前を取得します。
getParentNode()最初の親ノードを取得します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。
getParentNodes()すべての親ノードを取得します。エンティティはジオメトリインスタンシングのために複数の親ノードにアタッチできます。
getProperties()すべてのプロパティのコレクションを取得します。
getProperty(String property)指定されたプロパティの値を取得します
getReceiveShadows()このジオメトリが影を受け取るかどうかを取得します。
getScene()このオブジェクトが属するシーンを取得します
getTopArea()上面キャップの面積
hashCode()
notify()
notifyAll()
removeProperty(Property property)動的プロパティを削除します。
removeProperty(String property)名前で識別される指定されたプロパティを削除します
setBottomArea(Vector2 value)底面キャップの面積
setBottomOffset(Vector3 value)底部頂点のオフセット
setCastShadows(boolean value)このジオメトリが影を落とすかどうかを設定します
setExcluded(boolean value)エクスポート時にこのエンティティを除外するかどうかを設定します。
setHeight(double value)ピラミッドの高さ
setName(String value)名前を設定します。
setParentNode(Node value)最初の親ノードを設定します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。
setProperty(String property, Object value)指定されたプロパティの値を設定します
setReceiveShadows(boolean value)このジオメトリが影を受け取るかどうかを設定します。
setTopArea(Vector2 value)上面キャップの面積
toMesh()現在のオブジェクトをメッシュに変換します
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Pyramid()

public Pyramid()

デフォルトの底面積(10, 10)とデフォルトの高さ(5)で新しいピラミッドインスタンスを構築する

Pyramid(double xbottom, double ybottom, double height)

public Pyramid(double xbottom, double ybottom, double height)

指定された底面積で新しいピラミッドインスタンスを構築する

Parameters:

パラメーター説明
xbottomdouble底部のX方向の長さ
ybottomdouble底部のY方向の長さ
高さdoubleピラミッドの高さ

Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height)

public Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height)

指定された底面積と上面積と高さで新しいピラミッドインスタンスを構築する。

Parameters:

パラメーター説明
xbottomdouble底面積のX方向の長さ
ybottomdouble底面積のY方向の長さ
xtopdouble上面積のX方向の長さ
ytopdouble上面積のY方向の長さ
高さdoubleピラミッドの高さ

Pyramid(String name, double xbottom, double ybottom, double xtop, double ytop, double height)

public Pyramid(String name, double xbottom, double ybottom, double xtop, double ytop, double height)

指定された底面積と上面積と高さで新しいピラミッドインスタンスを構築する。

Parameters:

パラメーター説明
名前java.lang.Stringピラミッドの名前
xbottomdouble底面積のX方向の長さ
ybottomdouble底面積のY方向の長さ
xtopdouble上面積のX方向の長さ
ytopdouble上面積のY方向の長さ
高さdoubleピラミッドの高さ

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター説明
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty により作成)またはネイティブプロパティ(名前で識別)になる可能性があります。

Parameters:

パラメーター説明
propertyNamejava.lang.Stringプロパティ名。

Returns: Property - The property.

getBottomArea()

public Vector2 getBottomArea()

底面キャップの面積

Returns: Vector2 - Area of the bottom cap

getBottomOffset()

public Vector3 getBottomOffset()

底部頂点のオフセット

Returns: Vector3 - Offset for bottom vertices

getBoundingBox()

public BoundingBox getBoundingBox()

現在のエンティティのオブジェクト空間座標系におけるバウンディングボックスを取得します。

Returns: BoundingBox - the bounding box of current entity in its object space coordinate system. Example: The following code shows how to calculate the bounding box of a shape

Entity entity = new Sphere();
     entity.setRadius(10);
     var bbox = entity.getBoundingBox();
     System.out.printf("The bounding box of the entity is %s ~ %s", bbox.getMinimum(), bbox.getMaximum());

getCastShadows()

public boolean getCastShadows()

このジオメトリが影を落とすかどうかを取得します

Returns: boolean - このジオメトリが影を落とすかどうか

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

レンダラーに登録されたエンティティレンダラーのキーを取得します

Returns: EntityRendererKey - the key of the entity renderer registered in the renderer

getExcluded()

public boolean getExcluded()

エクスポート時にこのエンティティを除外するかどうかを取得します。

Returns: boolean - エクスポート時にこのエンティティを除外するかどうか。

getHeight()

public double getHeight()

ピラミッドの高さ

Returns: double - ピラミッドの高さ

getName()

public String getName()

名前を取得します。

Returns: java.lang.String - 名前です。

getParentNode()

public Node getParentNode()

最初の親ノードを取得します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。

Returns: Node - the first parent node, if set the first parent node, this entity will be detached from other parent nodes.

getParentNodes()

public ArrayList<Node> getParentNodes()

すべての親ノードを取得します。エンティティはジオメトリインスタンシングのために複数の親ノードにアタッチできます。

Returns: java.util.ArrayList<com.aspose.threed.Node> - すべての親ノード、エンティティはジオメトリ インスタンシングのために複数の親ノードにアタッチできます

getProperties()

public PropertyCollection getProperties()

すべてのプロパティのコレクションを取得します。

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

指定されたプロパティの値を取得します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名

Returns: java.lang.Object - 見つかったプロパティの値

getReceiveShadows()

public boolean getReceiveShadows()

このジオメトリが影を受け取るかどうかを取得します。

Returns: boolean - このジオメトリが影を受け取れるかどうか。

getScene()

public Scene getScene()

このオブジェクトが属するシーンを取得します

Returns: Scene - the scene that this object belongs to

getTopArea()

public Vector2 getTopArea()

上面キャップの面積

Returns: Vector2 - Area of the top cap

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

動的プロパティを削除します。

Parameters:

パラメーター説明
propertyProperty削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

removeProperty(String property)

public boolean removeProperty(String property)

名前で識別される指定されたプロパティを削除します

Parameters:

パラメーター説明
プロパティjava.lang.String削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

setBottomArea(Vector2 value)

public void setBottomArea(Vector2 value)

底面キャップの面積

Parameters:

パラメーター説明
valueVector2新しい値

setBottomOffset(Vector3 value)

public void setBottomOffset(Vector3 value)

底部頂点のオフセット

Parameters:

パラメーター説明
valueVector3新しい値

setCastShadows(boolean value)

public void setCastShadows(boolean value)

このジオメトリが影を落とすかどうかを設定します

Parameters:

パラメーター説明
boolean新しい値

setExcluded(boolean value)

public void setExcluded(boolean value)

エクスポート時にこのエンティティを除外するかどうかを設定します。

Parameters:

パラメーター説明
boolean新しい値

setHeight(double value)

public void setHeight(double value)

ピラミッドの高さ

Parameters:

パラメーター説明
double新しい値

setName(String value)

public void setName(String value)

名前を設定します。

Parameters:

パラメーター説明
java.lang.String新しい値

setParentNode(Node value)

public void setParentNode(Node value)

最初の親ノードを設定します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。

Parameters:

パラメーター説明
valueNode新しい値

setProperty(String property, Object value)

public void setProperty(String property, Object value)

指定されたプロパティの値を設定します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名
java.lang.Objectプロパティの値

setReceiveShadows(boolean value)

public void setReceiveShadows(boolean value)

このジオメトリが影を受け取るかどうかを設定します。

Parameters:

パラメーター説明
boolean新しい値

setTopArea(Vector2 value)

public void setTopArea(Vector2 value)

上面キャップの面積

Parameters:

パラメーター説明
valueVector2新しい値

toMesh()

public Mesh toMesh()

現在のオブジェクトをメッシュに変換します

Returns: Mesh - The mesh.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

パラメーター説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメーター説明
arg0long
arg1int