class sap.ui.vk.threejs.Scene

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

Provides the interface for the 3D model.

The objects of this class should not be created directly.


Constructor

Constructor for a new Scene.

new sap.ui.vk.threejs.Scene(scene)
Param Type Default Value Description
scene THREE.Scene

The three.js scene object.

Borrowed Properties

Name Type Default Value Description
doubleSided boolean false

Enables or disables double-sided materials

Visibility: public

Methods Overview

Method Description
enumerateMaterials

Gets all materials defined in scene nodes

sap.ui.vk.threejs.Scene.extend

Creates a new subclass of class sap.ui.vk.threejs.Scene 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.Scene.extend.

getDefaultNodeHierarchy

Gets the default node hierarchy in the Scene object.

getId

Gets the unique ID of the Scene object.

sap.ui.vk.threejs.Scene.getMetadata

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

getSceneRef

Gets the scene reference for the Scene object.

nodeRefToPersistentId

Gets the persistent ID from node reference.

persistentIdToNodeRef

Gets the node reference from persistent ID.

enumerateMaterials

Gets all materials defined in scene nodes

sap.ui.vk.threejs.Scene.extend

Creates a new subclass of class sap.ui.vk.threejs.Scene 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.Scene.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

getDefaultNodeHierarchy

Gets the default node hierarchy in the Scene object.

getId

Gets the unique ID of the Scene object.

sap.ui.vk.threejs.Scene.getMetadata

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

getSceneRef

Gets the scene reference for the Scene object.

nodeRefToPersistentId

Gets the persistent ID from node reference.

Param Type DefaultValue Description
nodeRefs THREE.Object3D THREE.Object3D[]

The reference to the node or the array of references to the nodes.

persistentIdToNodeRef

Gets the node reference from persistent ID.

Param Type DefaultValue Description
pIDs string string[]

The persistent ID or the array of the persistent IDs.