Class: ShadowModel

Tools.Shadow ShadowModel

ShadowModel

new ShadowModel()

modules/tools/shadow/model.js, line 18
Properties:
Name Type Argument Default Description
glyphicon String <optional>
"glyphicon-screenshot" Glyphicon that is shown before the tool name
isShadowEnabled Boolean <optional>
false Flag to enable shadows on immidiately
Fires:
  • Core#RadioTriggerMapSetShadowTime - * @fires Core#RadioRequestGetMap3devent:

Extends

Methods

combineTimeAndDate(time, date){timestamp}

modules/tools/shadow/model.js, line 87
Combines the given timestamps for time and date together
Name Type Description
time timestamp timestamp with time
date timestamp timestamd with date
Returns:
the combined timestamp

getCesiumScene(){object|undefined}

modules/tools/shadow/model.js, line 199
Returns the cesiumScene if defined
Fires:
Returns:
cesiumScene of map3D

getDate(defaultTime){timestamp}

modules/tools/shadow/model.js, line 187
Returns the start of today
Name Type Description
defaultTime object optional default time from config

getMinMaxDatesOfCurrentYear(){Array.<timestamp>}

modules/tools/shadow/model.js, line 157
Returns an array of min. and max. timestamps of actual year
Returns:
Array of timestamps

getMinMaxTimesOfCurrentDay(){Array.<timestamp>}

modules/tools/shadow/model.js, line 165
Returns an array of min. and max. timestamps of today
Returns:
Array of timestamps

getNewButton(label, isSelected){object}

modules/tools/shadow/model.js, line 275
Creator for Checkboxes
Name Type Description
label string The label to show next to the checkbox
isSelected boolean Set default state
Returns:
Checkbox-Object

getNewDatepicker(preselectedValue, startDate, endDate, displayName, type){object}

modules/tools/shadow/model.js, line 236
Creator for Datepicker
Name Type Description
preselectedValue Date preselected date
startDate Date earliest selectable date
endDate Date latest selectable date
displayName string The name to be displayed near to the datepicker.
type string The slider type
Returns:
Slider-Object

getNewSlider(values, preselectedValue, step, precision, displayName, type){object}

modules/tools/shadow/model.js, line 256
Creator for Sliders
Name Type Description
values Array.<integer> Array of min and max times
preselectedValue integer preselcted value in slider
step float Increment step
precision float The number of digits shown after the decimal.
displayName string The name to be displayed near to the slider.
type string The slider type
Returns:
Slider-Object

getTime(defaultTime){timestamp}

modules/tools/shadow/model.js, line 174
Returns the nearest past full half hour from now or from config
Name Type Description
defaultTime object optional default time from config

initialize(){void}

modules/tools/shadow/model.js, line 32
Initialize the model

prepareSnippets(){void}

modules/tools/shadow/model.js, line 40
Initializes sub-models

registerListener(){void}

modules/tools/shadow/model.js, line 66
Register Listener to act on

setCesiumTime(datetime){void}

modules/tools/shadow/model.js, line 131
Trigger new date to map3D
Name Type Description
datetime timestamp new Time
Fires:

setDatepicker(value){void}

modules/tools/shadow/model.js, line 314
Setter for datepicker
Name Type Description
value object datepicker

setDates(value){void}

modules/tools/shadow/model.js, line 287
Setter for dates
Name Type Description
value Array.<date> Array of date objects

setDateslider(value){void}

modules/tools/shadow/model.js, line 305
Setter for dateslider
Name Type Description
value object dateslider

inherited setGlyphicon(value){void}

modules/core/modelList/item.js, line 69
Setter for glyphicon
Name Type Description
value String Glyphicon

inherited setId(value){void}

modules/core/modelList/item.js, line 34
Setter for id
Name Type Description
value String Id

inherited setIsActive(value){void}

modules/core/modelList/tool/model.js, line 129
Activates or deactivates tool
Name Type Description
value Boolean Flag if tool is active

inherited setIsInThemen(value){void}

modules/core/modelList/item.js, line 78
Setter for isInThemen
Name Type Description
value Boolean Flag if item is in themen

setIsShadowEnabled(value){void}

modules/tools/shadow/model.js, line 332
Setter for isShadowEnabled
Name Type Description
value boolean isShadowEnabled

inherited setIsVisibleInMenu(value){void}

modules/core/modelList/item.js, line 105
Setter for setIsVisibleInMenu
Name Type Description
value Boolean Flag if item is visible in menu

inherited setIsVisibleInTree(value){void}

modules/core/modelList/item.js, line 96
Setter for isVisibleInTree
Name Type Description
value Boolean Flag if item is visible in layertree

inherited setLevel(value){void}

modules/core/modelList/item.js, line 87
Setter for level
Name Type Description
value String Level

inherited setName(value){void}

modules/core/modelList/item.js, line 52
Setter for name
Name Type Description
value String Name

inherited setParentId(value){void}

modules/core/modelList/item.js, line 43
Setter for parentId
Name Type Description
value String ParentId

setSnippetsReady(value){void}

modules/tools/shadow/model.js, line 341
Setter for snippetsReady
Name Type Description
value boolean snippetsReady

setTimeslider(value){void}

modules/tools/shadow/model.js, line 296
Setter for timeslider
Name Type Description
value object timeslider

setToggleButton(value){void}

modules/tools/shadow/model.js, line 323
Setter for toggleButton
Name Type Description
value object toggleButton

inherited setType(value){void}

modules/core/modelList/item.js, line 60
Setter for type
Name Type Description
value String Type

inherited superChangeLang(){Void}

modules/core/modelList/tool/model.js, line 113
change language - sets or translates the name of this tool, if property i18nextTranslate is no function. If name is defined in config.json, the name is not translated else property nameTranslationKey is used.

sychronizePicker(){void}

modules/tools/shadow/model.js, line 118
Gets called when the slider has changed and synchronizes the datepicker with the same values

sychronizeSlider(){void}

modules/tools/shadow/model.js, line 107
Gets called when the datepicker has changed and synchronizes the slider with the same values

timeOrDateChanged(){void}

modules/tools/shadow/model.js, line 95
Gets called when or the time or the date changes and starts processing to set the new value

toggleButtonValueChanged(chkbox){void}

modules/tools/shadow/model.js, line 145
Proceduere what has to be done when the toggleButton gets pressed
Name Type Description
chkbox boolean state of the checkbox

toggleShadow(chkboxValue){void}

modules/tools/shadow/model.js, line 214
Toggles the shadows
Name Type Description
chkboxValue boolean Value of the checkbox