AfriGIS Map SDK (BB10)  v 1.0.0
Provides easy integration of AfriGIS Maps into BB10 platform.
Item.hpp
1 /*
2  * Item.hpp
3  *
4  * Created on: Aug 15, 2013
5  * Author: sdsl
6  */
7 
8 #ifndef ITEM_HPP_
9 #define ITEM_HPP_
10 
11 #include <QtCore/QObject>
12 #include <QPair>
13 #include "AGMapDataStruct.hpp"
14 #include "AGMapViewDelegate.h"
15 #include <qvariant.h>
16 
17 class AnnotationView;
18 
25 class Item : public QObject
26 {
27  Q_OBJECT
28 public:
29 
34  Item() {}
35 
40  virtual ~Item() {}
41 
42 public:
43 
48  virtual void setView(AnnotationView*) = 0;
49 
54  virtual AnnotationView* getView() = 0;
55 
60  virtual void updateLocation(QList<AGLocationCoordinate2D>*) = 0;
61 
66  virtual QList<AGLocationCoordinate2D>* getLocation() = 0;
67 
72  virtual QVariant getAssociatedData() = 0;
73 
78  virtual void setAssociatedData(QVariant associatedData) = 0;
79 //private:
80 
85  virtual void render() = 0;
86 
87 public:
88 
93  float offsetX, offsetY;
94 
99  QVariant associatedData;
100 };
101 
102 #endif /* ITEM_HPP_ */
Item()
private.
Definition: Item.hpp:34
float offsetX
private.
Definition: Item.hpp:93
virtual void updateLocation(QList< AGLocationCoordinate2D > *)=0
private.
virtual AnnotationView * getView()=0
private.
Item interface that need to be implemented by all annotation item object. Currently CircleItem...
Definition: Item.hpp:25
virtual QVariant getAssociatedData()=0
private.
View responsible for presenting annotations visually in map. Annotation view are loosely coupled to a...
Definition: AnnotationView.hpp:29
QVariant associatedData
private.
Definition: Item.hpp:99
virtual QList< AGLocationCoordinate2D > * getLocation()=0
private.
virtual void setAssociatedData(QVariant associatedData)=0
private.
virtual ~Item()
private.
Definition: Item.hpp:40
virtual void render()=0
private.
virtual void setView(AnnotationView *)=0
private.