The controller part of a FloorFilter. This class handles the toggling of selected levels' visibility associated to the FloorFilter
inputted GeoModel
FloorAware layers. Automatically loads the GeoModel
and its associated FloorManager
. More...
Since: | Esri.ArcGISRuntime 100.14 |
Properties
- automaticSelectionMode : int
- facilities : ListModel
- floorManager : FloorManager
- floorManagerConn : Connections
- geoModel : GeoModel
- geoModelConn : Connections
- geoView : GeoView
- internal : QtObject
- levels : ListModel
- selectedFacilityId : string
- selectedLevelId : string
- selectedSiteId : string
- selectedSiteRespected : bool
- sites : ListModel
- updateLevelsMode : int
Signals
- loaded()
Methods
- populateFacilities(listFacilities)
- populateLevels(listLevels)
- populateSites(listSites)
- resetLevelsVisibility(verticalOrder)
- setSelectedFacilityId(facilityId)
- setSelectedLevelId(levelId)
- setSelectedSiteId(siteId)
- setVisibilityCurrentLevel(visibility)
- tryUpdateSelection()
- zoomToFacility(facilityId)
- zoomToSite(siteId)
Detailed Description
Property Documentation
The mode selected defines how the FloorFilter
updates its selection as the user navigates the connected GeoView
.
Constant | Description |
---|---|
AutomaticSelectionMode.Never | Viewpoint navigation does not affect the currently selected facility. |
AutomaticSelectionMode.Always | When the geoview's current viewpoint updates, the controller tests to see if the facility intersect the viewpoint, and selects it if so. If no facility intersects the viewpoint, then the current facility is deselected. |
AutomaticSelectionMode.AlwaysNonClearing | Variant of Always , but if there is no facility to select within the viewpoint then we do not deselect the current viewpoint. |
Default is AutomaticSelectionMode.Always
Stores the facilities in the currently selected site.
See also selectedSiteId.
Load the floorManager associated with the geoModel and populate the sites.
See also populateSites.
load the FloorManager
associated with the geoModel.
The GeoView
the controller is listening to for viewpoint changes. Controller sets the GeoView
viewpoint when selecting site/facility.
Stores the levels in the currently selected facility in alphabetical order. If not selectedSiteRespected, all levels are stored.
See also selectedLevelId.
Repopulates the facilities model when toggled false. When the selected site is respected, the facilities list is limited to the facilities which match the selected site. If the selected site is not respected, then facilities will contain all facilities from all sites, regardless of the selected site. Default is true
.
Stores all the sites in the current floorManager.
See also selectedSiteId.
The mode that defines how levels are made visible/invisible in the geoView.
Constant | Description |
---|---|
UpdateLevelsMode.AllLevelsMatchingVerticalOrder | When a level is selected, all levels with matching vertical order are made visible, all other levels are invisible. |
Default is UpdateLevelsMode.AllLevelsMatchingVerticalOrder
Signal Documentation
Signal emitted once the floorManager has been successfully loaded.
Note: The corresponding handler is onLoaded
.
Method Documentation
Clears and repopulates facilities with listFacilities. Expects the facility elements to have `name`, `facilityId` and `site.name` properties. Model facilities elements are alphabetically ordered. If only on facility exists we select that facility, otherwise we do not automatically select a facility.
Clears and repopulates the levels with listLevels. Expects the levels elements to have `shortName`, `longName`, `levelId` properties. Levels are sorted in terms of their vertical order, and a default level is selected, favoring the level with verticalOrder == 0.
Clears and repopulates sites with listSites. Expects the site elements to have properties `name` and `siteId`. If only one site exists in the model, then we select it automatically.
See also setSelectedSiteId.
Sets the facilityId as selectedFacilityId. This will load the levels with the levels withing the facility and reset by selecting selectedLevelId with level matching vertical ordering == 0. Also, sets the selectedSiteId to the facility's parent site. Set empty string to reset the facility.
See also setSelectedLevelId.
Sets the levelId as selectedLevelId. This will change the current visible level on the GeoView
. If levelId is empty string, current selected level is deseleted and its visibility is set to false. Resets the previous level visibility. updateLevelsMode modifies the behavior of selecting level.
Sets the siteId as selectedSiteId. This will load the facilities with the facilities within the site and reset selectedFacilityId. Does not repopulate facilities in case of not selectedSiteRespected.
Tries to update the current selected site,facility and level based on the current viewcenter point geometry. In case a site/facility is in the current viewpoint center, it is selected and its default level shown. The automaticSelectionMode is used to decide the specific behavior of level selection.