Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
mapviz_plugins::CoordinatePickerPlugin Class Reference

#include <coordinate_picker_plugin.h>

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

Public Member Functions

 CoordinatePickerPlugin ()
 
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 PrintError (const std::string &message)
 
void PrintInfo (const std::string &message)
 
void PrintWarning (const std::string &message)
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
void Transform ()
 
virtual ~CoordinatePickerPlugin ()
 
- 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, swri_transform_util::TransformManagerPtr tf_manager, 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)
 
void PrintMeasurements ()
 
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 ClearCoordList ()
 
void FrameEdited ()
 
void SelectFrame ()
 
void ToggleCopyOnClick (int state)
 

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)
 
bool handleMouseMove (QMouseEvent *)
 
bool handleMousePress (QMouseEvent *)
 
bool handleMouseRelease (QMouseEvent *)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

Private Attributes

QWidget * config_widget_
 
bool copy_on_click_
 
mapviz::MapCanvasmap_canvas_
 
Ui::coordinate_picker_config ui_
 

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 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::TransformManagerPtr tf_manager_
 
std::string type_
 
bool use_latest_transforms_
 
bool visible_
 

Detailed Description

Definition at line 46 of file coordinate_picker_plugin.h.

Constructor & Destructor Documentation

mapviz_plugins::CoordinatePickerPlugin::CoordinatePickerPlugin ( )

Definition at line 60 of file coordinate_picker_plugin.cpp.

mapviz_plugins::CoordinatePickerPlugin::~CoordinatePickerPlugin ( )
virtual

Definition at line 81 of file coordinate_picker_plugin.cpp.

Member Function Documentation

void mapviz_plugins::CoordinatePickerPlugin::ClearCoordList ( )
protectedslot

Definition at line 245 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::Draw ( double  x,
double  y,
double  scale 
)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 250 of file coordinate_picker_plugin.cpp.

bool mapviz_plugins::CoordinatePickerPlugin::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 107 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::FrameEdited ( )
protectedslot

Definition at line 225 of file coordinate_picker_plugin.cpp.

QWidget * mapviz_plugins::CoordinatePickerPlugin::GetConfigWidget ( QWidget *  parent)
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 89 of file coordinate_picker_plugin.cpp.

bool mapviz_plugins::CoordinatePickerPlugin::handleMouseMove ( QMouseEvent *  event)
protected

Definition at line 209 of file coordinate_picker_plugin.cpp.

bool mapviz_plugins::CoordinatePickerPlugin::handleMousePress ( QMouseEvent *  event)
protected

Definition at line 128 of file coordinate_picker_plugin.cpp.

bool mapviz_plugins::CoordinatePickerPlugin::handleMouseRelease ( QMouseEvent *  event)
protected

Definition at line 203 of file coordinate_picker_plugin.cpp.

bool mapviz_plugins::CoordinatePickerPlugin::Initialize ( QGLWidget *  canvas)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 96 of file coordinate_picker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 254 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::PrintError ( const std::string &  message)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 287 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::PrintInfo ( const std::string &  message)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 292 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::PrintWarning ( const std::string &  message)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 297 of file coordinate_picker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 278 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::SelectFrame ( )
protectedslot

Definition at line 215 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 56 of file coordinate_picker_plugin.h.

void mapviz_plugins::CoordinatePickerPlugin::ToggleCopyOnClick ( int  state)
protectedslot

Definition at line 230 of file coordinate_picker_plugin.cpp.

void mapviz_plugins::CoordinatePickerPlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 59 of file coordinate_picker_plugin.h.

Member Data Documentation

QWidget* mapviz_plugins::CoordinatePickerPlugin::config_widget_
private

Definition at line 84 of file coordinate_picker_plugin.h.

bool mapviz_plugins::CoordinatePickerPlugin::copy_on_click_
private

Definition at line 87 of file coordinate_picker_plugin.h.

mapviz::MapCanvas* mapviz_plugins::CoordinatePickerPlugin::map_canvas_
private

Definition at line 85 of file coordinate_picker_plugin.h.

Ui::coordinate_picker_config mapviz_plugins::CoordinatePickerPlugin::ui_
private

Definition at line 83 of file coordinate_picker_plugin.h.


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


mapviz_plugins
Author(s): Marc Alban
autogenerated on Fri Mar 19 2021 02:44:32