digiKam
Digikam::AbstractMarkerTiler Class Referenceabstract
+ Inheritance diagram for Digikam::AbstractMarkerTiler:

Classes

class  ClickInfo
 
class  NonEmptyIterator
 
class  Tile
 

Public Types

enum  TilerFlag { FlagNull = 0 , FlagMovable = 1 }
 

Signals

void signalThumbnailAvailableForIndex (const QVariant &index, const QPixmap &pixmap)
 
void signalTilesOrSelectionChanged ()
 

Public Member Functions

 AbstractMarkerTiler (QObject *const parent=nullptr)
 
virtual QVariant bestRepresentativeIndexFromList (const QList< QVariant > &indices, const int sortKey)=0
 
virtual GeoGroupState getGlobalGroupState ()=0
 
virtual TilegetTile (const TileIndex &tileIndex, const bool stopIfEmpty)=0
 
virtual GeoGroupState getTileGroupState (const TileIndex &tileIndex)=0
 
virtual int getTileMarkerCount (const TileIndex &tileIndex)=0
 
virtual QVariant getTileRepresentativeMarker (const TileIndex &tileIndex, const int sortKey)=0
 these should be implemented for thumbnail handling More...
 
virtual int getTileSelectedCount (const TileIndex &tileIndex)=0
 
bool indicesEqual (const QIntList &a, const QIntList &b, const int upToLevel) const
 
virtual bool indicesEqual (const QVariant &a, const QVariant &b) const =0
 
bool isDirty () const
 
virtual void onIndicesClicked (const ClickInfo &clickInfo)
 these can be implemented if you want to react to actions in geolocation interface More...
 
virtual void onIndicesMoved (const TileIndex::List &tileIndicesList, const GeoCoordinates &targetCoordinates, const QPersistentModelIndex &targetSnapIndex)
 
virtual QPixmap pixmapFromRepresentativeIndex (const QVariant &index, const QSize &size)=0
 
virtual void prepareTiles (const GeoCoordinates &upperLeft, const GeoCoordinates &lowerRight, int level)=0
 
virtual void regenerateTiles ()=0
 
void resetRootTile ()
 
TilerootTile ()
 
virtual void setActive (const bool state)=0
 
void setDirty (const bool state=true)
 
virtual TiletileNew ()=0
 
virtual TilerFlags tilerFlags () const
 these have to be implemented More...
 
 ~AbstractMarkerTiler () override
 

Member Enumeration Documentation

◆ TilerFlag

Enumerator
FlagNull 
FlagMovable 

Constructor & Destructor Documentation

◆ AbstractMarkerTiler()

Digikam::AbstractMarkerTiler::AbstractMarkerTiler ( QObject *const  parent = nullptr)
explicit

◆ ~AbstractMarkerTiler()

Digikam::AbstractMarkerTiler::~AbstractMarkerTiler ( )
override

Member Function Documentation

◆ bestRepresentativeIndexFromList()

virtual QVariant Digikam::AbstractMarkerTiler::bestRepresentativeIndexFromList ( const QList< QVariant > &  indices,
const int  sortKey 
)
pure virtual

◆ getGlobalGroupState()

virtual GeoGroupState Digikam::AbstractMarkerTiler::getGlobalGroupState ( )
pure virtual

◆ getTile()

virtual Tile* Digikam::AbstractMarkerTiler::getTile ( const TileIndex tileIndex,
const bool  stopIfEmpty 
)
pure virtual

◆ getTileGroupState()

virtual GeoGroupState Digikam::AbstractMarkerTiler::getTileGroupState ( const TileIndex tileIndex)
pure virtual

◆ getTileMarkerCount()

virtual int Digikam::AbstractMarkerTiler::getTileMarkerCount ( const TileIndex tileIndex)
pure virtual

◆ getTileRepresentativeMarker()

virtual QVariant Digikam::AbstractMarkerTiler::getTileRepresentativeMarker ( const TileIndex tileIndex,
const int  sortKey 
)
pure virtual

these should be implemented for thumbnail handling

Implemented in Digikam::GPSMarkerTiler, and Digikam::ItemMarkerTiler.

◆ getTileSelectedCount()

virtual int Digikam::AbstractMarkerTiler::getTileSelectedCount ( const TileIndex tileIndex)
pure virtual

◆ indicesEqual() [1/2]

bool Digikam::AbstractMarkerTiler::indicesEqual ( const QIntList a,
const QIntList b,
const int  upToLevel 
) const

◆ indicesEqual() [2/2]

virtual bool Digikam::AbstractMarkerTiler::indicesEqual ( const QVariant &  a,
const QVariant &  b 
) const
pure virtual

◆ isDirty()

◆ onIndicesClicked()

void Digikam::AbstractMarkerTiler::onIndicesClicked ( const ClickInfo clickInfo)
virtual

these can be implemented if you want to react to actions in geolocation interface

Reimplemented in Digikam::GPSMarkerTiler, and Digikam::ItemMarkerTiler.

◆ onIndicesMoved()

void Digikam::AbstractMarkerTiler::onIndicesMoved ( const TileIndex::List tileIndicesList,
const GeoCoordinates targetCoordinates,
const QPersistentModelIndex &  targetSnapIndex 
)
virtual

Reimplemented in Digikam::ItemMarkerTiler.

◆ pixmapFromRepresentativeIndex()

virtual QPixmap Digikam::AbstractMarkerTiler::pixmapFromRepresentativeIndex ( const QVariant &  index,
const QSize &  size 
)
pure virtual

◆ prepareTiles()

virtual void Digikam::AbstractMarkerTiler::prepareTiles ( const GeoCoordinates upperLeft,
const GeoCoordinates lowerRight,
int  level 
)
pure virtual

◆ regenerateTiles()

virtual void Digikam::AbstractMarkerTiler::regenerateTiles ( )
pure virtual

Implemented in Digikam::GPSMarkerTiler, and Digikam::ItemMarkerTiler.

Referenced by rootTile().

◆ resetRootTile()

void Digikam::AbstractMarkerTiler::resetRootTile ( )

◆ rootTile()

◆ setActive()

virtual void Digikam::AbstractMarkerTiler::setActive ( const bool  state)
pure virtual

◆ setDirty()

void Digikam::AbstractMarkerTiler::setDirty ( const bool  state = true)

◆ signalThumbnailAvailableForIndex

void Digikam::AbstractMarkerTiler::signalThumbnailAvailableForIndex ( const QVariant &  index,
const QPixmap &  pixmap 
)
signal

◆ signalTilesOrSelectionChanged

◆ tileNew()

virtual Tile* Digikam::AbstractMarkerTiler::tileNew ( )
pure virtual

◆ tilerFlags()

AbstractMarkerTiler::TilerFlags Digikam::AbstractMarkerTiler::tilerFlags ( ) const
virtual

these have to be implemented

Reimplemented in Digikam::ItemMarkerTiler.

References FlagNull.


The documentation for this class was generated from the following files: