sap.ui.vk.Viewer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vk.Viewer 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.core.Control.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.ui.vk.Viewer.
Returns:
Adds some contentResource to the aggregation contentResources
.
Parameters:
Returns:
attachContentResourceChangesProcessed
(oData?, fnFunction, oListener?): sap.ui.vk.Viewer Attaches event handler
fnFunction
to the
contentResourceChangesProcessed
event of this
sap.ui.vk.Viewer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vk.Viewer
itself.
This event will be fired when any content resource or the contentResources aggregation has been changed and processed.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.Viewer itself |
Returns:
Attaches event handler
fnFunction
to the
fullScreen
event of this
sap.ui.vk.Viewer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vk.Viewer
itself.
This event is fired when viewer enters/exits full screen mode.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.Viewer itself |
Returns:
Attaches event handler
fnFunction
to the
sceneDestroying
event of this
sap.ui.vk.Viewer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vk.Viewer
itself.
This event will be fired when scene / image loaded in Viewer is about to be destroyed.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.Viewer itself |
Returns:
Attaches event handler
fnFunction
to the
sceneLoadingFailed
event of this
sap.ui.vk.Viewer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vk.Viewer
itself.
This event will be fired when a critical error occurs during scene / image loading.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.Viewer itself |
Returns:
Attaches event handler
fnFunction
to the
sceneLoadingSucceeded
event of this
sap.ui.vk.Viewer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vk.Viewer
itself.
This event will be fired when a scene / image has been loaded into the Viewer.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.Viewer itself |
Returns:
Attaches event handler
fnFunction
to the
selectionChanged
event of this
sap.ui.vk.Viewer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vk.Viewer
itself.
This event is fired when the nodes are selected/unselected.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vk.Viewer itself |
Returns:
Destroys all the contentResources in the aggregation contentResources
.
Returns:
Destroys the overlay in the aggregation overlay
.
Returns:
Detaches event handler
fnFunction
from the
contentResourceChangesProcessed
event of this
sap.ui.vk.Viewer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
fullScreen
event of this
sap.ui.vk.Viewer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
sceneDestroying
event of this
sap.ui.vk.Viewer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
sceneLoadingFailed
event of this
sap.ui.vk.Viewer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
sceneLoadingSucceeded
event of this
sap.ui.vk.Viewer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
selectionChanged
event of this
sap.ui.vk.Viewer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event contentResourceChangesProcessed
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
fullScreen
to attached listeners.
Expects the following event parameters:
isFullScreen
of type boolean
true: entered full screen; false: exited full screen.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
sceneDestroying
to attached listeners.
Expects the following event parameters:
scene
of type sap.ui.vk.Scene
Returns a reference to the scene to be destroyed.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event sceneLoadingFailed
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
sceneLoadingSucceeded
to attached listeners.
Expects the following event parameters:
scene
of type sap.ui.vk.Scene
Returns a reference to the loaded Scene.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
selectionChanged
to attached listeners.
Expects the following event parameters:
selected
of type string[]
IDs of newly selected nodes.unselected
of type string[]
IDs of newly unselected nodes.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
contentResources
.
Content resources to load and display in the Viewer control.
Returns:
getEnableFullScreen(): boolean
Gets current value of property
enableFullScreen
.
Enable / disable full screen mode
Default value is false
.
Returns:
{boolean} | Value of property enableFullScreen |
getEnableNotifications(): boolean
Gets current value of property
enableNotifications
.
Disables the Message Popover Control
Default value is true
.
Returns:
{boolean} | Value of property enableNotifications |
getEnableOverlay(): boolean
Gets current value of property
enableOverlay
.
Enables or disables the Overlay control
Default value is false
.
Returns:
{boolean} | Value of property enableOverlay |
getEnableProgressIndicator(): boolean
Gets current value of property
enableProgressIndicator
.
Enable / disable progress indicator for downloading and rendering VDS files
Default value is true
.
Returns:
{boolean} | Value of property enableProgressIndicator |
getEnableSceneTree(): boolean
Gets current value of property
enableSceneTree
.
Disables the scene tree control Button on the menu
Default value is true
.
Returns:
{boolean} | Value of property enableSceneTree |
getEnableStepNavigation(): boolean
Gets current value of property
enableStepNavigation
.
Disables the Step Navigation Control Button on the menu
Default value is true
.
Returns:
{boolean} | Value of property enableStepNavigation |
getEnableToolbar(): boolean
Gets current value of property
enableToolbar
.
Shows or hides Toolbar control
Default value is true
.
Returns:
{boolean} | Value of property enableToolbar |
Gets the GraphicsCore object.
Returns:
Gets current value of property
height
.
Height of the Viewer control
Default value is auto
.
Returns:
Gets the 2D viewport used for displaying format natively supported by the browser - 2D images etc.
Returns:
Gets content of aggregation overlay
.
Returns:
Gets the Scene currently loaded in the Viewer control.
Returns:
getShowSceneTree(): boolean
Gets current value of property
showSceneTree
.
Shows or hides the scene tree control
Default value is true
.
Returns:
{boolean} | Value of property showSceneTree |
getShowStepNavigation(): boolean
Gets current value of property
showStepNavigation
.
Shows or hides the Step Navigation Control
Default value is false
.
Returns:
{boolean} | Value of property showStepNavigation |
getShowStepNavigationThumbnails(): boolean
Gets current value of property
showStepNavigationThumbnails
.
Shows or hides the Step Navigation thumbnails
Default value is true
.
Returns:
{boolean} | Value of property showStepNavigationThumbnails |
getToolbarTitle(): string
Gets current value of property
toolbarTitle
.
The toolbar title
Default value is
.
Returns:
{string} | Value of property toolbarTitle |
Gets the 3D viewport.
Returns:
Gets the view state manager object used for handling visibility and selection of nodes.
Returns:
Gets current value of property
width
.
Width of the Viewer control
Default value is auto
.
Returns:
indexOfContentResource(oContentResource): int
Checks for the provided sap.ui.vk.ContentResource
in the aggregation contentResources
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a contentResource into the aggregation contentResources
.
Parameters:
{sap.ui.vk.ContentResource} | oContentResource | the contentResource to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the contentResource should be inserted at; for a negative value of iIndex , the contentResource is inserted at position 0; for a value greater than the current size of the aggregation, the contentResource is inserted at the last position |
Returns:
Removes all the controls from the aggregation
contentResources
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a contentResource from the aggregation contentResources
.
Parameters:
Returns:
Sets a new value for property
enableFullScreen
.
Enable / disable full screen mode
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bEnableFullScreen | New value for property enableFullScreen |
Returns:
Sets a new value for property
enableNotifications
.
Disables the Message Popover Control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableNotifications | New value for property enableNotifications |
Returns:
Sets a new value for property
enableOverlay
.
Enables or disables the Overlay control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bEnableOverlay | New value for property enableOverlay |
Returns:
Sets a new value for property
enableProgressIndicator
.
Enable / disable progress indicator for downloading and rendering VDS files
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableProgressIndicator | New value for property enableProgressIndicator |
Returns:
Sets a new value for property
enableSceneTree
.
Disables the scene tree control Button on the menu
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableSceneTree | New value for property enableSceneTree |
Returns:
Sets a new value for property
enableStepNavigation
.
Disables the Step Navigation Control Button on the menu
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableStepNavigation | New value for property enableStepNavigation |
Returns:
Sets a new value for property
enableToolbar
.
Shows or hides Toolbar control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableToolbar | New value for property enableToolbar |
Returns:
Sets a new value for property
height
.
Height of the Viewer control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is auto
.
Parameters:
Returns:
Sets the aggregated overlay
.
Parameters:
Returns:
Sets a new value for property
showSceneTree
.
Shows or hides the scene tree control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowSceneTree | New value for property showSceneTree |
Returns:
Sets a new value for property
showStepNavigation
.
Shows or hides the Step Navigation Control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bShowStepNavigation | New value for property showStepNavigation |
Returns:
setShowStepNavigationThumbnails
(bShowStepNavigationThumbnails): sap.ui.vk.Viewer Sets a new value for property
showStepNavigationThumbnails
.
Shows or hides the Step Navigation thumbnails
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowStepNavigationThumbnails | New value for property showStepNavigationThumbnails |
Returns:
Sets a new value for property
toolbarTitle
.
The toolbar title
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is
.
Parameters:
{string} | sToolbarTitle | New value for property toolbarTitle |
Returns:
Sets a new value for property
width
.
Width of the Viewer control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is auto
.
Parameters:
Returns: