• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

Digikam::MarkerClusterHolder::ClusterInfo

Digikam::MarkerClusterHolder::ClusterInfo Class Reference

Information about a cluster. More...

#include <markerclusterholder.h>

List of all members.

Public Types

typedef QList< ClusterInfo > List
enum  PartialState { PartialNone = 0, PartialSome = 1, PartialAll = 2 }

Public Member Functions

 ClusterInfo ()
void addMarkerIndex (const int markerIndex)
void addMarkerIndices (const QIntList &markerIndexList)
void getColorInfos (const bool haveAnySolo, QColor *fillColor, QColor *strokeColor, Qt::PenStyle *strokeStyle, QString *labelText, QColor *labelColor) const
QString getLabelText () const
int markerCount () const
void setCenter (const MarkerInfo &marker)
void setCenter (const qreal newLat, const qreal newLon)

Public Attributes

bool centerValid
QSize lastSize
qreal lat
qreal lon
QIntList markerIndices
QSize maxSize
QPoint pixelPos
PartialState selected
PartialState solo
QVariant userData

Detailed Description

Information about a cluster.

Definition at line 212 of file markerclusterholder.h.


Member Typedef Documentation

typedef QList<ClusterInfo> Digikam::MarkerClusterHolder::ClusterInfo::List

Definition at line 309 of file markerclusterholder.h.


Member Enumeration Documentation

enum Digikam::MarkerClusterHolder::ClusterInfo::PartialState

Description for a property which can apply for a part of the markers of this cluster.

Enumerator:
PartialNone 

Property does not apply for any markers in this cluster.

PartialSome 

Property applies for some of the markers in this cluster.

PartialAll 

Property applies for all markers in the cluster.

Definition at line 235 of file markerclusterholder.h.


Constructor & Destructor Documentation

Digikam::MarkerClusterHolder::ClusterInfo::ClusterInfo (  )  [inline]

Definition at line 250 of file markerclusterholder.h.


Member Function Documentation

void Digikam::MarkerClusterHolder::ClusterInfo::addMarkerIndex ( const int  markerIndex  )  [inline]

Adds a marker to this cluster.

Parameters:
markerIndex Index of the marker to be added

Definition at line 268 of file markerclusterholder.h.

void Digikam::MarkerClusterHolder::ClusterInfo::addMarkerIndices ( const QIntList &  markerIndexList  )  [inline]

Adds markers to this cluster.

Parameters:
markerIndexList List of indices of the markers to be added

Definition at line 277 of file markerclusterholder.h.

void Digikam::MarkerClusterHolder::ClusterInfo::getColorInfos ( const bool  haveAnySolo,
QColor *  fillColor,
QColor *  strokeColor,
Qt::PenStyle *  strokeStyle,
QString *  labelText,
QColor *  labelColor 
) const

Return color and style information for rendering the cluster.

Parameters:
haveAnySolo Are there any markers that are solo?
fillColor Color used to fill the circle
strokeColor Color used for the stroke around the circle
strokeStyle Style used to draw the stroke around the crircle
labelText Text for the label
labelColor Color for the label text

Definition at line 275 of file markerclusterholder.cpp.

QString Digikam::MarkerClusterHolder::ClusterInfo::getLabelText (  )  const

Returns the label for this cluster.

Returns:
The label for this cluster

Definition at line 232 of file markerclusterholder.cpp.

int Digikam::MarkerClusterHolder::ClusterInfo::markerCount (  )  const [inline]

Returns the number of markers in this cluster.

Returns:
The number of markers

Definition at line 259 of file markerclusterholder.h.

void Digikam::MarkerClusterHolder::ClusterInfo::setCenter ( const MarkerInfo &  marker  )  [inline]

Sets the center of the cluster.

Parameters:
marker Marker whose coordinates are to be used as the new center

Definition at line 302 of file markerclusterholder.h.

void Digikam::MarkerClusterHolder::ClusterInfo::setCenter ( const qreal  newLat,
const qreal  newLon 
) [inline]

Sets the center of the cluster.

Parameters:
newLat Latitude of the center of the cluster
newLon Longitude of the center of the cluster

Definition at line 291 of file markerclusterholder.h.


Member Data Documentation

bool Digikam::MarkerClusterHolder::ClusterInfo::centerValid

whether the center has been set yet

Definition at line 222 of file markerclusterholder.h.

QSize Digikam::MarkerClusterHolder::ClusterInfo::lastSize

last size on the map (needed for mouse interaction)

Definition at line 230 of file markerclusterholder.h.

qreal Digikam::MarkerClusterHolder::ClusterInfo::lat

latitude of the center of this cluster

Definition at line 218 of file markerclusterholder.h.

qreal Digikam::MarkerClusterHolder::ClusterInfo::lon

longitude of the center of this cluster

Definition at line 220 of file markerclusterholder.h.

QIntList Digikam::MarkerClusterHolder::ClusterInfo::markerIndices

indices of the markers in this cluster

Definition at line 226 of file markerclusterholder.h.

QSize Digikam::MarkerClusterHolder::ClusterInfo::maxSize

maximum size on the map

Definition at line 228 of file markerclusterholder.h.

QPoint Digikam::MarkerClusterHolder::ClusterInfo::pixelPos

position of the cluster on the screen

Definition at line 224 of file markerclusterholder.h.

PartialState Digikam::MarkerClusterHolder::ClusterInfo::selected

Selection state of this cluster.

Definition at line 246 of file markerclusterholder.h.

PartialState Digikam::MarkerClusterHolder::ClusterInfo::solo

Solo state of this cluter.

Definition at line 248 of file markerclusterholder.h.

QVariant Digikam::MarkerClusterHolder::ClusterInfo::userData

userdata stored in the cluster

Definition at line 232 of file markerclusterholder.h.


The documentation for this class was generated from the following files:
  • markerclusterholder.h
  • markerclusterholder.cpp

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal