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

#include <grid_plugin.h>

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

Public Member Functions

void Draw (double x, double y, double scale)
 
QWidget * GetConfigWidget (QWidget *parent)
 
 GridPlugin ()
 
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 ~GridPlugin ()
 
- 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, 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 DrawIcon ()
 
void FrameEdited ()
 
void SelectFrame ()
 
void SetAlpha (double alpha)
 
void SetColumns (int columns)
 
void SetRows (int rows)
 
void SetSize (double size)
 
void SetX (double x)
 
void SetY (double y)
 

Protected Member Functions

void PrintError (const std::string &message)
 
void PrintInfo (const std::string &message)
 
void PrintWarning (const std::string &message)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

Private Member Functions

void RecalculateGrid ()
 
void Transform (std::list< tf::Point > &src, std::list< tf::Point > &dst)
 

Private Attributes

double alpha_
 
std::list< tf::Pointbottom_points_
 
int columns_
 
QWidget * config_widget_
 
std::list< tf::Pointleft_points_
 
std::list< tf::Pointright_points_
 
int rows_
 
double size_
 
tf::Point top_left_
 
std::list< tf::Pointtop_points_
 
swri_transform_util::Transform transform_
 
bool transformed_
 
std::list< tf::Pointtransformed_bottom_points_
 
std::list< tf::Pointtransformed_left_points_
 
std::list< tf::Pointtransformed_right_points_
 
std::list< tf::Pointtransformed_top_points_
 
Ui::grid_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::TransformManager tf_manager_
 
std::string type_
 
bool use_latest_transforms_
 
bool visible_
 

Detailed Description

Definition at line 56 of file grid_plugin.h.

Constructor & Destructor Documentation

mapviz_plugins::GridPlugin::GridPlugin ( )

Definition at line 48 of file grid_plugin.cpp.

mapviz_plugins::GridPlugin::~GridPlugin ( )
virtual

Definition at line 82 of file grid_plugin.cpp.

Member Function Documentation

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

Implements mapviz::MapvizPlugin.

Definition at line 208 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::DrawIcon ( )
protectedslot

Definition at line 91 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::FrameEdited ( )
protectedslot

Definition at line 168 of file grid_plugin.cpp.

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 192 of file grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 199 of file grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 310 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::PrintError ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 177 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::PrintInfo ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 182 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::PrintWarning ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 187 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::RecalculateGrid ( )
private

Definition at line 244 of file grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 367 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::SelectFrame ( )
protectedslot

Definition at line 158 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::SetAlpha ( double  alpha)
protectedslot

Definition at line 118 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::SetColumns ( int  columns)
protectedslot

Definition at line 151 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::SetRows ( int  rows)
protectedslot

Definition at line 144 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::SetSize ( double  size)
protectedslot

Definition at line 137 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::SetX ( double  x)
protectedslot

Definition at line 123 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::SetY ( double  y)
protectedslot

Definition at line 130 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::Shutdown ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 87 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 283 of file grid_plugin.cpp.

void mapviz_plugins::GridPlugin::Transform ( std::list< tf::Point > &  src,
std::list< tf::Point > &  dst 
)
private

Definition at line 298 of file grid_plugin.cpp.

Member Data Documentation

double mapviz_plugins::GridPlugin::alpha_
private

Definition at line 96 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::bottom_points_
private

Definition at line 107 of file grid_plugin.h.

int mapviz_plugins::GridPlugin::columns_
private

Definition at line 102 of file grid_plugin.h.

QWidget* mapviz_plugins::GridPlugin::config_widget_
private

Definition at line 94 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::left_points_
private

Definition at line 108 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::right_points_
private

Definition at line 109 of file grid_plugin.h.

int mapviz_plugins::GridPlugin::rows_
private

Definition at line 101 of file grid_plugin.h.

double mapviz_plugins::GridPlugin::size_
private

Definition at line 100 of file grid_plugin.h.

tf::Point mapviz_plugins::GridPlugin::top_left_
private

Definition at line 98 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::top_points_
private

Definition at line 106 of file grid_plugin.h.

swri_transform_util::Transform mapviz_plugins::GridPlugin::transform_
private

Definition at line 116 of file grid_plugin.h.

bool mapviz_plugins::GridPlugin::transformed_
private

Definition at line 104 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::transformed_bottom_points_
private

Definition at line 112 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::transformed_left_points_
private

Definition at line 113 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::transformed_right_points_
private

Definition at line 114 of file grid_plugin.h.

std::list<tf::Point> mapviz_plugins::GridPlugin::transformed_top_points_
private

Definition at line 111 of file grid_plugin.h.

Ui::grid_config mapviz_plugins::GridPlugin::ui_
private

Definition at line 93 of file grid_plugin.h.


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


mapviz_plugins
Author(s): Marc Alban
autogenerated on Mon Jun 10 2019 14:02:17