GeoModelFloorAware layers. Automatically loads the
GeoModeland its associated
The controller part of a FloorFilter. This class handles the toggling of selected levels' visibility associated to the
GeoModel FloorAware layers. Automatically loads the
GeoModel and its associated
- 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
automaticSelectionMode : int
The mode selected defines how the
FloorFilter updates its selection as the user navigates the connected
|Viewpoint navigation does not affect the currently selected facility.|
|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.|
|Variant of |
[read-only] facilities : ListModel
Stores the facilities in the currently selected site.
See also selectedSiteId.
floorManager : FloorManager
floorManagerConn : Connections
geoModel : GeoModel
The GeoModel used by the controller to obtain the FloorManager.
geoModelConn : Connections
FloorManager associated with the geoModel.
geoView : GeoView
GeoView the controller is listening to for viewpoint changes. Controller sets the
GeoView viewpoint when selecting site/facility.
internal : QtObject
[read-only] levels : ListModel
[read-only] selectedFacilityId : string
Stores the current selected facility Id. Default is
[read-only] selectedLevelId : string
Stores the current selected level Id. Default is
[read-only] selectedSiteId : string
Stores the current selected site Id. Default is
selectedSiteRespected : bool
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
[read-only] sites : ListModel
updateLevelsMode : int
The mode that defines how levels are made visible/invisible in the geoView.
|When a level is selected, all levels with matching vertical order are made visible, all other levels are invisible.|
Signal emitted once the floorManager has been successfully loaded.
Note: The corresponding handler is
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.
Setting the levels visible that match the verticalOrder
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.
Set the visibility to the
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.
On the GeoView, zooms to the facility with ID matching facilityId.
GeoView, zooms to the facility with ID matching siteId.