Sphere
Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity, com.aspose.threed.Primitive
public class Sphere extends Primitive
パラメータ化された球体。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| Sphere() | Sphere の新しいインスタンスをデフォルト半径 1 で初期化します。 |
| Sphere(double radius) | Sphere クラスの新しいインスタンスを指定された半径で初期化します。 |
| Sphere(double radius, int widthSegments, int heightSegments) | Sphere クラスの新しいインスタンスを指定された半径、幅セグメント、そして高さセグメントで初期化します。 |
| Sphere(String name, double radius, int widthSegments, int heightSegments, double phiStart, double phiLength, double thetaStart, double thetaLength) | Sphere クラスの新しいインスタンスを初期化します。 |
メソッド
Sphere()
public Sphere()
Sphere の新しいインスタンスをデフォルト半径 1 で初期化します。
Sphere(double radius)
public Sphere(double radius)
Sphere クラスの新しいインスタンスを指定された半径で初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 半径 | double | 半径。 |
Sphere(double radius, int widthSegments, int heightSegments)
public Sphere(double radius, int widthSegments, int heightSegments)
Sphere クラスの新しいインスタンスを指定された半径、幅セグメント、そして高さセグメントで初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 半径 | double | 球の半径。 |
| widthSegments | int | 幅のセグメント。 |
| heightSegments | int | 高さセグメント。 |
Sphere(String name, double radius, int widthSegments, int heightSegments, double phiStart, double phiLength, double thetaStart, double thetaLength)
public Sphere(String name, double radius, int widthSegments, int heightSegments, double phiStart, double phiLength, double thetaStart, double thetaLength)
Sphere クラスの新しいインスタンスを初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 名前 | java.lang.String | 名前。 |
| 半径 | double | 球の半径。 |
| widthSegments | int | 幅のセグメント。 |
| heightSegments | int | 高さセグメント。 |
| phiStart | double | Phi の開始位置。 |
| phiLength | double | Phi の長さ。 |
| thetaStart | double | Theta の開始位置。 |
| thetaLength | double | Theta の長さ。 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty により作成)またはネイティブプロパティ(名前で識別)になる可能性があります。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| propertyName | java.lang.String | プロパティ名。 |
Returns: Property - The property.
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 - エクスポート時にこのエンティティを除外するかどうか。
getHeightSegments()
public int getHeightSegments()
高さセグメントを取得します。
Returns: int - 高さセグメント。
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> - すべての親ノード、エンティティはジオメトリ インスタンシングのために複数の親ノードにアタッチできます
getPhiLength()
public double getPhiLength()
phi の長さを取得します。
Returns: double - phi の長さ。
getPhiStart()
public double getPhiStart()
phi の開始位置を取得します。
Returns: double - phi の開始位置。
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 - 見つかったプロパティの値
getRadius()
public double getRadius()
球体の半径を取得します。
Returns: double - 球の半径。
getReceiveShadows()
public boolean getReceiveShadows()
このジオメトリが影を受け取るかどうかを取得します。
Returns: boolean - このジオメトリが影を受け取れるかどうか。
getScene()
public Scene getScene()
このオブジェクトが属するシーンを取得します
Returns: Scene - the scene that this object belongs to
getThetaLength()
public double getThetaLength()
theta の長さを取得します。
Returns: double - theta の長さ。
getThetaStart()
public double getThetaStart()
theta の開始位置を取得します。
Returns: double - theta の開始位置。
getWidthSegments()
public int getWidthSegments()
幅のセグメントを取得します。
Returns: int - 幅のセグメント。
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:
| パラメーター | 型 | 説明 |
|---|---|---|
| property | Property | 削除するプロパティ |
Returns: boolean - プロパティが正常に削除された場合は true
removeProperty(String property)
public boolean removeProperty(String property)
名前で識別される指定されたプロパティを削除します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| プロパティ | java.lang.String | 削除するプロパティ |
Returns: boolean - プロパティが正常に削除された場合は true
setCastShadows(boolean value)
public void setCastShadows(boolean value)
このジオメトリが影を落とすかどうかを設定します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | boolean | 新しい値 |
setExcluded(boolean value)
public void setExcluded(boolean value)
エクスポート時にこのエンティティを除外するかどうかを設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | boolean | 新しい値 |
setHeightSegments(int value)
public void setHeightSegments(int value)
高さセグメントを設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | int | 新しい値 |
setName(String value)
public void setName(String value)
名前を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 新しい値 |
setParentNode(Node value)
public void setParentNode(Node value)
最初の親ノードを設定します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Node | 新しい値 |
setPhiLength(double value)
public void setPhiLength(double value)
phi の長さを設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | double | 新しい値 |
setPhiStart(double value)
public void setPhiStart(double value)
phi の開始位置を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | double | 新しい値 |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
指定されたプロパティの値を設定します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| プロパティ | java.lang.String | プロパティ名 |
| 値 | java.lang.Object | プロパティの値 |
setRadius(double value)
public void setRadius(double value)
球の半径を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | double | 新しい値 |
setReceiveShadows(boolean value)
public void setReceiveShadows(boolean value)
このジオメトリが影を受け取るかどうかを設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | boolean | 新しい値 |
setThetaLength(double value)
public void setThetaLength(double value)
theta の長さを設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | double | 新しい値 |
setThetaStart(double value)
public void setThetaStart(double value)
theta の開始位置を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | double | 新しい値 |
setWidthSegments(int value)
public void setWidthSegments(int value)
幅のセグメントを設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | int | 新しい値 |
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:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |