|
MoSync 3.3
|
Representation of a single layer in a map. More...
#include <MAP/Layer.h>
Public Member Functions | |
| Layer () | |
| virtual | ~Layer () |
| virtual void | draw (MapViewport *viewport, const Rect &bounds, MagnificationType magnification, bool isLayerSelected)=0 |
| const char * | getTitle () const |
| void | setTitle (const char *title) |
| virtual void | selectItem (int index)=0 |
| virtual void | selectNextItem ()=0 |
| virtual void | selectPreviousItem ()=0 |
| virtual void | activateSelectedItem ()=0 |
| virtual void | getBoundingBox (double &left, double &top, double &right, double &bottom)=0 |
| virtual LonLat | getSelectedItemLocation ()=0 |
| void | setEnabled (bool enabled) |
| bool | getEnabled () const |
| void | addListener (ILayerListener *listener) |
| void | removeListener (ILayerListener *listener) |
| Vector< ILayerListener * > * | getListeners () |
Protected Member Functions | |
| virtual void | onContentChanged () |
Representation of a single layer in a map.
| virtual MAP::Layer::~Layer | ( | ) | [inline, virtual] |
| virtual void MAP::Layer::draw | ( | MapViewport * | viewport, |
| const Rect & | bounds, | ||
| MagnificationType | magnification, | ||
| bool | isLayerSelected | ||
| ) | [pure virtual] |
Implemented in MAP::GeoPointLayer.
| const char* MAP::Layer::getTitle | ( | ) | const [inline] |
| void MAP::Layer::setTitle | ( | const char * | title | ) | [inline] |
| virtual void MAP::Layer::selectItem | ( | int | index | ) | [pure virtual] |
Implemented in MAP::GeoPointLayer.
| virtual void MAP::Layer::selectNextItem | ( | ) | [pure virtual] |
Implemented in MAP::GeoPointLayer.
| virtual void MAP::Layer::selectPreviousItem | ( | ) | [pure virtual] |
Implemented in MAP::GeoPointLayer.
| virtual void MAP::Layer::activateSelectedItem | ( | ) | [pure virtual] |
Implemented in MAP::GeoPointLayer.
| virtual void MAP::Layer::getBoundingBox | ( | double & | left, |
| double & | top, | ||
| double & | right, | ||
| double & | bottom | ||
| ) | [pure virtual] |
Implemented in MAP::GeoPointLayer.
| virtual LonLat MAP::Layer::getSelectedItemLocation | ( | ) | [pure virtual] |
Implemented in MAP::GeoPointLayer.
| void MAP::Layer::setEnabled | ( | bool | enabled | ) |
| bool MAP::Layer::getEnabled | ( | ) | const [inline] |
| virtual void MAP::Layer::onContentChanged | ( | ) | [protected, virtual] |
| void MAPUtil::Broadcaster< ILayerListener >::addListener | ( | ILayerListener * | listener | ) | [inline, inherited] |
Add a listener. Clients should call this to register for notification.
| void MAPUtil::Broadcaster< ILayerListener >::removeListener | ( | ILayerListener * | listener | ) | [inline, inherited] |
Remove a listener. Clients should call this to unregister for notification.
| Vector<ILayerListener *>* MAPUtil::Broadcaster< ILayerListener >::getListeners | ( | ) | [inline, inherited] |