class sap.ui.vk.dvl.ContentManager

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

Provides a loader that uses the DVL library to load VDS and VDSL files.


Constructor

Constructor for a new ContentManager.

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.

This class does not have its own settings, but all settings applicable to the base type sap.ui.vk.ContentManager can be used.

new sap.ui.vk.dvl.ContentManager(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new ContentManager object. Generated automatically if no ID is given.

mSettings? object

Initial settings for the new ContentManager object.


Methods Overview

Method Description
collectGarbage

Collects and destroys unused objects and resources.

destroyContent

Destroys the content.

sap.ui.vk.dvl.ContentManager.extend

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

sap.ui.vk.dvl.ContentManager.getMetadata

Returns a metadata object for class sap.ui.vk.dvl.ContentManager.

sap.ui.vk.dvl.ContentManager.getRuntimeSettings

Gets optional Emscripten runtime module settings.

sap.ui.vk.dvl.ContentManager.getWebGLContextAttributes

Gets optional WebGL context attributes.

loadContent

Starts downloading and building or updating the content from the content resources.

This method is asynchronous.

sap.ui.vk.dvl.ContentManager.setRuntimeSettings

Sets optional Emscripten runtime module settings.

Emscripten runtime module settings cannot be changed after the Emscripten module is initialized.

sap.ui.vk.dvl.ContentManager.setWebGLContextAttributes

Sets optional WebGL context attributes.

collectGarbage

Collects and destroys unused objects and resources.

destroyContent

Destroys the content.

Param Type DefaultValue Description
content any

The content to destroy.

sap.ui.vk.dvl.ContentManager.extend

Creates a new subclass of class sap.ui.vk.dvl.ContentManager 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.ContentManager.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.dvl.ContentManager.getMetadata

Returns a metadata object for class sap.ui.vk.dvl.ContentManager.

sap.ui.vk.dvl.ContentManager.getRuntimeSettings

Gets optional Emscripten runtime module settings.

sap.ui.vk.dvl.ContentManager.getWebGLContextAttributes

Gets optional WebGL context attributes.

loadContent

Starts downloading and building or updating the content from the content resources.

This method is asynchronous.

Param Type DefaultValue Description
content any

The current content to update. It can be null if this is an initial loading call.

contentResources sap.ui.vk.ContentResource[]

The content resources to load or update.

sap.ui.vk.dvl.ContentManager.setRuntimeSettings

Sets optional Emscripten runtime module settings.

Emscripten runtime module settings cannot be changed after the Emscripten module is initialized.

Param Type DefaultValue Description
settings object

A JSON object with the following properties.

totalMemory int 536870912

The size of Emscripten module memory in bytes, default value: 512 MB.

logElementId string

ID of a textarea DOM element to write the log to.

statusElementId string

ID of a DOM element to write the status messages to.

sap.ui.vk.dvl.ContentManager.setWebGLContextAttributes

Sets optional WebGL context attributes.

Param Type DefaultValue Description
attributes object

A JSON object with the following properties.

antialias boolean true

If set to true, the context will attempt to perform antialiased rendering if possible.

alpha boolean true

If set to true, the context will have an alpha (transparency) channel.

premultipliedAlpha boolean false

If set to true, the color channels in the framebuffer will be stored premultiplied by the alpha channel to improve performance. Other WebGL context attributes are also supported. WebGL context attributes cannot be changed after the control is fully initialized.