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

#include <point_drawing_plugin.h>

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

Classes

struct  StampedPoint
 

Public Types

enum  DrawStyle { LINES = 0, POINTS, ARROWS }
 

Public Member Functions

void ClearHistory ()
 
virtual void CollectLaps ()
 
virtual bool DrawArrow (const StampedPoint &point)
 
virtual bool DrawArrows ()
 
virtual bool DrawLaps ()
 
virtual bool DrawLapsArrows ()
 
virtual bool DrawLines ()
 
virtual bool DrawPoints (double scale)
 
 PointDrawingPlugin ()
 
virtual void Transform ()
 
virtual bool TransformPoint (StampedPoint &point)
 
virtual void UpdateColor (QColor base_color, int i)
 
virtual ~PointDrawingPlugin ()
 
- Public Member Functions inherited from mapviz::MapvizPlugin
virtual void Draw (double x, double y, double scale)=0
 
int DrawOrder () const
 
void DrawPlugin (double x, double y, double scale)
 
virtual QWidget * GetConfigWidget (QWidget *parent)
 
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)
 
virtual void LoadConfig (const YAML::Node &load, const std::string &path)=0
 
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
 
virtual void SaveConfig (YAML::Emitter &emitter, const std::string &path)=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)
 
virtual void Shutdown ()=0
 
std::string Type () const
 
bool Visible () const
 
virtual ~MapvizPlugin ()
 

Protected Slots

virtual void BufferSizeChanged (int value)
 
virtual void DrawIcon ()
 
virtual void PositionToleranceChanged (double value)
 
virtual void SetArrowSize (int arrowSize)
 
virtual void SetColor (const QColor &color)
 
virtual void SetDrawStyle (QString style)
 
virtual void SetStaticArrowSizes (bool isChecked)
 

Protected Attributes

int arrow_size_
 
int buffer_holder_
 
int buffer_size_
 
QColor color_
 
bool covariance_checked_
 
StampedPoint cur_point_
 
DrawStyle draw_style_
 
bool lap_checked_
 
bool new_lap_
 
std::list< StampedPointpoints_
 
double position_tolerance_
 
double scale_
 
bool static_arrow_sizes_
 
- 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_
 

Private Attributes

tf::Point begin_
 
bool got_begin_
 
std::vector< std::list< StampedPoint > > laps_
 

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
virtual bool Initialize (QGLWidget *canvas)=0
 
 MapvizPlugin ()
 

Detailed Description

Definition at line 51 of file point_drawing_plugin.h.

Member Enumeration Documentation

Enumerator
LINES 
POINTS 
ARROWS 

Definition at line 72 of file point_drawing_plugin.h.

Constructor & Destructor Documentation

mapviz_plugins::PointDrawingPlugin::PointDrawingPlugin ( )

Definition at line 47 of file point_drawing_plugin.cpp.

virtual mapviz_plugins::PointDrawingPlugin::~PointDrawingPlugin ( )
inlinevirtual

Definition at line 80 of file point_drawing_plugin.h.

Member Function Documentation

void mapviz_plugins::PointDrawingPlugin::BufferSizeChanged ( int  value)
protectedvirtualslot

Definition at line 140 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::ClearHistory ( )
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 62 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::CollectLaps ( )
virtual

Definition at line 188 of file point_drawing_plugin.cpp.

bool mapviz_plugins::PointDrawingPlugin::DrawArrow ( const StampedPoint point)
virtual

Definition at line 255 of file point_drawing_plugin.cpp.

bool mapviz_plugins::PointDrawingPlugin::DrawArrows ( )
virtual

Definition at line 279 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::DrawIcon ( )
protectedvirtualslot

Definition at line 67 of file point_drawing_plugin.cpp.

bool mapviz_plugins::PointDrawingPlugin::DrawLaps ( )
virtual

Definition at line 381 of file point_drawing_plugin.cpp.

bool mapviz_plugins::PointDrawingPlugin::DrawLapsArrows ( )
virtual

Definition at line 461 of file point_drawing_plugin.cpp.

bool mapviz_plugins::PointDrawingPlugin::DrawLines ( )
virtual

Definition at line 219 of file point_drawing_plugin.cpp.

bool mapviz_plugins::PointDrawingPlugin::DrawPoints ( double  scale)
virtual

Definition at line 153 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::PositionToleranceChanged ( double  value)
protectedvirtualslot

Definition at line 135 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::SetArrowSize ( int  arrowSize)
protectedvirtualslot

Definition at line 107 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::SetColor ( const QColor &  color)
protectedvirtualslot

Definition at line 298 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::SetDrawStyle ( QString  style)
protectedvirtualslot

Definition at line 112 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::SetStaticArrowSizes ( bool  isChecked)
protectedvirtualslot

Definition at line 130 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 352 of file point_drawing_plugin.cpp.

bool mapviz_plugins::PointDrawingPlugin::TransformPoint ( StampedPoint point)
virtual

Definition at line 307 of file point_drawing_plugin.cpp.

void mapviz_plugins::PointDrawingPlugin::UpdateColor ( QColor  base_color,
int  i 
)
virtual

Definition at line 447 of file point_drawing_plugin.cpp.

Member Data Documentation

int mapviz_plugins::PointDrawingPlugin::arrow_size_
protected

Definition at line 107 of file point_drawing_plugin.h.

tf::Point mapviz_plugins::PointDrawingPlugin::begin_
private

Definition at line 124 of file point_drawing_plugin.h.

int mapviz_plugins::PointDrawingPlugin::buffer_holder_
protected

Definition at line 117 of file point_drawing_plugin.h.

int mapviz_plugins::PointDrawingPlugin::buffer_size_
protected

Definition at line 112 of file point_drawing_plugin.h.

QColor mapviz_plugins::PointDrawingPlugin::color_
protected

Definition at line 115 of file point_drawing_plugin.h.

bool mapviz_plugins::PointDrawingPlugin::covariance_checked_
protected

Definition at line 113 of file point_drawing_plugin.h.

StampedPoint mapviz_plugins::PointDrawingPlugin::cur_point_
protected

Definition at line 109 of file point_drawing_plugin.h.

DrawStyle mapviz_plugins::PointDrawingPlugin::draw_style_
protected

Definition at line 108 of file point_drawing_plugin.h.

bool mapviz_plugins::PointDrawingPlugin::got_begin_
private

Definition at line 123 of file point_drawing_plugin.h.

bool mapviz_plugins::PointDrawingPlugin::lap_checked_
protected

Definition at line 116 of file point_drawing_plugin.h.

std::vector<std::list<StampedPoint> > mapviz_plugins::PointDrawingPlugin::laps_
private

Definition at line 122 of file point_drawing_plugin.h.

bool mapviz_plugins::PointDrawingPlugin::new_lap_
protected

Definition at line 114 of file point_drawing_plugin.h.

std::list<StampedPoint> mapviz_plugins::PointDrawingPlugin::points_
protected

Definition at line 110 of file point_drawing_plugin.h.

double mapviz_plugins::PointDrawingPlugin::position_tolerance_
protected

Definition at line 111 of file point_drawing_plugin.h.

double mapviz_plugins::PointDrawingPlugin::scale_
protected

Definition at line 118 of file point_drawing_plugin.h.

bool mapviz_plugins::PointDrawingPlugin::static_arrow_sizes_
protected

Definition at line 119 of file point_drawing_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 19:25:17