abstract class sap.ui.vk.Camera

Control sample: sap.ui.vk.Camera
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/vk/Camera
Application Component: CA-UI5-VTK

Provides the base interface for the camera.

The objects of this class should not be created directly. Use PerspectiveCamera or OrthographicCamera instead.


Constructor

Constructor for a new Camera.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.ui.vk.Camera()

Properties

Name Type Default Value Description
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
sap.ui.vk.Camera.extend

Creates a new subclass of class sap.ui.vk.Camera 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.base.ManagedObject.extend.

getCameraRef
getFarClipPlane

Gets current value of property farClipPlane.

Far clipping plane distance

Default value is 1.0.

getIsModified
sap.ui.vk.Camera.getMetadata

Returns a metadata object for class sap.ui.vk.Camera.

getNearClipPlane

Gets current value of property nearClipPlane.

Near clipping plane distance

Default value is 0.1.

getPosition

Gets current value of property position.

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

Default value is [0, 0, 0].

getTargetDirection

Gets current value of property targetDirection.

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

Default value is [1, 0, 0].

getUpDirection

Gets current value of property upDirection.

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

Default value is [0, 1, 0].

setFarClipPlane

Sets a new value for property farClipPlane.

Far clipping plane distance

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 1.0.

setIsModified
setNearClipPlane

Sets a new value for property nearClipPlane.

Near clipping plane distance

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.1.

setPosition

Sets a new value for property position.

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

When called with a value of null or undefined, the default value of the property will be restored.

Default value is [0, 0, 0].

setTargetDirection

Sets a new value for property targetDirection.

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

When called with a value of null or undefined, the default value of the property will be restored.

Default value is [1, 0, 0].

setUpDirection

Sets a new value for property upDirection.

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

When called with a value of null or undefined, the default value of the property will be restored.

Default value is [0, 1, 0].

sap.ui.vk.Camera.extend

Creates a new subclass of class sap.ui.vk.Camera 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.base.ManagedObject.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

getCameraRef

getFarClipPlane

Gets current value of property farClipPlane.

Far clipping plane distance

Default value is 1.0.

getIsModified

sap.ui.vk.Camera.getMetadata

Returns a metadata object for class sap.ui.vk.Camera.

getNearClipPlane

Gets current value of property nearClipPlane.

Near clipping plane distance

Default value is 0.1.

getPosition

Gets current value of property position.

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

Default value is [0, 0, 0].

getTargetDirection

Gets current value of property targetDirection.

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

Default value is [1, 0, 0].

getUpDirection

Gets current value of property upDirection.

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

Default value is [0, 1, 0].

setFarClipPlane

Sets a new value for property farClipPlane.

Far clipping plane distance

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 1.0.

Param Type DefaultValue Description
fFarClipPlane float 1.0

New value for property farClipPlane

setIsModified

Param Type DefaultValue Description
val boolean

Set or reset flag to indicate if this object is modified

setNearClipPlane

Sets a new value for property nearClipPlane.

Near clipping plane distance

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.1.

Param Type DefaultValue Description
fNearClipPlane float 0.1

New value for property nearClipPlane

setPosition

Sets a new value for property position.

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

When called with a value of null or undefined, the default value of the property will be restored.

Default value is [0, 0, 0].

Param Type DefaultValue Description
sPosition float[] [0, 0, 0]

New value for property position

setTargetDirection

Sets a new value for property targetDirection.

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

When called with a value of null or undefined, the default value of the property will be restored.

Default value is [1, 0, 0].

Param Type DefaultValue Description
sTargetDirection float[] [1, 0, 0]

New value for property targetDirection

setUpDirection

Sets a new value for property upDirection.

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

When called with a value of null or undefined, the default value of the property will be restored.

Default value is [0, 1, 0].

Param Type DefaultValue Description
sUpDirection float[] [0, 1, 0]

New value for property upDirection