In MVC architecture, this is the controller for the corresponding Bookmark view. This class handles the management of the BookmarkListItem objects, and displays the current bookmark. More...
| Header | #include <Bookmarks |
| Inherits | QObject |
Properties
- geoView : QObject*
Public Functions
| Bookmarks | |
| virtual | ~ |
| Esri | bookmarks() const |
| QObject * | geo |
| void | set |
| void | zoom |
Signals
| void | geo |
Detailed Description
Property Documentation
geoView : QObject*
This property holds the geoView the controller is utilizing for interactions.
Access functions:
| QObject * | geo |
| void | set |
Notifier signal:
| void | geo |
See also Esri::ArcGISRuntime::Toolkit::BookmarksViewController::geoView() and const.
Member Function Documentation
BookmarksViewController::BookmarksViewController (QObject *parent = nullptr)
Constructor.
- parent owning parent object.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[signal] void BookmarksViewController::geoViewChanged ()
Emitted when the geoView has changed.
Note: Notifier signal for property geoView.
[override virtual] BookmarksViewController::~BookmarksViewController ()
Destructor
Esri::ArcGISRuntime::Toolkit::GenericListModel *BookmarksViewController::bookmarks() const
Returns the known list of available bookmarks which can be textually displayed.
Internally, this is a GenericListModel with an elementType of Bookmark.
Note: Getter function for property bookmarks.
QObject *BookmarksViewController::geoView () const
Returns the GeoView as a QObject.
Note: Getter function for property geoView.
See also setGeoView().
void BookmarksViewController::setGeoView (QObject *geoView )
Set the GeoView object this Controller uses.
Internally this is cast to a MapView or SceneView using qobject_cast, which is why the paremeter is of form QObject and not GeoView.
- geoView
Objectwhich must inherit fromGeoView*andQObject*.
Note: Setter function for property geoView.
See also geoView().
void BookmarksViewController::zoomToBookmarkExtent (Esri::ArcGISRuntime::Toolkit::BookmarkListItem *bookmark)
Updates the GeoView camera to point to the current bookmark's location on the map.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.