Public Member Functions | Private Member Functions | Private Attributes | List of all members
tile_map::TileMapView Class Reference

#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 DrawTiles (std::vector< Tile > &tiles, int priority)
 
void InitializeTile (int32_t level, int64_t x, int64_t y, Tile &tile, int priority)
 
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< Tileprecache_
 
int64_t size_
 
TextureCachePtr tile_cache_
 
boost::shared_ptr< TileSourcetile_source_
 
std::vector< Tiletiles_
 
swri_transform_util::Transform transform_
 
int32_t width_
 

Detailed Description

Definition at line 61 of file tile_map_view.h.

Constructor & Destructor Documentation

tile_map::TileMapView::TileMapView ( )

Definition at line 50 of file tile_map_view.cpp.

Member Function Documentation

void tile_map::TileMapView::Draw ( )

Definition at line 259 of file tile_map_view.cpp.

void tile_map::TileMapView::DrawTiles ( std::vector< Tile > &  tiles,
int  priority 
)
private

Definition at line 206 of file tile_map_view.cpp.

void tile_map::TileMapView::InitializeTile ( int32_t  level,
int64_t  x,
int64_t  y,
Tile tile,
int  priority 
)
private

Definition at line 283 of file tile_map_view.cpp.

void tile_map::TileMapView::ResetCache ( )

Definition at line 59 of file tile_map_view.cpp.

void tile_map::TileMapView::SetTileSource ( const boost::shared_ptr< TileSource > &  tile_source)

Definition at line 64 of file tile_map_view.cpp.

void tile_map::TileMapView::SetTransform ( const swri_transform_util::Transform transform)

Definition at line 70 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 97 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 274 of file tile_map_view.cpp.

Member Data Documentation

int64_t tile_map::TileMapView::center_x_
private

Definition at line 90 of file tile_map_view.h.

int64_t tile_map::TileMapView::center_y_
private

Definition at line 91 of file tile_map_view.h.

int32_t tile_map::TileMapView::height_
private

Definition at line 96 of file tile_map_view.h.

int32_t tile_map::TileMapView::level_
private

Definition at line 88 of file tile_map_view.h.

std::vector<Tile> tile_map::TileMapView::precache_
private

Definition at line 99 of file tile_map_view.h.

int64_t tile_map::TileMapView::size_
private

Definition at line 93 of file tile_map_view.h.

TextureCachePtr tile_map::TileMapView::tile_cache_
private

Definition at line 101 of file tile_map_view.h.

boost::shared_ptr<TileSource> tile_map::TileMapView::tile_source_
private

Definition at line 84 of file tile_map_view.h.

std::vector<Tile> tile_map::TileMapView::tiles_
private

Definition at line 98 of file tile_map_view.h.

swri_transform_util::Transform tile_map::TileMapView::transform_
private

Definition at line 86 of file tile_map_view.h.

int32_t tile_map::TileMapView::width_
private

Definition at line 95 of file tile_map_view.h.


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


tile_map
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 19:25:35