카메라

Camera class

카메라는 씬을 바라보는 뷰어의 눈 위치를 설명합니다.

메서드

constructor

이름설명
constructor()Camera 클래스의 새 인스턴스를 초기화합니다.

Result:


constructor_overload

이름설명
constructor_overload(projectionType)Camera 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
projectionTypeProjectionTypeProjectionType

Result:


constructor_overload2

이름설명
constructor_overload2(name)Camera 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
nameString이름.

Result:


constructor_overload3

이름설명
constructor_overload3(name, projectionType)Camera 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
nameString이름.
projectionTypeProjectionTypeProjectionType

Result:


getApertureMode

이름설명
getApertureMode()카메라의 조리개 모드를 가져오거나 설정합니다. 이 속성의 값은 ApertureMode 정수 상수입니다.

Result:


setApertureMode

이름설명
setApertureMode(value)카메라의 조리개 모드를 가져오거나 설정합니다. 이 속성의 값은 ApertureMode 정수 상수입니다.

Result:


getFieldOfView

이름설명
getFieldOfView()카메라의 시야각을 도 단위로 가져오거나 설정합니다. 이 속성은 ApertureMode가 ApertureMode.HORIZONTAL 또는 ApertureMode.VERTICAL인 경우에만 사용됩니다.

Result:


setFieldOfView

이름설명
setFieldOfView(value)카메라의 시야각을 도 단위로 가져오거나 설정합니다. 이 속성은 ApertureMode가 ApertureMode.HORIZONTAL 또는 ApertureMode.VERTICAL인 경우에만 사용됩니다.

Result:


getFieldOfViewX

이름설명
getFieldOfViewX()카메라의 수평 시야각을 도 단위로 가져오거나 설정합니다. 이 속성은 ApertureMode가 ApertureMode.HORIZ_AND_VERT인 경우에만 사용됩니다.

Result:


setFieldOfViewX

이름설명
setFieldOfViewX(value)카메라의 수평 시야각을 도 단위로 가져오거나 설정합니다. 이 속성은 ApertureMode가 ApertureMode.HORIZ_AND_VERT인 경우에만 사용됩니다.

Result:


getFieldOfViewY

이름설명
getFieldOfViewY()카메라의 수직 시야각을 도 단위로 가져오거나 설정합니다. 이 속성은 ApertureMode가 ApertureMode.HORIZ_AND_VERT인 경우에만 사용됩니다.

Result:


setFieldOfViewY

이름설명
setFieldOfViewY(value)카메라의 수직 시야각을 도 단위로 가져오거나 설정합니다. 이 속성은 ApertureMode가 ApertureMode.HORIZ_AND_VERT인 경우에만 사용됩니다.

Result:


getWidth

이름설명
getWidth()뷰 평면의 너비를 인치 단위로 가져오거나 설정합니다.

Result:


setWidth

이름설명
setWidth(value)뷰 평면의 너비를 인치 단위로 가져오거나 설정합니다.

Result:


getHeight

이름설명
getHeight()뷰 평면의 높이를 인치 단위로 가져오거나 설정합니다.

Result:


setHeight

이름설명
setHeight(value)뷰 평면의 높이를 인치 단위로 가져오거나 설정합니다.

Result:


getAspectRatio

이름설명
getAspectRatio()뷰 평면의 종횡비를 가져오거나 설정합니다.

Result:


setAspectRatio

이름설명
setAspectRatio(value)뷰 평면의 종횡비를 가져오거나 설정합니다.

Result:


getMagnification

이름설명
getMagnification()정사영 카메라에서 사용되는 배율을 가져오거나 설정합니다.

Result:


setMagnification

이름설명
setMagnification(value)정사영 카메라에서 사용되는 배율을 가져오거나 설정합니다.

Result:


getProjectionType

이름설명
getProjectionType()카메라의 투영 유형을 가져오거나 설정합니다. 기본적으로 원근 투영이 사용됩니다. 속성 값은 ProjectionType 정수 상수입니다.

Result:


setProjectionType

이름설명
setProjectionType(value)카메라의 투영 유형을 가져오거나 설정합니다. 기본적으로 원근 투영이 사용됩니다. 속성 값은 ProjectionType 정수 상수입니다.

Result:


getRotationMode

이름설명
getRotationMode()프러스텀의 방향 모드를 가져오거나 설정합니다. 이 속성은 Target이 null인 경우에만 작동합니다. 값이 RotationMode.FIXED_TARGET이면 방향은 항상 LookAt 속성에 의해 계산됩니다. 그렇지 않으면 LookAt은 항상 Direction에 의해 계산됩니다. 이 속성의 값은 RotationMode 정수 상수입니다.

Result:


setRotationMode

이름설명
setRotationMode(value)프러스텀의 방향 모드를 가져오거나 설정합니다. 이 속성은 Target이 null인 경우에만 작동합니다. 값이 RotationMode.FIXED_TARGET이면 방향은 항상 LookAt 속성에 의해 계산됩니다. 그렇지 않으면 LookAt은 항상 Direction에 의해 계산됩니다. 이 속성의 값은 RotationMode 정수 상수입니다.

Result:


getNearPlane

이름설명
getNearPlane()프러스텀의 근접 평면 거리를 가져오거나 설정합니다.

Result:


setNearPlane

이름설명
setNearPlane(value)프러스텀의 근접 평면 거리를 가져오거나 설정합니다.

Result:


getFarPlane

이름설명
getFarPlane()프러스텀의 원거리 평면 거리를 가져오거나 설정합니다.

Result:


setFarPlane

이름설명
setFarPlane(value)프러스텀의 원거리 평면 거리를 가져오거나 설정합니다.

Result:


getAspect

이름설명
getAspect()프러스텀의 종횡비를 가져오거나 설정합니다.

Result:


setAspect

이름설명
setAspect(value)프러스텀의 종횡비를 가져오거나 설정합니다.

Result:


getOrthoHeight

이름설명
getOrthoHeight()프러스텀을 직교 투영으로 사용할 때 높이를 가져오거나 설정합니다.

Result:


setOrthoHeight

이름설명
setOrthoHeight(value)프러스텀을 직교 투영으로 사용할 때 높이를 가져오거나 설정합니다.

Result:


getUp

이름설명
getUp()카메라의 위쪽 방향을 가져오거나 설정합니다.

Result:


setUp

이름설명
setUp(value)카메라의 위쪽 방향을 가져오거나 설정합니다.

Result:


getLookAt

이름설명
getLookAt()카메라가 바라보는 관심 위치를 가져오거나 설정합니다.

Result:


setLookAt

이름설명
setLookAt(value)카메라가 바라보는 관심 위치를 가져오거나 설정합니다.

Result:


getDirection

이름설명
getDirection()카메라가 바라보는 방향을 가져오거나 설정합니다. 이 속성의 변경은 LookAt 및 Target에도 영향을 줍니다.

Result:


setDirection

이름설명
setDirection(value)카메라가 바라보는 방향을 가져오거나 설정합니다. 이 속성의 변경은 LookAt 및 Target에도 영향을 줍니다.

Result:


getTarget

이름설명
getTarget()카메라가 바라보는 대상을 가져오거나 설정합니다. 사용자가 이 속성을 지원하는 경우 LookAt 속성보다 먼저 설정해야 합니다.

Result:


setTarget

이름설명
setTarget(value)카메라가 바라보는 대상을 가져오거나 설정합니다. 사용자가 이 속성을 지원하는 경우 LookAt 속성보다 먼저 설정해야 합니다.

Result:


getParentNodes

이름설명
getParentNodes()모든 부모 노드를 가져옵니다. 엔터티는 기하학 인스턴싱을 위해 여러 부모 노드에 부착될 수 있습니다.

Result:


getExcluded

이름설명
getExcluded()내보내기 중에 이 엔터티를 제외할지 여부를 가져오거나 설정합니다.

Result:


setExcluded

이름설명
setExcluded(value)내보내기 중에 이 엔터티를 제외할지 여부를 가져오거나 설정합니다.

Result:


getParentNode

이름설명
getParentNode()첫 번째 부모 노드를 가져오거나 설정합니다. 첫 번째 부모 노드를 설정하면 이 엔터티는 다른 부모 노드에서 분리됩니다. 부모 노드.

Result:


setParentNode

이름설명
setParentNode(value)첫 번째 부모 노드를 가져오거나 설정합니다. 첫 번째 부모 노드를 설정하면 이 엔터티는 다른 부모 노드에서 분리됩니다. 부모 노드.

Result:


getScene

이름설명
getScene()이 객체가 속한 씬을 가져옵니다.

Result:


getName

이름설명
getName()이름을 가져오거나 설정합니다. 이름.

Result:


setName

이름설명
setName(value)이름을 가져오거나 설정합니다. 이름.

Result:


getProperties

이름설명
getProperties()모든 속성의 컬렉션을 가져옵니다.

Result:


moveForward

이름설명
moveForward(distance)카메라를 방향 또는 목표를 향해 앞으로 이동합니다.

Parameters:

이름유형설명
거리숫자앞으로 이동할 거리

Result:


getBoundingBox

이름설명
getBoundingBox()현재 엔터티의 객체 공간 좌표계에서 경계 상자를 가져옵니다.

Result:


getEntityRendererKey

이름설명
getEntityRendererKey()렌더러에 등록된 엔터티 렌더러의 키를 가져옵니다.

Result: EntityRendererKey


removeProperty

이름설명
removeProperty(property)동적 속성을 제거합니다.

Parameters:

이름유형설명
속성속성제거할 속성은 무엇입니까

Result: boolean


removeProperty

이름설명
removeProperty(property)이름으로 식별된 지정된 속성을 제거합니다.

Parameters:

이름유형설명
propertStringnull

Result: boolean


getProperty

이름설명
getProperty(property)지정된 속성의 값을 가져옵니다

Parameters:

이름유형설명
속성String속성 이름

Result: Object


setProperty

이름설명
setProperty(property, value)지정된 속성의 값을 설정합니다

Parameters:

이름유형설명
속성String속성 이름
valueObject속성의 값

Result: Object


findProperty

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

Parameters:

이름유형설명
propertyNameString속성 이름.

Result: 속성