Public Member Functions | Protected Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
tile_map::TileMapPlugin Class Reference

#include <tile_map_plugin.h>

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

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 ()
 
- Public Member Functions inherited from mapviz::MapvizPlugin
virtual void ClearHistory ()
 
int DrawOrder () const
 
void DrawPlugin (double x, double y, double scale)
 
bool GetTransform (const ros::Time &stamp, swri_transform_util::Transform &transform, bool use_latest_transforms=true)
 
bool GetTransform (const std::string &source, const ros::Time &stamp, swri_transform_util::Transform &transform)
 
virtual bool Initialize (boost::shared_ptr< tf::TransformListener > tf_listener, QGLWidget *canvas)
 
std::string Name () const
 
virtual void Paint (QPainter *painter, double x, double y, double scale)
 
void PaintPlugin (QPainter *painter, double x, double y, double scale)
 
virtual void PrintError (const std::string &message)=0
 
virtual void PrintInfo (const std::string &message)=0
 
void PrintMeasurements ()
 
virtual void PrintWarning (const std::string &message)=0
 
void SetDrawOrder (int order)
 
void SetIcon (IconWidget *icon)
 
void SetName (const std::string &name)
 
virtual void SetNode (const ros::NodeHandle &node)
 
void SetTargetFrame (std::string frame_id)
 
void SetType (const std::string &type)
 
void SetUseLatestTransforms (bool value)
 
void SetVisible (bool visible)
 
std::string Type () const
 
bool Visible () const
 
virtual ~MapvizPlugin ()
 

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"
 

Additional Inherited Members

- Public Slots inherited from mapviz::MapvizPlugin
virtual void DrawIcon ()
 
virtual bool SupportsPainting ()
 
- Signals inherited from mapviz::MapvizPlugin
void DrawOrderChanged (int draw_order)
 
void SizeChanged ()
 
void TargetFrameChanged (const std::string &target_frame)
 
void UseLatestTransformsChanged (bool use_latest_transforms)
 
void VisibleChanged (bool visible)
 
- Static Public Member Functions inherited from mapviz::MapvizPlugin
static void PrintErrorHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
static void PrintInfoHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
static void PrintWarningHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 
- Protected Attributes inherited from mapviz::MapvizPlugin
QGLWidget * canvas_
 
int draw_order_
 
IconWidgeticon_
 
bool initialized_
 
std::string name_
 
ros::NodeHandle node_
 
std::string source_frame_
 
std::string target_frame_
 
boost::shared_ptr< tf::TransformListenertf_
 
swri_transform_util::TransformManager tf_manager_
 
std::string type_
 
bool use_latest_transforms_
 
bool visible_
 

Detailed Description

Definition at line 59 of file tile_map_plugin.h.

Constructor & Destructor Documentation

tile_map::TileMapPlugin::TileMapPlugin ( )

Definition at line 66 of file tile_map_plugin.cpp.

tile_map::TileMapPlugin::~TileMapPlugin ( )
virtual

Definition at line 115 of file tile_map_plugin.cpp.

Member Function Documentation

void tile_map::TileMapPlugin::DeleteTileSource ( )
protectedslot

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)
protectedslot

Definition at line 240 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::PrintInfo ( const std::string &  message)
protectedslot

Definition at line 252 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::PrintWarning ( const std::string &  message)
protectedslot

Definition at line 264 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::ResetTileCache ( )
protectedslot

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 ( )
protectedslot

Definition at line 182 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::SelectSource ( const QString &  source_name)
protectedslot

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 ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 68 of file tile_map_plugin.h.

void tile_map::TileMapPlugin::startCustomEditing ( )
private

Definition at line 430 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::stopCustomEditing ( )
private

Definition at line 438 of file tile_map_plugin.cpp.

void tile_map::TileMapPlugin::Transform ( )
virtual

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"
staticprivate

Definition at line 111 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::BING_API_KEY = "bing_api_key"
staticprivate

Definition at line 112 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::BING_NAME = "Bing Maps (terrain)"
staticprivate

Definition at line 118 of file tile_map_plugin.h.

QWidget* tile_map::TileMapPlugin::config_widget_
private

Definition at line 95 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::CUSTOM_SOURCES_KEY = "custom_sources"
staticprivate

Definition at line 113 of file tile_map_plugin.h.

swri_transform_util::Transform tile_map::TileMapPlugin::inverse_transform_
private

Definition at line 98 of file tile_map_plugin.h.

double tile_map::TileMapPlugin::last_center_x_
private

Definition at line 105 of file tile_map_plugin.h.

double tile_map::TileMapPlugin::last_center_y_
private

Definition at line 106 of file tile_map_plugin.h.

int32_t tile_map::TileMapPlugin::last_height_
private

Definition at line 108 of file tile_map_plugin.h.

double tile_map::TileMapPlugin::last_scale_
private

Definition at line 107 of file tile_map_plugin.h.

int32_t tile_map::TileMapPlugin::last_width_
private

Definition at line 109 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::MAX_ZOOM_KEY = "max_zoom"
staticprivate

Definition at line 114 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::NAME_KEY = "name"
staticprivate

Definition at line 115 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::SOURCE_KEY = "source"
staticprivate

Definition at line 116 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::STAMEN_TERRAIN_NAME = "Stamen (terrain)"
staticprivate

Definition at line 119 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::STAMEN_TONER_NAME = "Stamen (toner)"
staticprivate

Definition at line 120 of file tile_map_plugin.h.

QString tile_map::TileMapPlugin::STAMEN_WATERCOLOR_NAME = "Stamen (watercolor)"
staticprivate

Definition at line 121 of file tile_map_plugin.h.

TileMapView tile_map::TileMapPlugin::tile_map_
private

Definition at line 102 of file tile_map_plugin.h.

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

Definition at line 103 of file tile_map_plugin.h.

swri_transform_util::Transform tile_map::TileMapPlugin::transform_
private

Definition at line 97 of file tile_map_plugin.h.

bool tile_map::TileMapPlugin::transformed_
private

Definition at line 100 of file tile_map_plugin.h.

std::string tile_map::TileMapPlugin::TYPE_KEY = "type"
staticprivate

Definition at line 117 of file tile_map_plugin.h.

Ui::tile_map_config tile_map::TileMapPlugin::ui_
private

Definition at line 94 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 Jun 6 2019 19:25:35