digikam
Digikam::MarkerClusterHolder::ClusterInfo Class Reference
Information about a cluster. More...
#include <markerclusterholder.h>
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
Definition at line 309 of file markerclusterholder.h.
Member Enumeration Documentation
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
whether the center has been set yet
Definition at line 222 of file markerclusterholder.h.
last size on the map (needed for mouse interaction)
Definition at line 230 of file markerclusterholder.h.
latitude of the center of this cluster
Definition at line 218 of file markerclusterholder.h.
longitude of the center of this cluster
Definition at line 220 of file markerclusterholder.h.
indices of the markers in this cluster
Definition at line 226 of file markerclusterholder.h.
maximum size on the map
Definition at line 228 of file markerclusterholder.h.
position of the cluster on the screen
Definition at line 224 of file markerclusterholder.h.
Selection state of this cluster.
Definition at line 246 of file markerclusterholder.h.
Solo state of this cluter.
Definition at line 248 of file markerclusterholder.h.
userdata stored in the cluster
Definition at line 232 of file markerclusterholder.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference