Provides the base interface for the camera.
The objects of this class should not be created directly. Use PerspectiveCamera or OrthographicCamera instead.
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()
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 |
Method | Description |
---|---|
sap.ui.vk.Camera.extend |
Creates a new subclass of class sap.ui.vk.Camera with name
|
getCameraRef | |
getFarClipPlane |
Gets current value of property farClipPlane. Far clipping plane distance Default value is |
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 |
getPosition |
Gets current value of property position. Camera position in global space (x, y, z coordinates) Default value is |
getTargetDirection |
Gets current value of property targetDirection. Camera direction vector in global space (normalized x, y, z vector values) Default value is |
getUpDirection |
Gets current value of property upDirection. Camera up vector in global space (normalized x, y, z vector values) Default value is |
setFarClipPlane |
Sets a new value for property farClipPlane. Far clipping plane distance When called with a value of Default value is |
setIsModified | |
setNearClipPlane |
Sets a new value for property nearClipPlane. Near clipping plane distance When called with a value of Default value is |
setPosition |
Sets a new value for property position. Camera position in global space (x, y, z coordinates) When called with a value of Default value is |
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 Default value is |
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 Default value is |
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 |
Gets current value of property farClipPlane.
Far clipping plane distance
Default value is 1.0
.
Gets current value of property nearClipPlane.
Near clipping plane distance
Default value is 0.1
.
Gets current value of property position.
Camera position in global space (x, y, z coordinates)
Default value is [0, 0, 0]
.
Gets current value of property targetDirection.
Camera direction vector in global space (normalized x, y, z vector values)
Default value is [1, 0, 0]
.
Gets current value of property upDirection.
Camera up vector in global space (normalized x, y, z vector values)
Default value is [0, 1, 0]
.
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 |
Param | Type | DefaultValue | Description |
---|---|---|---|
val | boolean |
Set or reset flag to indicate if this object is modified |
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 |
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 |
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 |
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 |