Public Member Functions | Protected Slots | Private Member Functions | Private Attributes | Static Private Attributes
tile_map::TileMapPlugin Class Reference

#include <tile_map_plugin.h>

Inheritance diagram for tile_map::TileMapPlugin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void Draw (double x, double y, double scale)
QWidget * GetConfigWidget (QWidget *parent)
bool Initialize (QGLWidget *canvas)
void LoadConfig (const YAML::Node &node, const std::string &path)
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
void Shutdown ()
 TileMapPlugin ()
void Transform ()
virtual ~TileMapPlugin ()

Protected Slots

void DeleteTileSource ()
void PrintError (const std::string &message)
void PrintInfo (const std::string &message)
void PrintWarning (const std::string &message)
void ResetTileCache ()
void SaveCustomSource ()
void SelectSource (const QString &source_name)

Private Member Functions

void selectTileSource (const boost::shared_ptr< TileSource > &tile_source)
void startCustomEditing ()
void stopCustomEditing ()

Private Attributes

QWidget * config_widget_
swri_transform_util::Transform inverse_transform_
double last_center_x_
double last_center_y_
int32_t last_height_
double last_scale_
int32_t last_width_
TileMapView tile_map_
std::map< QString,
boost::shared_ptr< TileSource > > 
tile_sources_
swri_transform_util::Transform transform_
bool transformed_
Ui::tile_map_config ui_

Static Private Attributes

static std::string BASE_URL_KEY = "base_url"
static std::string BING_API_KEY = "bing_api_key"
static QString BING_NAME = "Bing Maps (terrain)"
static std::string CUSTOM_SOURCES_KEY = "custom_sources"
static std::string MAX_ZOOM_KEY = "max_zoom"
static std::string NAME_KEY = "name"
static std::string SOURCE_KEY = "source"
static QString STAMEN_TERRAIN_NAME = "Stamen (terrain)"
static QString STAMEN_TONER_NAME = "Stamen (toner)"
static QString STAMEN_WATERCOLOR_NAME = "Stamen (watercolor)"
static std::string TYPE_KEY = "type"

Detailed Description

Definition at line 58 of file tile_map_plugin.h.


Constructor & Destructor Documentation

Definition at line 66 of file tile_map_plugin.cpp.

Definition at line 115 of file tile_map_plugin.cpp.


Member Function Documentation

void tile_map::TileMapPlugin::DeleteTileSource ( ) [protected, slot]

Definition at line 119 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::Draw ( double  x,
double  y,
double  scale 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 292 of file tile_map_plugin.cpp.

QWidget * tile_map::TileMapPlugin::GetConfigWidget ( QWidget *  parent) [virtual]

Reimplemented from mapviz::MapvizPlugin.

Definition at line 276 of file tile_map_plugin.cpp.

bool tile_map::TileMapPlugin::Initialize ( QGLWidget *  canvas) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 283 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::LoadConfig ( const YAML::Node &  node,
const std::string &  path 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 332 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::PrintError ( const std::string &  message) [protected, virtual, slot]

Implements mapviz::MapvizPlugin.

Definition at line 240 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::PrintInfo ( const std::string &  message) [protected, virtual, slot]

Implements mapviz::MapvizPlugin.

Definition at line 252 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::PrintWarning ( const std::string &  message) [protected, virtual, slot]

Implements mapviz::MapvizPlugin.

Definition at line 264 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::ResetTileCache ( ) [protected, slot]

Definition at line 235 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::SaveConfig ( YAML::Emitter &  emitter,
const std::string &  path 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 387 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::SaveCustomSource ( ) [protected, slot]

Definition at line 182 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::SelectSource ( const QString &  source_name) [protected, slot]

Definition at line 140 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::selectTileSource ( const boost::shared_ptr< TileSource > &  tile_source) [private]

Definition at line 414 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::Shutdown ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 67 of file tile_map_plugin.h.

Definition at line 430 of file tile_map_plugin.cpp.

Definition at line 438 of file tile_map_plugin.cpp.

Implements mapviz::MapvizPlugin.

Definition at line 318 of file tile_map_plugin.cpp.


Member Data Documentation

std::string tile_map::TileMapPlugin::BASE_URL_KEY = "base_url" [static, private]

Definition at line 110 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::BING_API_KEY = "bing_api_key" [static, private]

Definition at line 111 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::BING_NAME = "Bing Maps (terrain)" [static, private]

Definition at line 117 of file tile_map_plugin.h.

Definition at line 94 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::CUSTOM_SOURCES_KEY = "custom_sources" [static, private]

Definition at line 112 of file tile_map_plugin.h.

Definition at line 97 of file tile_map_plugin.h.

Definition at line 104 of file tile_map_plugin.h.

Definition at line 105 of file tile_map_plugin.h.

Definition at line 107 of file tile_map_plugin.h.

Definition at line 106 of file tile_map_plugin.h.

Definition at line 108 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::MAX_ZOOM_KEY = "max_zoom" [static, private]

Definition at line 113 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::NAME_KEY = "name" [static, private]

Definition at line 114 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::SOURCE_KEY = "source" [static, private]

Definition at line 115 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::STAMEN_TERRAIN_NAME = "Stamen (terrain)" [static, private]

Definition at line 118 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::STAMEN_TONER_NAME = "Stamen (toner)" [static, private]

Definition at line 119 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::STAMEN_WATERCOLOR_NAME = "Stamen (watercolor)" [static, private]

Definition at line 120 of file tile_map_plugin.h.

Definition at line 101 of file tile_map_plugin.h.

std::map<QString, boost::shared_ptr<TileSource> > tile_map::TileMapPlugin::tile_sources_ [private]

Definition at line 102 of file tile_map_plugin.h.

Definition at line 96 of file tile_map_plugin.h.

Definition at line 99 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::TYPE_KEY = "type" [static, private]

Definition at line 116 of file tile_map_plugin.h.

Ui::tile_map_config tile_map::TileMapPlugin::ui_ [private]

Definition at line 93 of file tile_map_plugin.h.


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


tile_map
Author(s): Marc Alban
autogenerated on Thu Aug 24 2017 02:46:24