class sap.ui.vk.dvl.ViewStateManager

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

Manages the visibility and selection states of nodes in the scene.


Constructor

Constructor for a new ViewStateManager.

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

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

mSettings? object

Initial settings for the new ViewStateManager object.

Borrowed Properties

Name Type Default Value Description
recursiveOutlining boolean false Visibility: public
recursiveSelection boolean false Visibility: public
shouldTrackVisibilityChanges boolean false Visibility: public

Methods Overview

Method Description
enumerateSelection

Enumerates IDs of the selected nodes.

sap.ui.vk.dvl.ViewStateManager.extend

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

sap.ui.vk.dvl.ViewStateManager.getMetadata

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

getNodeHierarchy

Gets the NodeHierarchy object associated with this ViewStateManager object.

getOpacity

Gets the opacity of the node.

If a single node reference is passed to the method then a single value is returned.
If an array of node references is passed to the method then an array of values is returned.

getSelectionState

Gets the selection state of the node.

If a single node reference is passed to the method then a single selection state is returned.
If an array of node references is passed to the method then an array of selection states is returned.

getTintColor

Gets the tint color of the node.

If a single node reference is passed to the method then a single value is returned.
If an array of node references is passed to the method then an array of values is returned.

getVisibilityChanges

Gets the visibility changes in the current ViewStateManager object.

getVisibilityState

Gets the visibility state of nodes.

If a single node reference is passed to the method then a single visibility state is returned.
If an array of node references is passed to the method then an array of visibility states is returned.

setOpacity

Sets the opacity of the nodes.

setSelectionState

Sets the selection state of the nodes.

setSelectionStates

Sets or resets the selection state of the nodes.

setTintColor

Sets the tint color of the nodes.

setVisibilityState

Sets the visibility state of the nodes.

enumerateSelection

Enumerates IDs of the selected nodes.

Param Type DefaultValue Description
callback function

A function to call when the selected nodes are enumerated. The function takes one parameter of type string.

sap.ui.vk.dvl.ViewStateManager.extend

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

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

getNodeHierarchy

Gets the NodeHierarchy object associated with this ViewStateManager object.

getOpacity

Gets the opacity of the node.

If a single node reference is passed to the method then a single value is returned.
If an array of node references is passed to the method then an array of values is returned.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

getSelectionState

Gets the selection state of the node.

If a single node reference is passed to the method then a single selection state is returned.
If an array of node references is passed to the method then an array of selection states is returned.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

getTintColor

Gets the tint color of the node.

If a single node reference is passed to the method then a single value is returned.
If an array of node references is passed to the method then an array of values is returned.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

inABGRFormat boolean false

This flag indicates to return the tint color in the ABGR format, if it equals false then the color is returned in the CSS color format.

getVisibilityChanges

Gets the visibility changes in the current ViewStateManager object.

getVisibilityState

Gets the visibility state of nodes.

If a single node reference is passed to the method then a single visibility state is returned.
If an array of node references is passed to the method then an array of visibility states is returned.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

setOpacity

Sets the opacity of the nodes.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

opacity float null

The new opacity of the nodes. If null is passed then the opacity is reset and the node's own opacity should be used.

recursive boolean false

The flags indicates if the change needs to propagate recursively to child nodes.

setSelectionState

Sets the selection state of the nodes.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

selected boolean

The new selection state of the nodes.

recursive boolean

The flags indicates if the change needs to propagate recursively to child nodes.

blockNotification boolean

The flag to suppress selectionChanged event.

setSelectionStates

Sets or resets the selection state of the nodes.

Param Type DefaultValue Description
selectedNodeRefs any any[]

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

unselectedNodeRefs any any[]

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

recursive boolean

The flags indicates if the change needs to propagate recursively to child nodes.

blockNotification boolean

The flag to suppress selectionChanged event.

setTintColor

Sets the tint color of the nodes.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

tintColor sap.ui.vk.CSSColor int null

The new tint color of the nodes. The value can be defined as a string in the CSS color format or as an integer in the ABGR format. If null is passed then the tint color is reset and the node's own tint color should be used.

recursive boolean false

This flag indicates if the change needs to propagate recursively to child nodes.

setVisibilityState

Sets the visibility state of the nodes.

Param Type DefaultValue Description
nodeRefs any any[]

The node reference or the array of node references.

visible boolean

The new visibility state of the nodes.

recursive boolean

The flags indicates if the change needs to propagate recursively to child nodes.

force boolean

If a node is made visible but its parent is hidden then it will still be hidden in Viewport. This flag will force node to be visible regardless of parent's state.