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 timetimestamp timestamp with time datetimestamp 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 defaultTimeobject 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 labelstring The label to show next to the checkbox isSelectedboolean 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 preselectedValueDate preselected date startDateDate earliest selectable date endDateDate latest selectable date displayNamestring The name to be displayed near to the datepicker. typestring 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 valuesArray.<integer> Array of min and max times preselectedValueinteger preselcted value in slider stepfloat Increment step precisionfloat The number of digits shown after the decimal. displayNamestring The name to be displayed near to the slider. typestring 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 defaultTimeobject 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 datetimetimestamp new Time Fires:
-
setDatepicker(value){void}
modules/tools/shadow/model.js, line 314 -
Setter for datepicker
Name Type Description valueobject datepicker -
setDates(value){void}
modules/tools/shadow/model.js, line 287 -
Setter for dates
Name Type Description valueArray.<date> Array of date objects -
setDateslider(value){void}
modules/tools/shadow/model.js, line 305 -
Setter for dateslider
Name Type Description valueobject dateslider -
inherited setGlyphicon(value){void}
modules/core/modelList/item.js, line 69 -
Setter for glyphicon
Name Type Description valueString Glyphicon -
inherited setId(value){void}
modules/core/modelList/item.js, line 34 -
Setter for id
Name Type Description valueString Id -
inherited setIsActive(value){void}
modules/core/modelList/tool/model.js, line 129 -
Activates or deactivates tool
Name Type Description valueBoolean Flag if tool is active -
inherited setIsInThemen(value){void}
modules/core/modelList/item.js, line 78 -
Setter for isInThemen
Name Type Description valueBoolean Flag if item is in themen -
setIsShadowEnabled(value){void}
modules/tools/shadow/model.js, line 332 -
Setter for isShadowEnabled
Name Type Description valueboolean isShadowEnabled -
inherited setIsVisibleInMenu(value){void}
modules/core/modelList/item.js, line 105 -
Setter for setIsVisibleInMenu
Name Type Description valueBoolean Flag if item is visible in menu -
inherited setIsVisibleInTree(value){void}
modules/core/modelList/item.js, line 96 -
Setter for isVisibleInTree
Name Type Description valueBoolean Flag if item is visible in layertree -
inherited setLevel(value){void}
modules/core/modelList/item.js, line 87 -
Setter for level
Name Type Description valueString Level -
inherited setName(value){void}
modules/core/modelList/item.js, line 52 -
Setter for name
Name Type Description valueString Name -
inherited setParentId(value){void}
modules/core/modelList/item.js, line 43 -
Setter for parentId
Name Type Description valueString ParentId -
setSnippetsReady(value){void}
modules/tools/shadow/model.js, line 341 -
Setter for snippetsReady
Name Type Description valueboolean snippetsReady -
setTimeslider(value){void}
modules/tools/shadow/model.js, line 296 -
Setter for timeslider
Name Type Description valueobject timeslider -
setToggleButton(value){void}
modules/tools/shadow/model.js, line 323 -
Setter for toggleButton
Name Type Description valueobject toggleButton -
inherited setType(value){void}
modules/core/modelList/item.js, line 60 -
Setter for type
Name Type Description valueString 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 chkboxboolean state of the checkbox -
toggleShadow(chkboxValue){void}
modules/tools/shadow/model.js, line 214 -
Toggles the shadows
Name Type Description chkboxValueboolean Value of the checkbox