Classes | Public Types | Public Member Functions | Protected Slots | Protected Member Functions | 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 void DrawCovariance ()
 
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, swri_transform_util::TransformManagerPtr tf_manager, 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)
 
void ClearPoints ()
 
virtual void CovariancedToggled (bool checked)
 
virtual void DrawIcon ()
 
virtual void LapToggled (bool checked)
 
virtual void PositionToleranceChanged (double value)
 
void ResetTransformedPoints ()
 
virtual void SetArrowSize (int arrowSize)
 
virtual void SetColor (const QColor &color)
 
virtual void SetDrawStyle (QString style)
 
virtual void SetDrawStyle (DrawStyle style)
 
virtual void SetStaticArrowSizes (bool isChecked)
 
virtual void ShowAllCovariancesToggled (bool checked)
 

Protected Member Functions

double bufferSize () const
 
const std::deque< StampedPoint > & points () const
 
double positionTolerance () const
 
void pushPoint (StampedPoint point)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
virtual bool Initialize (QGLWidget *canvas)=0
 
 MapvizPlugin ()
 

Private Attributes

int arrow_size_
 
tf::Point begin_
 
int buffer_holder_
 
int buffer_size_
 
QColor color_
 
bool covariance_checked_
 
StampedPoint cur_point_
 
DrawStyle draw_style_
 
bool got_begin_
 
bool lap_checked_
 
std::vector< std::deque< StampedPoint > > laps_
 
bool new_lap_
 
std::deque< StampedPointpoints_
 
double position_tolerance_
 
double scale_
 
bool show_all_covariances_checked_
 
bool static_arrow_sizes_
 

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 51 of file point_drawing_plugin.h.

Member Enumeration Documentation

◆ DrawStyle

Enumerator
LINES 
POINTS 
ARROWS 

Definition at line 74 of file point_drawing_plugin.h.

Constructor & Destructor Documentation

◆ PointDrawingPlugin()

mapviz_plugins::PointDrawingPlugin::PointDrawingPlugin ( )

Definition at line 47 of file point_drawing_plugin.cpp.

◆ ~PointDrawingPlugin()

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

Definition at line 82 of file point_drawing_plugin.h.

Member Function Documentation

◆ bufferSize()

double mapviz_plugins::PointDrawingPlugin::bufferSize ( ) const
protected

Definition at line 210 of file point_drawing_plugin.cpp.

◆ BufferSizeChanged

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

Definition at line 232 of file point_drawing_plugin.cpp.

◆ ClearHistory()

void mapviz_plugins::PointDrawingPlugin::ClearHistory ( )
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 67 of file point_drawing_plugin.cpp.

◆ ClearPoints

void mapviz_plugins::PointDrawingPlugin::ClearPoints ( )
protectedslot

Definition at line 205 of file point_drawing_plugin.cpp.

◆ CollectLaps()

void mapviz_plugins::PointDrawingPlugin::CollectLaps ( )
virtual

Definition at line 284 of file point_drawing_plugin.cpp.

◆ CovariancedToggled

void mapviz_plugins::PointDrawingPlugin::CovariancedToggled ( bool  checked)
protectedvirtualslot

Definition at line 159 of file point_drawing_plugin.cpp.

◆ DrawArrow()

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

Definition at line 350 of file point_drawing_plugin.cpp.

◆ DrawArrows()

bool mapviz_plugins::PointDrawingPlugin::DrawArrows ( )
virtual

Definition at line 374 of file point_drawing_plugin.cpp.

◆ DrawCovariance()

void mapviz_plugins::PointDrawingPlugin::DrawCovariance ( )
virtual

Definition at line 565 of file point_drawing_plugin.cpp.

◆ DrawIcon

void mapviz_plugins::PointDrawingPlugin::DrawIcon ( )
protectedvirtualslot

Definition at line 73 of file point_drawing_plugin.cpp.

◆ DrawLaps()

bool mapviz_plugins::PointDrawingPlugin::DrawLaps ( )
virtual

Definition at line 489 of file point_drawing_plugin.cpp.

◆ DrawLapsArrows()

bool mapviz_plugins::PointDrawingPlugin::DrawLapsArrows ( )
virtual

Definition at line 610 of file point_drawing_plugin.cpp.

◆ DrawLines()

bool mapviz_plugins::PointDrawingPlugin::DrawLines ( )
virtual

Definition at line 315 of file point_drawing_plugin.cpp.

◆ DrawPoints()

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

Definition at line 245 of file point_drawing_plugin.cpp.

◆ LapToggled

void mapviz_plugins::PointDrawingPlugin::LapToggled ( bool  checked)
protectedvirtualslot

Definition at line 154 of file point_drawing_plugin.cpp.

◆ points()

const std::deque< PointDrawingPlugin::StampedPoint > & mapviz_plugins::PointDrawingPlugin::points ( ) const
protected

Definition at line 227 of file point_drawing_plugin.cpp.

◆ positionTolerance()

double mapviz_plugins::PointDrawingPlugin::positionTolerance ( ) const
protected

Definition at line 222 of file point_drawing_plugin.cpp.

◆ PositionToleranceChanged

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

Definition at line 149 of file point_drawing_plugin.cpp.

◆ pushPoint()

void mapviz_plugins::PointDrawingPlugin::pushPoint ( PointDrawingPlugin::StampedPoint  stamped_point)
protected

Definition at line 185 of file point_drawing_plugin.cpp.

◆ ResetTransformedPoints

void mapviz_plugins::PointDrawingPlugin::ResetTransformedPoints ( )
protectedslot

Definition at line 169 of file point_drawing_plugin.cpp.

◆ SetArrowSize

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

Definition at line 113 of file point_drawing_plugin.cpp.

◆ SetColor

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

Definition at line 392 of file point_drawing_plugin.cpp.

◆ SetDrawStyle [1/2]

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

Definition at line 119 of file point_drawing_plugin.cpp.

◆ SetDrawStyle [2/2]

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

Definition at line 137 of file point_drawing_plugin.cpp.

◆ SetStaticArrowSizes

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

Definition at line 143 of file point_drawing_plugin.cpp.

◆ ShowAllCovariancesToggled

void mapviz_plugins::PointDrawingPlugin::ShowAllCovariancesToggled ( bool  checked)
protectedvirtualslot

Definition at line 164 of file point_drawing_plugin.cpp.

◆ Transform()

void mapviz_plugins::PointDrawingPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 462 of file point_drawing_plugin.cpp.

◆ TransformPoint()

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

Definition at line 401 of file point_drawing_plugin.cpp.

◆ UpdateColor()

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

Definition at line 551 of file point_drawing_plugin.cpp.

Member Data Documentation

◆ arrow_size_

int mapviz_plugins::PointDrawingPlugin::arrow_size_
private

Definition at line 122 of file point_drawing_plugin.h.

◆ begin_

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

Definition at line 140 of file point_drawing_plugin.h.

◆ buffer_holder_

int mapviz_plugins::PointDrawingPlugin::buffer_holder_
private

Definition at line 133 of file point_drawing_plugin.h.

◆ buffer_size_

int mapviz_plugins::PointDrawingPlugin::buffer_size_
private

Definition at line 127 of file point_drawing_plugin.h.

◆ color_

QColor mapviz_plugins::PointDrawingPlugin::color_
private

Definition at line 131 of file point_drawing_plugin.h.

◆ covariance_checked_

bool mapviz_plugins::PointDrawingPlugin::covariance_checked_
private

Definition at line 128 of file point_drawing_plugin.h.

◆ cur_point_

StampedPoint mapviz_plugins::PointDrawingPlugin::cur_point_
private

Definition at line 124 of file point_drawing_plugin.h.

◆ draw_style_

DrawStyle mapviz_plugins::PointDrawingPlugin::draw_style_
private

Definition at line 123 of file point_drawing_plugin.h.

◆ got_begin_

bool mapviz_plugins::PointDrawingPlugin::got_begin_
private

Definition at line 139 of file point_drawing_plugin.h.

◆ lap_checked_

bool mapviz_plugins::PointDrawingPlugin::lap_checked_
private

Definition at line 132 of file point_drawing_plugin.h.

◆ laps_

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

Definition at line 138 of file point_drawing_plugin.h.

◆ new_lap_

bool mapviz_plugins::PointDrawingPlugin::new_lap_
private

Definition at line 130 of file point_drawing_plugin.h.

◆ points_

std::deque<StampedPoint> mapviz_plugins::PointDrawingPlugin::points_
private

Definition at line 125 of file point_drawing_plugin.h.

◆ position_tolerance_

double mapviz_plugins::PointDrawingPlugin::position_tolerance_
private

Definition at line 126 of file point_drawing_plugin.h.

◆ scale_

double mapviz_plugins::PointDrawingPlugin::scale_
private

Definition at line 134 of file point_drawing_plugin.h.

◆ show_all_covariances_checked_

bool mapviz_plugins::PointDrawingPlugin::show_all_covariances_checked_
private

Definition at line 129 of file point_drawing_plugin.h.

◆ static_arrow_sizes_

bool mapviz_plugins::PointDrawingPlugin::static_arrow_sizes_
private

Definition at line 135 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 Fri Dec 16 2022 03:59:34