#include <tile_map_view.h>
Public Member Functions | |
void | Draw () |
void | ResetCache () |
void | SetTileSource (const boost::shared_ptr< TileSource > &tile_source) |
void | SetTransform (const swri_transform_util::Transform &transform) |
void | SetView (double latitude, double longitude, double scale, int32_t width, int32_t height) |
TileMapView () | |
Private Member Functions | |
void | InitializeTile (int32_t level, int64_t x, int64_t y, Tile &tile) |
void | ToLatLon (int32_t level, double x, double y, double &latitude, double &longitude) |
Private Attributes | |
int64_t | center_x_ |
int64_t | center_y_ |
int32_t | height_ |
int32_t | level_ |
std::vector< Tile > | precache_ |
int64_t | size_ |
TextureCachePtr | tile_cache_ |
boost::shared_ptr< TileSource > | tile_source_ |
std::vector< Tile > | tiles_ |
swri_transform_util::Transform | transform_ |
int32_t | width_ |
Definition at line 61 of file tile_map_view.h.
Definition at line 48 of file tile_map_view.cpp.
void tile_map::TileMapView::Draw | ( | ) |
Definition at line 204 of file tile_map_view.cpp.
void tile_map::TileMapView::InitializeTile | ( | int32_t | level, |
int64_t | x, | ||
int64_t | y, | ||
Tile & | tile | ||
) | [private] |
Definition at line 335 of file tile_map_view.cpp.
void tile_map::TileMapView::ResetCache | ( | ) |
Definition at line 57 of file tile_map_view.cpp.
void tile_map::TileMapView::SetTileSource | ( | const boost::shared_ptr< TileSource > & | tile_source | ) |
Definition at line 62 of file tile_map_view.cpp.
void tile_map::TileMapView::SetTransform | ( | const swri_transform_util::Transform & | transform | ) |
Definition at line 68 of file tile_map_view.cpp.
void tile_map::TileMapView::SetView | ( | double | latitude, |
double | longitude, | ||
double | scale, | ||
int32_t | width, | ||
int32_t | height | ||
) |
Definition at line 95 of file tile_map_view.cpp.
void tile_map::TileMapView::ToLatLon | ( | int32_t | level, |
double | x, | ||
double | y, | ||
double & | latitude, | ||
double & | longitude | ||
) | [private] |
Definition at line 326 of file tile_map_view.cpp.
int64_t tile_map::TileMapView::center_x_ [private] |
Definition at line 88 of file tile_map_view.h.
int64_t tile_map::TileMapView::center_y_ [private] |
Definition at line 89 of file tile_map_view.h.
int32_t tile_map::TileMapView::height_ [private] |
Definition at line 94 of file tile_map_view.h.
int32_t tile_map::TileMapView::level_ [private] |
Definition at line 86 of file tile_map_view.h.
std::vector<Tile> tile_map::TileMapView::precache_ [private] |
Definition at line 97 of file tile_map_view.h.
int64_t tile_map::TileMapView::size_ [private] |
Definition at line 91 of file tile_map_view.h.
Definition at line 99 of file tile_map_view.h.
boost::shared_ptr<TileSource> tile_map::TileMapView::tile_source_ [private] |
Definition at line 82 of file tile_map_view.h.
std::vector<Tile> tile_map::TileMapView::tiles_ [private] |
Definition at line 96 of file tile_map_view.h.
Definition at line 84 of file tile_map_view.h.
int32_t tile_map::TileMapView::width_ [private] |
Definition at line 93 of file tile_map_view.h.