![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Marker model for storing data needed to display markers on the map. More...
Inheritance diagram for Digikam::GPSMarkerTiler:Public Slots | |
| void | slotNewModelData (const QList< ItemInfo > &infoList) |
| Receives notifications from the album model about new items. | |
Signals | |
| void | signalModelFilteredImages (const QList< qlonglong > &imagesId) |
Signals inherited from Digikam::AbstractMarkerTiler | |
| void | signalThumbnailAvailableForIndex (const QVariant &index, const QPixmap &pixmap) |
| void | signalTilesOrSelectionChanged () |
Public Member Functions | |
| GPSMarkerTiler (QObject *const parent, ItemFilterModel *const imageFilterModel, QItemSelectionModel *const selectionModel) | |
| Constructor. | |
| ~GPSMarkerTiler () override | |
| Destructor. | |
| QVariant | bestRepresentativeIndexFromList (const QList< QVariant > &indices, const int sortKey) override |
| This function finds the best representative marker from a group of markers. | |
| GeoGroupState | getGlobalGroupState () override |
| AbstractMarkerTiler::Tile * | getTile (const TileIndex &tileIndex, const bool stopIfEmpty) override |
| Returns a pointer to a tile. | |
| GeoGroupState | getTileGroupState (const TileIndex &tileIndex) override |
| int | getTileMarkerCount (const TileIndex &tileIndex) override |
| QVariant | getTileRepresentativeMarker (const TileIndex &tileIndex, const int sortKey) override |
| This function finds the best representative marker from a tile of markers. | |
| int | getTileSelectedCount (const TileIndex &tileIndex) override |
| bool | indicesEqual (const QVariant &a, const QVariant &b) const override |
| This function compares two marker indices. | |
| void | onIndicesClicked (const ClickInfo &clickInfo) override |
| These can be implemented if you want to react to actions in geolocation interface. | |
| QPixmap | pixmapFromRepresentativeIndex (const QVariant &index, const QSize &size) override |
| This function retrieves the thumbnail for an index. | |
| void | prepareTiles (const GeoCoordinates &upperLeft, const GeoCoordinates &lowerRight, int level) override |
| Requests all images inside a given rectangle from the database. | |
| void | regenerateTiles () override |
| void | removeCurrentRegionSelection () |
| void | setActive (const bool state) override |
| Sets the map active/inactive. | |
| void | setPositiveFilterIsActive (const bool state) |
| void | setRegionSelection (const GeoCoordinates::Pair &sel) |
| Tile * | tileNew () override |
Public Member Functions inherited from Digikam::AbstractMarkerTiler | |
| AbstractMarkerTiler (QObject *const parent=nullptr) | |
| bool | indicesEqual (const QIntList &a, const QIntList &b, const int upToLevel) const |
| bool | isDirty () const |
| virtual void | onIndicesMoved (const TileIndex::List &tileIndicesList, const GeoCoordinates &targetCoordinates, const QPersistentModelIndex &targetSnapIndex) |
| void | resetRootTile () |
| Tile * | rootTile () |
| void | setDirty (const bool state=true) |
| virtual TilerFlags | tilerFlags () const |
| These have to be implemented. | |
Additional Inherited Members | |
Public Types inherited from Digikam::AbstractMarkerTiler | |
| enum | TilerFlag { FlagNull = 0 , FlagMovable = 1 } |
| typedef QFlags< TilerFlag > | TilerFlags |
The data is retrieved from Digikam's database.
|
explicit |
| parent | The parent object |
| imageFilterModel | The image filter instance |
| selectionModel | The selection model instance |
|
overridevirtual |
This is needed to display a thumbnail for a marker group.
| indices | A list containing markers, obtained by getTileRepresentativeMarker. |
| sortKey | Sets the criteria for selecting the representative thumbnail, a combination of the SortOptions bits. |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
| tileIndex | The index of a tile. |
| stopIfEmpty | Determines whether child tiles are also created for empty tiles. |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
| tileIndex | Index of the tile from which the best marker should be found. |
| sortKey | Sets the criteria for selecting the representative thumbnail, a combination of the SortOptions bits. |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Reimplemented from Digikam::AbstractMarkerTiler.
|
overridevirtual |
| index | The marker's index. |
| size | The size of the thumbnail. |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
This function calls the database for the images found inside a rectangle defined by upperLeft and lowerRight points. The images are returned from the database in batches.
| upperLeft | The North-West point. |
| lowerRight | The South-East point. |
| level | The requested tiling level. |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
| state | New state of the map, true means active. |
Implements Digikam::AbstractMarkerTiler.
| void Digikam::GPSMarkerTiler::setPositiveFilterIsActive | ( | const bool | state | ) |
|
slot |
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.