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

Annotation Item object representing a rectangle area on map which is filled with provided image. This class manages the data that defines the area and handles the drawing of the rectangle area on a map which is filled with provided image. More...

#include <ImageItem.hpp>

Inheritance diagram for ImageItem:
Item

Public Member Functions

 ImageItem (QList< AGLocationCoordinate2D > *imageCenter, QByteArray *image, int imageWidth, int imageHeight, ViewManager *viewManager, AGOffsetInPixel offset)
 private. More...
 
 ~ImageItem ()
 destructor. More...
 
void render ()
 private. More...
 
void updateLocation (QList< AGLocationCoordinate2D > *updatedGeoLocationCoordinates)
 update location of the image annotation. More...
 
void addItemInCluster (Item *item)
 private. More...
 
QList< Item * > getItemListInCluster ()
 private. More...
 
void clearCluster ()
 private. More...
 
int getClusterSize ()
 private. More...
 
bool isClusterItem ()
 private. More...
 
QList< AGLocationCoordinate2D > * getLocation ()
 get location of image annotation. More...
 
QPair< int, int > getSize ()
 get width and height. More...
 
void setView (AnnotationView *annotationView)
 private. More...
 
AnnotationViewgetView ()
 private. More...
 
bool isTouched (bb::cascades::TouchEvent *event)
 private. More...
 
bool isTouched (double localX, double localY)
 check if the pixel coordinate is on the image or not. More...
 
bool isBubbleEnabled ()
 private. More...
 
void setBubbleEnabled (bool bubbleStatus)
 private. More...
 
QVariant getAssociatedData ()
 get the data associated with this circle. More...
 
void setAssociatedData (QVariant associatedData)
 set any type of data associated with this circle. More...
 
- Public Member Functions inherited from Item
 Item ()
 private. More...
 
virtual ~Item ()
 private. More...
 

Additional Inherited Members

- Public Attributes inherited from Item
float offsetX
 private. More...
 
float offsetY
 
QVariant associatedData
 private. More...
 

Detailed Description

Annotation Item object representing a rectangle area on map which is filled with provided image. This class manages the data that defines the area and handles the drawing of the rectangle area on a map which is filled with provided image.

Since
v0.6.0

Constructor & Destructor Documentation

ImageItem::ImageItem ( QList< AGLocationCoordinate2D > *  imageCenter,
QByteArray *  image,
int  imageWidth,
int  imageHeight,
ViewManager *  viewManager,
AGOffsetInPixel  offset 
)

private.

Since
v0.6.0
ImageItem::~ImageItem ( )

destructor.

Since
v0.6.0

Member Function Documentation

void ImageItem::addItemInCluster ( Item item)

private.

Since
v0.6.0
void ImageItem::clearCluster ( )

private.

Since
v0.6.0
QVariant ImageItem::getAssociatedData ( )
virtual

get the data associated with this circle.

Returns
associatedData to get
Since
v0.6.0

Implements Item.

int ImageItem::getClusterSize ( )

private.

Since
v0.6.0
QList< Item * > ImageItem::getItemListInCluster ( )

private.

Since
v0.6.0
QList< AGLocationCoordinate2D > * ImageItem::getLocation ( )
virtual

get location of image annotation.

Returns
location
Since
v0.6.0

Implements Item.

QPair< int, int > ImageItem::getSize ( )

get width and height.

Returns
size
Since
v0.6.0
AnnotationView * ImageItem::getView ( )
virtual

private.

Since
v0.6.0

Implements Item.

bool ImageItem::isBubbleEnabled ( )

private.

Since
v0.6.0
bool ImageItem::isClusterItem ( )

private.

Since
v0.6.0
bool ImageItem::isTouched ( bb::cascades::TouchEvent *  event)

private.

Since
v0.6.0
bool ImageItem::isTouched ( double  localX,
double  localY 
)

check if the pixel coordinate is on the image or not.

Parameters
localXx coordinate
localYy coordinate
Since
v0.6.0
void ImageItem::render ( )
virtual

private.

Since
v0.6.0

Implements Item.

void ImageItem::setAssociatedData ( QVariant  associatedData)
virtual

set any type of data associated with this circle.

Parameters
associatedDatato set
Since
v0.6.0

Implements Item.

void ImageItem::setBubbleEnabled ( bool  bubbleStatus)

private.

Since
v0.6.0
void ImageItem::setView ( AnnotationView annotationView)
virtual

private.

Since
v0.6.0

Implements Item.

void ImageItem::updateLocation ( QList< AGLocationCoordinate2D > *  updatedGeoLocationCoordinates)
virtual

update location of the image annotation.

Parameters
locationto update
Since
v0.6.0

Implements Item.


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