Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
mapviz_plugins::DrawPolygonPlugin Class Reference

#include <draw_polygon_plugin.h>

Inheritance diagram for mapviz_plugins::DrawPolygonPlugin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void Draw (double x, double y, double scale)
 DrawPolygonPlugin ()
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 ()
void Transform ()
virtual ~DrawPolygonPlugin ()

Protected Slots

void Clear ()
void FrameEdited ()
void PublishPolygon ()
void SelectFrame ()

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)
bool handleMouseMove (QMouseEvent *)
bool handleMousePress (QMouseEvent *)
bool handleMouseRelease (QMouseEvent *)
void PrintError (const std::string &message)
void PrintInfo (const std::string &message)
void PrintWarning (const std::string &message)

Private Attributes

QWidget * config_widget_
bool is_mouse_down_
mapviz::MapCanvasmap_canvas_
qreal max_distance_
qint64 max_ms_
QPointF mouse_down_pos_
qint64 mouse_down_time_
ros::Publisher polygon_pub_
std::string polygon_topic_
int selected_point_
std::vector< tf::Vector3transformed_vertices_
Ui::draw_polygon_config ui_
std::vector< tf::Vector3vertices_

Detailed Description

Definition at line 59 of file draw_polygon_plugin.h.


Constructor & Destructor Documentation

Definition at line 60 of file draw_polygon_plugin.cpp.

Definition at line 90 of file draw_polygon_plugin.cpp.


Member Function Documentation

void mapviz_plugins::DrawPolygonPlugin::Clear ( ) [protected, slot]

Definition at line 143 of file draw_polygon_plugin.cpp.

void mapviz_plugins::DrawPolygonPlugin::Draw ( double  x,
double  y,
double  scale 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 348 of file draw_polygon_plugin.cpp.

bool mapviz_plugins::DrawPolygonPlugin::eventFilter ( QObject *  object,
QEvent *  event 
) [protected]

Definition at line 180 of file draw_polygon_plugin.cpp.

Definition at line 108 of file draw_polygon_plugin.cpp.

QWidget * mapviz_plugins::DrawPolygonPlugin::GetConfigWidget ( QWidget *  parent) [virtual]

Reimplemented from mapviz::MapvizPlugin.

Definition at line 164 of file draw_polygon_plugin.cpp.

bool mapviz_plugins::DrawPolygonPlugin::handleMouseMove ( QMouseEvent *  event) [protected]

Definition at line 323 of file draw_polygon_plugin.cpp.

bool mapviz_plugins::DrawPolygonPlugin::handleMousePress ( QMouseEvent *  event) [protected]

Definition at line 195 of file draw_polygon_plugin.cpp.

bool mapviz_plugins::DrawPolygonPlugin::handleMouseRelease ( QMouseEvent *  event) [protected]

Definition at line 259 of file draw_polygon_plugin.cpp.

bool mapviz_plugins::DrawPolygonPlugin::Initialize ( QGLWidget *  canvas) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 171 of file draw_polygon_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 402 of file draw_polygon_plugin.cpp.

void mapviz_plugins::DrawPolygonPlugin::PrintError ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 149 of file draw_polygon_plugin.cpp.

void mapviz_plugins::DrawPolygonPlugin::PrintInfo ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 154 of file draw_polygon_plugin.cpp.

void mapviz_plugins::DrawPolygonPlugin::PrintWarning ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 159 of file draw_polygon_plugin.cpp.

Definition at line 118 of file draw_polygon_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 424 of file draw_polygon_plugin.cpp.

Definition at line 98 of file draw_polygon_plugin.cpp.

void mapviz_plugins::DrawPolygonPlugin::Shutdown ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 69 of file draw_polygon_plugin.h.

Implements mapviz::MapvizPlugin.

Definition at line 75 of file draw_polygon_plugin.h.


Member Data Documentation

Definition at line 99 of file draw_polygon_plugin.h.

Definition at line 109 of file draw_polygon_plugin.h.

Definition at line 100 of file draw_polygon_plugin.h.

Definition at line 114 of file draw_polygon_plugin.h.

Definition at line 113 of file draw_polygon_plugin.h.

Definition at line 110 of file draw_polygon_plugin.h.

Definition at line 111 of file draw_polygon_plugin.h.

Definition at line 103 of file draw_polygon_plugin.h.

Definition at line 102 of file draw_polygon_plugin.h.

Definition at line 108 of file draw_polygon_plugin.h.

Definition at line 106 of file draw_polygon_plugin.h.

Ui::draw_polygon_config mapviz_plugins::DrawPolygonPlugin::ui_ [private]

Definition at line 98 of file draw_polygon_plugin.h.

Definition at line 105 of file draw_polygon_plugin.h.


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


mapviz_plugins
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 18:51:07