| digiKam Developer Documentation Professional Photo Management with the Power of Open Source

Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | List of all members
Digikam::GPSMarkerTiler Class Reference

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

## Detailed Description

The data is retrieved from Digikam's database.

## Constructor & Destructor Documentation

## ◆ GPSMarkerTiler()

Digikam::GPSMarkerTiler::GPSMarkerTiler | ( | QObject *const | parent,
|  | ItemFilterModel *const | imageFilterModel,
|  | QItemSelectionModel *const | selectionModel
| ) |  |
| explicit

Parameters

  parent | The parent object
  imageFilterModel | The image filter instance
  selectionModel | The selection model instance

## Member Function Documentation

## ◆ bestRepresentativeIndexFromList()

QVariant Digikam::GPSMarkerTiler::bestRepresentativeIndexFromList | ( | const QList< QVariant > & | indices,
|  | const int | sortKey
| ) |  |
| override virtual

This is needed to display a thumbnail for a marker group.

Parameters

  indices | A list containing markers, obtained by getTileRepresentativeMarker.
  sortKey | Sets the criteria for selecting the representative thumbnail, a combination of the SortOptions bits.

Returns
  Returns the internally used index of the marker.

Implements Digikam::AbstractMarkerTiler.

## ◆ getGlobalGroupState()

GeoGroupState Digikam::GPSMarkerTiler::getGlobalGroupState | ( |  | ) |
| override virtual

Implements Digikam::AbstractMarkerTiler.

## ◆ getTile()

AbstractMarkerTiler::Tile * Digikam::GPSMarkerTiler::getTile | ( | const TileIndex & | tileIndex,
|  | const bool | stopIfEmpty
| ) |  |
| override virtual

Parameters

  tileIndex | The index of a tile.
  stopIfEmpty | Determines whether child tiles are also created for empty tiles.

Implements Digikam::AbstractMarkerTiler.

## ◆ getTileGroupState()

GeoGroupState Digikam::GPSMarkerTiler::getTileGroupState | ( | const TileIndex & | tileIndex | ) |
| override virtual

Implements Digikam::AbstractMarkerTiler.

## ◆ getTileMarkerCount()

int Digikam::GPSMarkerTiler::getTileMarkerCount | ( | const TileIndex & | tileIndex | ) |
| override virtual

Implements Digikam::AbstractMarkerTiler.

## ◆ getTileRepresentativeMarker()

QVariant Digikam::GPSMarkerTiler::getTileRepresentativeMarker | ( | const TileIndex & | tileIndex,
|  | const int | sortKey
| ) |  |
| override virtual

Parameters

  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.

Returns
  Returns the internally used index of the marker.

Implements Digikam::AbstractMarkerTiler.

## ◆ getTileSelectedCount()

int Digikam::GPSMarkerTiler::getTileSelectedCount | ( | const TileIndex & | tileIndex | ) |
| override virtual

Implements Digikam::AbstractMarkerTiler.

## ◆ indicesEqual()

bool Digikam::GPSMarkerTiler::indicesEqual | ( | const QVariant & | a,
|  | const QVariant & | b
| ) |  | const
| override virtual

Implements Digikam::AbstractMarkerTiler.

## ◆ onIndicesClicked()

void Digikam::GPSMarkerTiler::onIndicesClicked | ( | const ClickInfo & | clickInfo | ) |
| override virtual

Reimplemented from Digikam::AbstractMarkerTiler.

## ◆ pixmapFromRepresentativeIndex()

QPixmap Digikam::GPSMarkerTiler::pixmapFromRepresentativeIndex | ( | const QVariant & | index,
|  | const QSize & | size
| ) |  |
| override virtual

Parameters

  index | The marker's index.
  size | The size of the thumbnail.

Returns
  If the thumbnail has been loaded in the ThumbnailLoadThread instance, it is returned. If not, a QPixmap is returned and ThumbnailLoadThread's signal named signalThumbnailLoaded is emitted when the thumbnail becomes available.

Implements Digikam::AbstractMarkerTiler.

## ◆ prepareTiles()

void Digikam::GPSMarkerTiler::prepareTiles | ( | const GeoCoordinates & | upperLeft,
|  | const GeoCoordinates & | lowerRight,
|  | int | level
| ) |  |
| override virtual

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.

Parameters

  upperLeft | The North-West point.
  lowerRight | The South-East point.
  level | The requested tiling level.

Implements Digikam::AbstractMarkerTiler.

## ◆ regenerateTiles()

void Digikam::GPSMarkerTiler::regenerateTiles | ( |  | ) |
| override virtual

Implements Digikam::AbstractMarkerTiler.

## ◆ setActive()

void Digikam::GPSMarkerTiler::setActive | ( | const bool | state | ) |
| override virtual

Parameters

  state | New state of the map, true means active.

Implements Digikam::AbstractMarkerTiler.

## ◆ setPositiveFilterIsActive()

void Digikam::GPSMarkerTiler::setPositiveFilterIsActive | ( | const bool | state | ) |

## ◆ slotNewModelData

void Digikam::GPSMarkerTiler::slotNewModelData | ( | const QList< ItemInfo > & | infoList | ) |
| slot

## ◆ tileNew()

AbstractMarkerTiler::Tile * Digikam::GPSMarkerTiler::tileNew | ( |  | ) |
| override virtual

Implements Digikam::AbstractMarkerTiler.