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 클래스를 새 인스턴스로 초기화합니다.

메서드

메서드설명
equals(Object arg0)
findProperty(String propertyName)속성을 찾습니다.
getBoundingBox()현재 엔터티의 객체 공간 좌표계에서 경계 상자를 가져옵니다.
getCastShadows()이 기하학이 그림자를 드리울 수 있는지 여부를 가져옵니다.
getClass()
getEntityRendererKey()렌더러에 등록된 엔터티 렌더러의 키를 가져옵니다.
getExcluded()내보내기 중에 이 엔터티를 제외할지 여부를 가져옵니다.
getHeightSegments()세로 세그먼트를 가져옵니다.
getName()이름을 가져옵니다.
getParentNode()첫 번째 상위 노드를 가져옵니다. 첫 번째 상위 노드를 설정하면 이 엔터티는 다른 상위 노드에서 분리됩니다.
getParentNodes()모든 상위 노드를 가져옵니다. 엔터티는 기하학 인스턴싱을 위해 여러 상위 노드에 연결될 수 있습니다.
getPhiLength()phi의 길이를 가져옵니다.
getPhiStart()phi 시작값을 가져옵니다.
getProperties()모든 속성의 컬렉션을 가져옵니다.
getProperty(String property)지정된 속성의 값을 가져옵니다
getRadius()구의 반지름을 가져옵니다.
getReceiveShadows()이 기하학이 그림자를 받을 수 있는지 여부를 가져옵니다.
getScene()이 객체가 속한 씬을 가져옵니다.
getThetaLength()theta의 길이를 가져옵니다.
getThetaStart()theta 시작값을 가져옵니다.
getWidthSegments()너비 세그먼트를 가져옵니다.
hashCode()
notify()
notifyAll()
removeProperty(Property property)동적 속성을 제거합니다.
removeProperty(String property)이름으로 식별되는 지정된 속성을 제거합니다.
setCastShadows(boolean value)이 기하학이 그림자를 드리울 수 있는지 여부를 설정합니다.
setExcluded(boolean value)내보내기 중에 이 엔터티를 제외할지 여부를 설정합니다.
setHeightSegments(int value)높이 세그먼트를 설정합니다.
setName(String value)이름을 설정합니다.
setParentNode(Node value)첫 번째 상위 노드를 설정합니다. 첫 번째 상위 노드를 설정하면 이 엔터티는 다른 상위 노드에서 분리됩니다.
setPhiLength(double value)phi의 길이를 설정합니다.
setPhiStart(double value)phi 시작을 설정합니다.
setProperty(String property, Object value)지정된 속성의 값을 설정합니다.
setRadius(double value)구의 반경을 설정합니다.
setReceiveShadows(boolean value)이 기하학이 그림자를 받을 수 있는지 여부를 설정합니다.
setThetaLength(double value)theta의 길이를 설정합니다.
setThetaStart(double value)theta 시작을 설정합니다.
setWidthSegments(int value)너비 세그먼트를 설정합니다.
toMesh()현재 객체를 메시로 변환합니다.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

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구의 반경.
widthSegmentsint너비 세그먼트.
heightSegmentsint높이 세그먼트.

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구의 반경.
widthSegmentsint너비 세그먼트.
heightSegmentsint높이 세그먼트.
phiStartdoublePhi 시작.
phiLengthdoublePhi 길이.
thetaStartdoubleTheta 시작.
thetaLengthdoubleTheta 길이.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

매개변수형식설명
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

속성을 찾습니다. 동적 속성 (Created by CreateDynamicProperty/SetProperty) 또는 네이티브 속성 (Identified by its name)일 수 있습니다.

Parameters:

매개변수형식설명
propertyNamejava.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:

매개변수형식설명
propertyProperty제거할 속성

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:

매개변수형식설명
valueNode새 값

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:

매개변수형식설명
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

매개변수형식설명
arg0long
arg1int