new Display([options])

Parameter

Name Type Optional Description

options

 

Yes

Options.

Fires
module:meteoJS/modelviewer/display#init:display
module:meteoJS/modelviewer/display#add:variableCollection
module:meteoJS/modelviewer/display#add:variable
module:meteoJS/modelviewer/display#change:visibleResource

Properties

package

container  (undefined or module:meteoJS/modelviewer/container.Container)

package

modelviewer  (undefined or module:meteoJS/modelviewer.Modelviewer)

package

parentNode  (HTMLElement or jQuery)

package

resourceNode  (undefined, HTMLElement, or jQuery)

Methods

public

getAvailableVariables(options) → Set containing module:meteoJS/modelviewer/variable.Variable

Returns a subset of variables of the passed VariableCollection object. For all of the returned variables, there exists at least one resource. Theses resources are defined by this variable and the selected variables of the parent node. This method isn't enough performant to be executed in loops or recursive functions.

Parameters

Name Type Optional Description

options

Object

 

Options.

Values in options have the following properties:

Name Type Optional Description

variableCollection

module:meteoJS/modelviewer/variableCollection.VariableCollection

 

VariableCollection object.

Returns

Set containing module:meteoJS/modelviewer/variable.Variable Available variables.

render()

Re-Render this display.