Interface responsible for supplying what to display. More...
#include <DisplayProvider.h>
Public Member Functions | |
virtual std::vector < std::unique_ptr < display::DisplayElement > > const & | get_display_elements ()=0 |
virtual void | set_bounds (geo::Point const &topleft, geo::Point const &bottomright, int zoom)=0 |
Change current view to position bounded by topleft and bottomright using zoomlevel zoom. | |
virtual std::vector < std::unique_ptr < osm::Element > > | get_selected (geo::Point const &topleft, geo::Point const &bottomright, int zoom)=0 |
Retrieve osm::Elements in box specified by topleft and bottomright when current zoom level is zoom. | |
virtual double | center_lat ()=0 |
virtual double | center_lon ()=0 |
virtual | ~DisplayProvider () |
Interface responsible for supplying what to display.
Definition at line 22 of file DisplayProvider.h.
display::DisplayProvider::~DisplayProvider | ( | ) | [virtual] |
Definition at line 13 of file DisplayProvider.cpp.
virtual double display::DisplayProvider::center_lat | ( | ) | [pure virtual] |
Implemented in osmdb::DisplayDB.
virtual double display::DisplayProvider::center_lon | ( | ) | [pure virtual] |
Implemented in osmdb::DisplayDB.
virtual std::vector<std::unique_ptr<display::DisplayElement> > const& display::DisplayProvider::get_display_elements | ( | ) | [pure virtual] |
Implemented in osmdb::DisplayDB.
virtual std::vector<std::unique_ptr<osm::Element> > display::DisplayProvider::get_selected | ( | geo::Point const & | topleft, |
geo::Point const & | bottomright, | ||
int | zoom | ||
) | [pure virtual] |
Retrieve osm::Elements in box specified by topleft and bottomright when current zoom level is zoom.
topleft | |
bottomright | |
zoom |
Implemented in osmdb::DisplayDB.
virtual void display::DisplayProvider::set_bounds | ( | geo::Point const & | topleft, |
geo::Point const & | bottomright, | ||
int | zoom | ||
) | [pure virtual] |
Change current view to position bounded by topleft and bottomright using zoomlevel zoom.
topleft | |
bottomright | |
zoom |
Implemented in osmdb::DisplayDB.