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

#include <measuring_plugin.h>

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

Public Member Functions

void DistanceCalculation ()
 
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)
 
 MeasuringPlugin ()
 
void Paint (QPainter *painter, double x, double y, double scale)
 
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 ()
 
bool SupportsPainting ()
 
void Transform ()
 
virtual ~MeasuringPlugin ()
 
- 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
 
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 BkgndColorToggled (bool)
 
void Clear ()
 

Protected Member Functions

void AlphaChanged (double)
 
bool eventFilter (QObject *object, QEvent *event)
 
void FontSizeChanged (int)
 
bool handleMouseMove (QMouseEvent *)
 
bool handleMousePress (QMouseEvent *)
 
bool handleMouseRelease (QMouseEvent *)
 
void MeasurementsToggled (bool)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

Private Attributes

QWidget * config_widget_
 
bool is_mouse_down_
 
tf::Vector3 last_position_
 
mapviz::MapCanvasmap_canvas_
 
qreal max_distance_
 
qint64 max_ms_
 
std::vector< double > measurements_
 
QPointF mouse_down_pos_
 
qint64 mouse_down_time_
 
int selected_point_
 
std::vector< tf::Vector3transformed_vertices_
 
Ui::measuring_config ui_
 
std::vector< tf::Vector3vertices_
 

Additional Inherited Members

- Public Slots inherited from mapviz::MapvizPlugin
virtual void DrawIcon ()
 
- 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 measuring_plugin.h.

Constructor & Destructor Documentation

mapviz_plugins::MeasuringPlugin::MeasuringPlugin ( )

Definition at line 57 of file measuring_plugin.cpp.

mapviz_plugins::MeasuringPlugin::~MeasuringPlugin ( )
virtual

Definition at line 88 of file measuring_plugin.cpp.

Member Function Documentation

void mapviz_plugins::MeasuringPlugin::AlphaChanged ( double  )
inlineprotected

Definition at line 89 of file measuring_plugin.h.

void mapviz_plugins::MeasuringPlugin::BkgndColorToggled ( bool  )
inlineprotectedslot

Definition at line 86 of file measuring_plugin.h.

void mapviz_plugins::MeasuringPlugin::Clear ( )
protectedslot

Definition at line 96 of file measuring_plugin.cpp.

void mapviz_plugins::MeasuringPlugin::DistanceCalculation ( )

Definition at line 252 of file measuring_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 315 of file measuring_plugin.cpp.

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

Definition at line 122 of file measuring_plugin.cpp.

void mapviz_plugins::MeasuringPlugin::FontSizeChanged ( int  )
inlineprotected

Definition at line 88 of file measuring_plugin.h.

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 104 of file measuring_plugin.cpp.

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

Definition at line 295 of file measuring_plugin.cpp.

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

Definition at line 143 of file measuring_plugin.cpp.

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

Definition at line 200 of file measuring_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 111 of file measuring_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 430 of file measuring_plugin.cpp.

void mapviz_plugins::MeasuringPlugin::MeasurementsToggled ( bool  )
inlineprotected

Definition at line 87 of file measuring_plugin.h.

void mapviz_plugins::MeasuringPlugin::Paint ( QPainter *  painter,
double  x,
double  y,
double  scale 
)
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 348 of file measuring_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 489 of file measuring_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 494 of file measuring_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 499 of file measuring_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 479 of file measuring_plugin.cpp.

void mapviz_plugins::MeasuringPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 56 of file measuring_plugin.h.

bool mapviz_plugins::MeasuringPlugin::SupportsPainting ( )
inlinevirtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 73 of file measuring_plugin.h.

void mapviz_plugins::MeasuringPlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 60 of file measuring_plugin.h.

Member Data Documentation

QWidget* mapviz_plugins::MeasuringPlugin::config_widget_
private

Definition at line 93 of file measuring_plugin.h.

bool mapviz_plugins::MeasuringPlugin::is_mouse_down_
private

Definition at line 102 of file measuring_plugin.h.

tf::Vector3 mapviz_plugins::MeasuringPlugin::last_position_
private

Definition at line 96 of file measuring_plugin.h.

mapviz::MapCanvas* mapviz_plugins::MeasuringPlugin::map_canvas_
private

Definition at line 95 of file measuring_plugin.h.

qreal mapviz_plugins::MeasuringPlugin::max_distance_
private

Definition at line 107 of file measuring_plugin.h.

qint64 mapviz_plugins::MeasuringPlugin::max_ms_
private

Definition at line 106 of file measuring_plugin.h.

std::vector<double> mapviz_plugins::MeasuringPlugin::measurements_
private

Definition at line 108 of file measuring_plugin.h.

QPointF mapviz_plugins::MeasuringPlugin::mouse_down_pos_
private

Definition at line 103 of file measuring_plugin.h.

qint64 mapviz_plugins::MeasuringPlugin::mouse_down_time_
private

Definition at line 104 of file measuring_plugin.h.

int mapviz_plugins::MeasuringPlugin::selected_point_
private

Definition at line 101 of file measuring_plugin.h.

std::vector<tf::Vector3> mapviz_plugins::MeasuringPlugin::transformed_vertices_
private

Definition at line 99 of file measuring_plugin.h.

Ui::measuring_config mapviz_plugins::MeasuringPlugin::ui_
private

Definition at line 89 of file measuring_plugin.h.

std::vector<tf::Vector3> mapviz_plugins::MeasuringPlugin::vertices_
private

Definition at line 98 of file measuring_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