BookmarksViewController Class

  • BookmarksViewController
  • class Esri::ArcGISRuntime::Toolkit::BookmarksViewController

    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 <BookmarksViewController>
    Inherits: QObject

    Properties

    Public Functions

    BookmarksViewController(QObject *parent = nullptr)
    virtual ~BookmarksViewController() override
    Esri::ArcGISRuntime::Toolkit::GenericListModel *bookmarks() const
    QObject *geoView() const
    void setGeoView(QObject *geoView)
    void zoomToBookmarkExtent(Esri::ArcGISRuntime::Toolkit::BookmarkListItem *bookmark)

    Signals

    Detailed Description

    Property Documentation

    geoView : QObject*

    This property holds the geoView the controller is utilizing for interactions.

    Access functions:

    QObject *geoView() const
    void setGeoView(QObject *geoView)

    Notifier signal:

    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 Object which must inherit from GeoView* and QObject*.

    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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.