class sap.ui.vk.threejs.NodeProxy

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

Provides a proxy object to the node in the node hierarchy.

Objects of this type should only be created with the sap.ui.vk.NodeHierarchy.createNodeProxy method. and destroyed with the sap.ui.vk.NodeHierarchy.destroyNodeProxy method.


Constructor

Constructor for a new NodeProxy.

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

Borrowed Properties

Name Type Default Value Description
closed boolean

The indicator showing if the node is closed. This property is read-only.

Visibility: public
hasChildren boolean

The indicator showing if the node has child nodes. This property is read-only.

Visibility: public
localMatrix sap.ui.vk.TransformationMatrix

The local transformation matrix of the node.

Visibility: public
material sap.ui.vk.Material

The material of the node (optional).

Visibility: public
name string

The name of the node. This property is read-only.

Visibility: public
nodeMetadata object

The node metadata. This property is read-only.

Visibility: public
nodeRef any

The node reference. This property is read-only.

Visibility: public
opacity float

The node opacity.

Visibility: public
tintColor sap.ui.core.CSSColor

The tint color.

Visibility: public
tintColorABGR int

The tint color.

The tint color is a 32-bit integer in the ABGR notation, where A is amount of blending between material color and tint color.

Visibility: public
veIds object[]

The node VE IDs. This property is read-only.

Visibility: public
worldMatrix sap.ui.vk.TransformationMatrix

The world transformation matrix of the node.

Visibility: public

Methods Overview

Method Description
assignMaterial

Assign material to all mesh nodes contained in the current node

enumerateMaterials

Retrieve all materials defined in the current node

sap.ui.vk.threejs.NodeProxy.extend

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

getLocalRotationInAngleAxis

get local rotation represented by axis and angle

getLocalRotationInEuler

get local rotation in Euler form

getLocalRotationInQuaternion

get local rotation represented by quaternion

getLocalScale

get local scale vector

getLocalTranslate

get local translate vector

sap.ui.vk.threejs.NodeProxy.getMetadata

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

replaceMaterial

Replace material with another material

assignMaterial

Assign material to all mesh nodes contained in the current node

Param Type DefaultValue Description
value sap.ui.vk.Material

Material to be assigned.

enumerateMaterials

Retrieve all materials defined in the current node

Param Type DefaultValue Description
recursive boolean

If true then include materials defined in all child nodes

sap.ui.vk.threejs.NodeProxy.extend

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

getLocalRotationInAngleAxis

get local rotation represented by axis and angle

getLocalRotationInEuler

get local rotation in Euler form

getLocalRotationInQuaternion

get local rotation represented by quaternion

getLocalScale

get local scale vector

getLocalTranslate

get local translate vector

sap.ui.vk.threejs.NodeProxy.getMetadata

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

replaceMaterial

Replace material with another material

Param Type DefaultValue Description
materialToReplace sap.ui.vk.Material THREE.Material

Material to be replaced.

material sap.ui.vk.Material THREE.Material

Material replacement.