Light

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

public class Light extends Frustum

빛이 장면을 비춥니다.

빛의 총 감쇠를 계산하는 공식은 다음과 같습니다: A = ConstantAttenuation + (Dist * LinearAttenuation) + ((Dist^2) * QuadraticAttenuation)

생성자

생성자설명
Light()새로운 Light 클래스 인스턴스를 초기화합니다.
Light(String name)새로운 Light 클래스 인스턴스를 초기화합니다.
Light(String name, LightType type)새로운 Light 클래스 인스턴스를 초기화합니다.

메서드

메서드설명
equals(Object arg0)
findProperty(String propertyName)속성을 찾습니다.
getAspect()프러스텀의 종횡비를 가져옵니다.
getBoundingBox()현재 엔터티의 객체 공간 좌표계에서 경계 상자를 가져옵니다.
getCastLight()현재 Light 인스턴스가 다른 객체를 비출 수 있는지 가져옵니다.
getCastShadows()Light가 다른 객체에 그림자를 드리울 수 있는지 가져옵니다.
getClass()
getColor()Light의 색상을 가져옵니다.
getConstantAttenuation()Light의 총 감쇠를 계산하기 위한 상수 감쇠 값을 가져옵니다.
getDirection()카메라가 바라보는 방향을 가져옵니다.
getEntityRendererKey()렌더러에 등록된 엔터티 렌더러의 키를 가져옵니다.
getExcluded()내보내기 중에 이 엔터티를 제외할지 여부를 가져옵니다.
getFalloff()감쇠 원뿔 각도(도)를 가져옵니다.
getFarPlane()프러스텀의 원거리 평면 거리를 가져옵니다.
getHotSpot()핫 스팟 원뿔 각도(도)를 가져옵니다.
getIntensity()광원의 강도를 가져옵니다, 기본값은 100입니다.
getLightType()광원의 유형을 가져옵니다.
getLinearAttenuation()광원의 전체 감쇠를 계산하기 위한 선형 감쇠 값을 가져옵니다.
getLookAt()카메라가 바라보는 관심 위치를 가져옵니다.
getName()이름을 가져옵니다.
getNearPlane()시야체적의 근접 평면 거리를 가져옵니다.
getOrthoHeight()정사영 투영 시 시야체적의 높이를 가져옵니다.
getParentNode()첫 번째 상위 노드를 가져옵니다. 첫 번째 상위 노드를 설정하면 이 엔터티는 다른 상위 노드에서 분리됩니다.
getParentNodes()모든 상위 노드를 가져옵니다. 엔터티는 기하학 인스턴싱을 위해 여러 상위 노드에 연결될 수 있습니다.
getProperties()모든 속성의 컬렉션을 가져옵니다.
getProperty(String property)지정된 속성의 값을 가져옵니다
getQuadraticAttenuation()광원의 전체 감쇠를 계산하기 위한 2차 감쇠 값을 가져옵니다.
getRotationMode()시야체적의 방향 모드를 가져옵니다. 이 속성은 getTarget 가 null인 경우에만 작동합니다.
getScene()이 객체가 속한 씬을 가져옵니다.
getShadowColor()그림자의 색상을 가져옵니다.
getTarget()카메라가 바라보는 대상을 가져옵니다.
getUp()카메라의 위쪽 방향을 가져옵니다.
hashCode()
notify()
notifyAll()
removeProperty(Property property)동적 속성을 제거합니다.
removeProperty(String property)이름으로 식별되는 지정된 속성을 제거합니다.
setAspect(double value)시야체적의 종횡비를 설정합니다.
setCastLight(boolean value)현재 광원 인스턴스가 다른 객체를 비출 수 있는지 설정합니다.
setCastShadows(boolean value)광원이 다른 객체에 그림자를 드리울 수 있는지 설정합니다.
setColor(Vector3 value)광원의 색상을 설정합니다.
setConstantAttenuation(double value)광원의 전체 감쇠를 계산하기 위한 일정 감쇠 값을 설정합니다.
setDirection(Vector3 value)카메라가 바라보는 방향을 설정합니다.
setExcluded(boolean value)내보내기 중에 이 엔터티를 제외할지 여부를 설정합니다.
setFalloff(double value)감쇠 원뿔 각도(도)를 설정합니다.
setFarPlane(double value)시야체적의 원거리 평면 거리를 설정합니다.
setHotSpot(double value)핫 스팟 원뿔 각도(도)를 설정합니다.
setIntensity(double value)광원의 강도를 설정합니다, 기본값은 100입니다.
setLightType(LightType value)광원의 유형을 설정합니다.
setLinearAttenuation(double value)광원의 전체 감쇠를 계산하기 위한 선형 감쇠 값을 설정합니다.
setLookAt(Vector3 value)카메라가 바라보는 관심 위치를 설정합니다.
setName(String value)이름을 설정합니다.
setNearPlane(double value)프러스텀의 근접 평면 거리를 설정합니다.
setOrthoHeight(double value)프러스텀을 직교 투영으로 사용할 때 높이를 설정합니다.
setParentNode(Node value)첫 번째 상위 노드를 설정합니다. 첫 번째 상위 노드를 설정하면 이 엔터티는 다른 상위 노드에서 분리됩니다.
setProperty(String property, Object value)지정된 속성의 값을 설정합니다.
setQuadraticAttenuation(double value)광원의 전체 감쇠를 계산하기 위한 2차 감쇠를 설정합니다.
setRotationMode(RotationMode value)프러스텀의 방향 모드를 설정합니다. 이 속성은 getTarget이 null인 경우에만 작동합니다.
setShadowColor(Vector3 value)그림자의 색상을 설정합니다.
setTarget(Node value)카메라가 바라보는 대상을 설정합니다.
setUp(Vector3 value)카메라의 위쪽 방향을 설정합니다.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Light()

public Light()

새로운 Light 클래스 인스턴스를 초기화합니다.

Light(String name)

public Light(String name)

새로운 Light 클래스 인스턴스를 초기화합니다.

Parameters:

매개변수형식설명
이름java.lang.String이름

Light(String name, LightType type)

public Light(String name, LightType type)

새로운 Light 클래스 인스턴스를 초기화합니다.

Parameters:

매개변수형식설명
이름java.lang.String이름
typeLightType새 광원의 유형

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.

getAspect()

public double getAspect()

프러스텀의 종횡비를 가져옵니다.

Returns: double - 프러스텀의 종횡비

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());

getCastLight()

public boolean getCastLight()

현재 Light 인스턴스가 다른 객체를 비출 수 있는지 가져옵니다.

Returns: boolean - 현재 광원 인스턴스가 다른 객체를 비출 수 있는지 여부.

getCastShadows()

public boolean getCastShadows()

Light가 다른 객체에 그림자를 드리울 수 있는지 가져옵니다.

Returns: boolean - 광원이 다른 객체에 그림자를 드리울 수 있는지 여부.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColor()

public Vector3 getColor()

Light의 색상을 가져옵니다.

Returns: Vector3 - the light’s color

getConstantAttenuation()

public double getConstantAttenuation()

Light의 총 감쇠를 계산하기 위한 상수 감쇠 값을 가져옵니다.

Returns: double - 광원의 전체 감쇠를 계산하기 위한 상수 감쇠

getDirection()

public Vector3 getDirection()

카메라가 바라보는 방향을 가져옵니다. 이 속성의 변경은 getLookAtgetTarget에도 영향을 줍니다.

Returns: Vector3 - the direction that the camera is looking at. Changes on this property will also affects the getLookAt and getTarget.

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

렌더러에 등록된 엔터티 렌더러의 키를 가져옵니다.

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

getExcluded()

public boolean getExcluded()

내보내기 중에 이 엔터티를 제외할지 여부를 가져옵니다.

Returns: boolean - 내보내기 중에 이 엔터티를 제외할지 여부.

getFalloff()

public double getFalloff()

감쇠 원뿔 각도(도)를 가져옵니다.

Returns: double - 감쇠 원뿔 각도(도 단위).

getFarPlane()

public double getFarPlane()

프러스텀의 원거리 평면 거리를 가져옵니다.

Returns: double - 프러스텀의 원거리 평면 거리.

getHotSpot()

public double getHotSpot()

핫 스팟 원뿔 각도(도)를 가져옵니다.

Returns: double - 핫스팟 원뿔 각도(도 단위).

getIntensity()

public double getIntensity()

광원의 강도를 가져옵니다, 기본값은 100입니다.

Returns: double - 광원의 강도, 기본값은 100입니다.

getLightType()

public LightType getLightType()

광원의 유형을 가져옵니다.

Returns: LightType - the light’s type

getLinearAttenuation()

public double getLinearAttenuation()

광원의 전체 감쇠를 계산하기 위한 선형 감쇠 값을 가져옵니다.

Returns: double - 광원의 전체 감쇠를 계산하기 위한 선형 감쇠

getLookAt()

public Vector3 getLookAt()

카메라가 바라보는 관심 위치를 가져옵니다.

Returns: Vector3 - the the interested position that the camera is looking at.

getName()

public String getName()

이름을 가져옵니다.

Returns: java.lang.String - 이름.

getNearPlane()

public double getNearPlane()

시야체적의 근접 평면 거리를 가져옵니다.

Returns: double - 프러스텀의 근접 평면 거리.

getOrthoHeight()

public double getOrthoHeight()

정사영 투영 시 시야체적의 높이를 가져옵니다.

Returns: double - 프러스텀을 직교 투영으로 사용할 때 높이.

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 - 찾은 속성의 값

getQuadraticAttenuation()

public double getQuadraticAttenuation()

광원의 전체 감쇠를 계산하기 위한 2차 감쇠 값을 가져옵니다.

Returns: double - 광원의 전체 감쇠를 계산하기 위한 2차 감쇠

getRotationMode()

public RotationMode getRotationMode()

프러스텀의 방향 모드를 가져옵니다. 이 속성은 getTarget이 null인 경우에만 작동합니다. 값이 RotationMode.FIXED_TARGET인 경우, 방향은 항상 getLookAt 속성에 의해 계산됩니다. 그렇지 않으면 getLookAt은 항상 getDirection에 의해 계산됩니다.

Returns: RotationMode - the frustum’s orientation mode This property only works when the getTarget is null. If the value is RotationMode.FIXED_TARGET, the direction is always calculated by the property getLookAt Otherwise the getLookAt is always calculated by the getDirection

getScene()

public Scene getScene()

이 객체가 속한 씬을 가져옵니다.

Returns: Scene - the scene that this object belongs to

getShadowColor()

public Vector3 getShadowColor()

그림자의 색상을 가져옵니다.

Returns: Vector3 - the shadow’s color.

getTarget()

public Node getTarget()

카메라가 바라보는 대상을 가져옵니다. 사용자가 이 속성을 지원하는 경우, getLookAt 속성보다 먼저 설정되어야 합니다.

Returns: Node - the target that the camera is looking at. If the user supports this property, it should be prior to getLookAt property.

getUp()

public Vector3 getUp()

카메라의 위쪽 방향을 가져옵니다.

Returns: Vector3 - the up direction of the camera

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

setAspect(double value)

public void setAspect(double value)

시야체적의 종횡비를 설정합니다.

Parameters:

매개변수형식설명
double새 값

setCastLight(boolean value)

public void setCastLight(boolean value)

현재 광원 인스턴스가 다른 객체를 비출 수 있는지 설정합니다.

Parameters:

매개변수형식설명
boolean새 값

setCastShadows(boolean value)

public void setCastShadows(boolean value)

광원이 다른 객체에 그림자를 드리울 수 있는지 설정합니다.

Parameters:

매개변수형식설명
boolean새 값

setColor(Vector3 value)

public void setColor(Vector3 value)

광원의 색상을 설정합니다.

Parameters:

매개변수형식설명
valueVector3새 값

setConstantAttenuation(double value)

public void setConstantAttenuation(double value)

광원의 전체 감쇠를 계산하기 위한 일정 감쇠 값을 설정합니다.

Parameters:

매개변수형식설명
double새 값

setDirection(Vector3 value)

public void setDirection(Vector3 value)

카메라가 바라보는 방향을 설정합니다. 이 속성의 변경은 getLookAtgetTarget에도 영향을 줍니다.

Parameters:

매개변수형식설명
valueVector3새 값

setExcluded(boolean value)

public void setExcluded(boolean value)

내보내기 중에 이 엔터티를 제외할지 여부를 설정합니다.

Parameters:

매개변수형식설명
boolean새 값

setFalloff(double value)

public void setFalloff(double value)

감쇠 원뿔 각도(도)를 설정합니다.

Parameters:

매개변수형식설명
double새 값

setFarPlane(double value)

public void setFarPlane(double value)

시야체적의 원거리 평면 거리를 설정합니다.

Parameters:

매개변수형식설명
double새 값

setHotSpot(double value)

public void setHotSpot(double value)

핫 스팟 원뿔 각도(도)를 설정합니다.

Parameters:

매개변수형식설명
double새 값

setIntensity(double value)

public void setIntensity(double value)

광원의 강도를 설정합니다, 기본값은 100입니다.

Parameters:

매개변수형식설명
double새 값

setLightType(LightType value)

public void setLightType(LightType value)

광원의 유형을 설정합니다.

Parameters:

매개변수형식설명
valueLightType새 값

setLinearAttenuation(double value)

public void setLinearAttenuation(double value)

광원의 전체 감쇠를 계산하기 위한 선형 감쇠 값을 설정합니다.

Parameters:

매개변수형식설명
double새 값

setLookAt(Vector3 value)

public void setLookAt(Vector3 value)

카메라가 바라보는 관심 위치를 설정합니다.

Parameters:

매개변수형식설명
valueVector3새 값

setName(String value)

public void setName(String value)

이름을 설정합니다.

Parameters:

매개변수형식설명
java.lang.String새 값

setNearPlane(double value)

public void setNearPlane(double value)

프러스텀의 근접 평면 거리를 설정합니다.

Parameters:

매개변수형식설명
double새 값

setOrthoHeight(double value)

public void setOrthoHeight(double value)

프러스텀을 직교 투영으로 사용할 때 높이를 설정합니다.

Parameters:

매개변수형식설명
double새 값

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속성의 값

setQuadraticAttenuation(double value)

public void setQuadraticAttenuation(double value)

광원의 전체 감쇠를 계산하기 위한 2차 감쇠를 설정합니다.

Parameters:

매개변수형식설명
double새 값

setRotationMode(RotationMode value)

public void setRotationMode(RotationMode value)

프러스텀의 방향 모드를 설정합니다. 이 속성은 getTarget이 null인 경우에만 작동합니다. 값이 RotationMode.FIXED_TARGET인 경우, 방향은 항상 getLookAt 속성에 의해 계산됩니다. 그렇지 않으면 getLookAt은 항상 getDirection에 의해 계산됩니다.

Parameters:

매개변수형식설명
valueRotationMode새 값

setShadowColor(Vector3 value)

public void setShadowColor(Vector3 value)

그림자의 색상을 설정합니다.

Parameters:

매개변수형식설명
valueVector3새 값

setTarget(Node value)

public void setTarget(Node value)

카메라가 바라보는 대상을 설정합니다. 사용자가 이 속성을 지원하는 경우, getLookAt 속성보다 먼저 설정해야 합니다.

Parameters:

매개변수형식설명
valueNode새 값

setUp(Vector3 value)

public void setUp(Vector3 value)

카메라의 위쪽 방향을 설정합니다.

Parameters:

매개변수형식설명
valueVector3새 값

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