class sap.ui.vk.threejs.OrthographicCamera

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/vk/threejs/OrthographicCamera
Application Component: CA-UI5-VTK

Provides the interface for the camera.


Constructor

Constructor for a new OrthographicCamera.

new sap.ui.vk.threejs.OrthographicCamera()

Borrowed Properties

Name Type Default Value Description
zoomFactor float

Camera zoom factor

Visibility: public
farClipPlane float 1

Far clipping plane distance

Visibility: public
nearClipPlane float 0.1

Near clipping plane distance

Visibility: public
position float[] 0, 0, 0

Camera position in global space (x, y, z coordinates)

Visibility: public
targetDirection float[] 1, 0, 0

Camera direction vector in global space (normalized x, y, z vector values)

Visibility: public
upDirection float[] 0, 1, 0

Camera up vector in global space (normalized x, y, z vector values)

Visibility: public

Methods Overview

Method Description
adjustClipPlanes

Adjust the camera near and far clipping planes to include the entire specified bounding box

adjustZoom

Adjust the camera zoom to include the entire specified bounding box

sap.ui.vk.threejs.OrthographicCamera.extend

Creates a new subclass of class sap.ui.vk.threejs.OrthographicCamera with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.vk.OrthographicCamera.extend.

sap.ui.vk.threejs.OrthographicCamera.getMetadata

Returns a metadata object for class sap.ui.vk.threejs.OrthographicCamera.

update

Updates the camera properties with width and height of viewport

adjustClipPlanes

Adjust the camera near and far clipping planes to include the entire specified bounding box

Param Type DefaultValue Description
boundingBox THREE.Box3

Bounding box

adjustZoom

Adjust the camera zoom to include the entire specified bounding box

Param Type DefaultValue Description
boundingBox THREE.Box3

Bounding box

sap.ui.vk.threejs.OrthographicCamera.extend

Creates a new subclass of class sap.ui.vk.threejs.OrthographicCamera with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.vk.OrthographicCamera.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.vk.threejs.OrthographicCamera.getMetadata

Returns a metadata object for class sap.ui.vk.threejs.OrthographicCamera.

update

Updates the camera properties with width and height of viewport

Param Type DefaultValue Description
width float

width of the viewport

height float

height of the viewport