AfriGIS Map SDK (BB10)  v 1.0.0
Provides easy integration of AfriGIS Maps into BB10 platform.
Signals | Public Member Functions | Public Attributes | List of all members
AnnotationView Class Reference

View responsible for presenting annotations visually in map. Annotation view are loosely coupled to a corresponding annotation object, which is an object that corresponds to the Item interface. When an annotation’s coordinate point is in the visible region, the annotation view will draw the annotation item. More...

#include <AnnotationView.hpp>

Inheritance diagram for AnnotationView:
OpenGLView

Signals

void sigClusterItemList ()
 private. More...
 

Public Member Functions

 AnnotationView (ViewManager *viewManager, QList< Item * > *itemList=NULL)
 private. More...
 
 ~AnnotationView ()
 destructor More...
 
void render ()
 private. More...
 
void update ()
 private. More...
 
void renderNow ()
 private. More...
 
void pan (float moveX, float moveY)
 private. More...
 
void zoom (float moveX, float moveY, double scaleX, double scaleY)
 private. More...
 
void setMap ()
 private. More...
 
void loadTiles ()
 private. More...
 
void init ()
 private. More...
 
void addItemList (QList< Item * > *itemList)
 add item list to draw on annotation view More...
 
void removeItem (Item *)
 remove a single item More...
 
QList< QPair< float, float > > * convertGeoCoordinatesToRelativeCoordinates (QList< AGLocationCoordinate2D > *geoCoordinates)
 private. More...
 
QList< AGLocationCoordinate2D > * convertRelativeCoordinatesToGeoCoordinates (QList< QPair< float, float > > *relativeCoordinates)
 private. More...
 
QList< Item * > getAllItemList ()
 get all item list More...
 
QList< Item * > getCurretRenderedItemList ()
 get all currently rendered item list More...
 
void enableClustering (bool status)
 enable clustering More...
 
bool isClusterEnable ()
 get clster is enabled or not More...
 
AGMapFont_t * getTextFont ()
 private. More...
 
- Public Member Functions inherited from OpenGLView
 OpenGLView ()
 private. More...
 
virtual ~OpenGLView ()
 private. More...
 

Public Attributes

float centerOfViewX
 private. More...
 
float centerOfViewY
 
float centerAbsoluteCoordX
 private. More...
 
float centerAbsoluteCoordY
 
- Public Attributes inherited from OpenGLView
QString viewID
 private. More...
 
double translateX
 private. More...
 
double translateY
 
double scaleX
 private. More...
 
double scaleY
 

Additional Inherited Members

- Public Slots inherited from OpenGLView

Detailed Description

View responsible for presenting annotations visually in map. Annotation view are loosely coupled to a corresponding annotation object, which is an object that corresponds to the Item interface. When an annotation’s coordinate point is in the visible region, the annotation view will draw the annotation item.

Since
v0.6.0

Constructor & Destructor Documentation

AnnotationView::AnnotationView ( ViewManager *  viewManager,
QList< Item * > *  itemList = NULL 
)

private.

Since
v0.6.0
AnnotationView::~AnnotationView ( )

destructor

Since
v0.6.0

Member Function Documentation

void AnnotationView::addItemList ( QList< Item * > *  itemList)

add item list to draw on annotation view

Parameters
itemListitems to be drawn on this annotation view.
Since
v0.6.0
QList< QPair< float, float > > * AnnotationView::convertGeoCoordinatesToRelativeCoordinates ( QList< AGLocationCoordinate2D > *  geoCoordinates)

private.

Since
v0.6.0
QList< AGLocationCoordinate2D > * AnnotationView::convertRelativeCoordinatesToGeoCoordinates ( QList< QPair< float, float > > *  relativeCoordinates)

private.

Since
v0.6.0
void AnnotationView::enableClustering ( bool  status)

enable clustering

Parameters
status.
Since
v0.6.0
QList< Item * > AnnotationView::getAllItemList ( )

get all item list

Returns
list of items that the annotation view holds.
Since
v0.6.0
QList< Item * > AnnotationView::getCurretRenderedItemList ( )

get all currently rendered item list

Returns
list of currently rendered items that the annotation view holds.
Since
v0.6.0
AGMapFont_t * AnnotationView::getTextFont ( )

private.

Since
v0.6.0
void AnnotationView::init ( )

private.

Since
v0.6.0
bool AnnotationView::isClusterEnable ( )

get clster is enabled or not

Returns
status.
Since
v0.6.0
void AnnotationView::loadTiles ( )
inlinevirtual

private.

Since
v0.6.0

Implements OpenGLView.

void AnnotationView::pan ( float  moveX,
float  moveY 
)
inlinevirtual

private.

Since
v0.6.0

Implements OpenGLView.

void AnnotationView::removeItem ( Item item)

remove a single item

Parameters
Itemto be removed.
Since
v0.6.0
void AnnotationView::render ( )
virtual

private.

Since
v0.6.0

Implements OpenGLView.

void AnnotationView::renderNow ( )
virtual

private.

Since
v0.6.0

Implements OpenGLView.

void AnnotationView::setMap ( )
inlinevirtual

private.

Since
v0.6.0

Implements OpenGLView.

void AnnotationView::sigClusterItemList ( )
signal

private.

Since
v0.6.0
void AnnotationView::update ( )
inlinevirtual

private.

Since
v0.6.0

Implements OpenGLView.

void AnnotationView::zoom ( float  moveX,
float  moveY,
double  scaleX,
double  scaleY 
)
virtual

private.

Since
v0.6.0

Implements OpenGLView.

Member Data Documentation

float AnnotationView::centerAbsoluteCoordX

private.

Since
v0.6.0
float AnnotationView::centerOfViewX

private.

Since
v0.6.0

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