new VirtualCity()
modules/tools/virtualCity/model.js, line 26
Properties:
Name | Type | Description |
---|---|---|
serviceID |
String | Id of service in rest-services.json thats contains the service url |
Fires:
Listens to Events:
- VirtualCity#event:RadioRequestVirtualCityGetPlanningById
- VirtualCity#event:RadioRequestVirtualCityGetPlannings
- VirtualCity#event:RadioRequestVirtualCityActivatePlanning
- VirtualCity#event:RadioRequestVirtualCityDeactivatePlanning
- VirtualCity#event:RadioRequestVirtualCityGetViewpointsForPlanning
- VirtualCity#event:RadioRequestVirtualCityGetFlightsForPlanning
- VirtualCity#event:RadioRequestVirtualCityGotoViewPoint
Extends
Methods
-
activatePlanning(planningId){Promise}
modules/tools/virtualCity/model.js, line 104 -
activates a Planning identified by the given planningId
Name Type Description planningId
string id of the planningInstance Returns:
which resolves when the planning has been loaded and activated
-
addRadio(){void}
modules/tools/virtualCity/model.js, line 42 -
Register channel for virtual city representation
Listens to Events:
- VirtualCity#event:RadioRequestVirtualCityGetPlanningById
- VirtualCity#event:RadioRequestVirtualCityGetPlannings
- VirtualCity#event:RadioRequestVirtualCityActivatePlanning
- VirtualCity#event:RadioRequestVirtualCityDeactivatePlanning
- VirtualCity#event:RadioRequestVirtualCityGetViewpointsForPlanning
- VirtualCity#event:RadioRequestVirtualCityGetFlightsForPlanning
- VirtualCity#event:RadioRequestVirtualCityGotoViewPoint
-
deactivatePlanning(planningId){Promise}
modules/tools/virtualCity/model.js, line 115 -
deactivates a Planning identified by the given planningId
Name Type Description planningId
string id of the planningInstance Returns:
which resolves when the planning has been loaded and deactivated
-
getFlightsForPlanning(planningId){Promise.<Array.<FlightInstance>>}
modules/tools/virtualCity/model.js, line 139 -
returns flightInstances by the given planningId
Name Type Description planningId
string id of the planningInstance Returns:
which resolves with the list of viewpoints
-
getPlanningById(planningId){Promise}
modules/tools/virtualCity/model.js, line 61 -
returns a planning either from the cache or from the server request
Name Type Description planningId
string id of the planningInstance Returns:
which resolves with the requested Planning
-
getPlannings(){Promise}
modules/tools/virtualCity/model.js, line 74 -
returns a list of plannings from a virtualcityPLANNER Service
Fires:
Returns:
which resolves with an array of the public Plannings
-
getViewpointsForPlanning(planningId){Promise}
modules/tools/virtualCity/model.js, line 126 -
returns viewpoints by the given planningId
Name Type Description planningId
string id of the planningInstance Returns:
which resolves with the list of viewpoints
-
gotoViewPoint(planningId, viewpointId){Promise}
modules/tools/virtualCity/model.js, line 151 -
sets the camera to the specific viewpoint
Name Type Description planningId
string id of the planningInstance viewpointId
string id of the viewpoint Returns:
which resolves when the planning is loaded and the 3D Camera is set to the viewpoint
-
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 -
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 -
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.
Events
-
RadioRequestVirtualCityActivatePlanning
devtools/jsdoc/events.js, line 2180 -
activates a Planning identified by the planningId
Listeners of This Event:
-
RadioRequestVirtualCityDeactivatePlanning
devtools/jsdoc/events.js, line 2185 -
deactivates a Planning identified by the planningId
Listeners of This Event:
-
RadioRequestVirtualCityGetFlightsForPlanning
devtools/jsdoc/events.js, line 2195 -
returns the flights for the given planningId
Listeners of This Event:
-
RadioRequestVirtualCityGetViewpointsForPlanning
devtools/jsdoc/events.js, line 2190 -
returns view points by the given planningId
Listeners of This Event:
-
RadioRequestVirtualCityGotoViewPoint
devtools/jsdoc/events.js, line 2200 -
activates a Viewpoint identified by the given ID
Listeners of This Event: