Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
mapviz_plugins::DisparityPlugin Class Reference

#include <disparity_plugin.h>

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

List of all members.

Public Types

enum  Anchor {
  TOP_LEFT, TOP_CENTER, TOP_RIGHT, CENTER_LEFT,
  CENTER, CENTER_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER,
  BOTTOM_RIGHT
}
enum  Units { PIXELS, PERCENT }

Public Member Functions

 DisparityPlugin ()
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 SaveConfig (YAML::Emitter &emitter, const std::string &path)
void Shutdown ()
void Transform ()
virtual ~DisparityPlugin ()

Protected Slots

void SelectTopic ()
void SetAnchor (QString anchor)
void SetHeight (int height)
void SetOffsetX (int offset)
void SetOffsetY (int offset)
void SetUnits (QString units)
void SetWidth (int width)
void TopicEdited ()

Protected Member Functions

void PrintError (const std::string &message)
void PrintInfo (const std::string &message)
void PrintWarning (const std::string &message)

Private Member Functions

std::string AnchorToString (Anchor anchor)
void disparityCallback (const stereo_msgs::DisparityImageConstPtr &image)
void DrawIplImage (cv::Mat *image)
void ScaleImage (double width, double height)
std::string UnitsToString (Units units)

Private Attributes

Anchor anchor_
QWidget * config_widget_
stereo_msgs::DisparityImage disparity_
cv::Mat_< cv::Vec3b > disparity_color_
ros::Subscriber disparity_sub_
bool has_image_
bool has_message_
double height_
double last_height_
double last_width_
double offset_x_
double offset_y_
cv::Mat scaled_image_
std::string topic_
Ui::disparity_config ui_
Units units_
double width_

Static Private Attributes

static const unsigned char COLOR_MAP []

Detailed Description

Definition at line 60 of file disparity_plugin.h.


Member Enumeration Documentation

Enumerator:
TOP_LEFT 
TOP_CENTER 
TOP_RIGHT 
CENTER_LEFT 
CENTER 
CENTER_RIGHT 
BOTTOM_LEFT 
BOTTOM_CENTER 
BOTTOM_RIGHT 

Definition at line 65 of file disparity_plugin.h.

Enumerator:
PIXELS 
PERCENT 

Definition at line 76 of file disparity_plugin.h.


Constructor & Destructor Documentation


Member Function Documentation

std::string mapviz_plugins::DisparityPlugin::AnchorToString ( Anchor  anchor) [private]
void mapviz_plugins::DisparityPlugin::disparityCallback ( const stereo_msgs::DisparityImageConstPtr &  image) [private]
void mapviz_plugins::DisparityPlugin::Draw ( double  x,
double  y,
double  scale 
) [virtual]

Implements mapviz::MapvizPlugin.

void mapviz_plugins::DisparityPlugin::DrawIplImage ( cv::Mat *  image) [private]
QWidget* mapviz_plugins::DisparityPlugin::GetConfigWidget ( QWidget *  parent) [virtual]

Reimplemented from mapviz::MapvizPlugin.

bool mapviz_plugins::DisparityPlugin::Initialize ( QGLWidget *  canvas) [virtual]

Implements mapviz::MapvizPlugin.

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

Implements mapviz::MapvizPlugin.

void mapviz_plugins::DisparityPlugin::PrintError ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

void mapviz_plugins::DisparityPlugin::PrintInfo ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

void mapviz_plugins::DisparityPlugin::PrintWarning ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

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

Implements mapviz::MapvizPlugin.

void mapviz_plugins::DisparityPlugin::ScaleImage ( double  width,
double  height 
) [private]
void mapviz_plugins::DisparityPlugin::SetAnchor ( QString  anchor) [protected, slot]
void mapviz_plugins::DisparityPlugin::SetHeight ( int  height) [protected, slot]
void mapviz_plugins::DisparityPlugin::SetOffsetX ( int  offset) [protected, slot]
void mapviz_plugins::DisparityPlugin::SetOffsetY ( int  offset) [protected, slot]
void mapviz_plugins::DisparityPlugin::SetUnits ( QString  units) [protected, slot]
void mapviz_plugins::DisparityPlugin::SetWidth ( int  width) [protected, slot]
void mapviz_plugins::DisparityPlugin::Shutdown ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 82 of file disparity_plugin.h.

void mapviz_plugins::DisparityPlugin::Transform ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 86 of file disparity_plugin.h.

std::string mapviz_plugins::DisparityPlugin::UnitsToString ( Units  units) [private]

Member Data Documentation

Definition at line 113 of file disparity_plugin.h.

const unsigned char mapviz_plugins::DisparityPlugin::COLOR_MAP[] [static, private]

Definition at line 141 of file disparity_plugin.h.

Definition at line 110 of file disparity_plugin.h.

stereo_msgs::DisparityImage mapviz_plugins::DisparityPlugin::disparity_ [private]

Definition at line 128 of file disparity_plugin.h.

Definition at line 130 of file disparity_plugin.h.

Definition at line 125 of file disparity_plugin.h.

Definition at line 120 of file disparity_plugin.h.

Definition at line 126 of file disparity_plugin.h.

Definition at line 118 of file disparity_plugin.h.

Definition at line 123 of file disparity_plugin.h.

Definition at line 122 of file disparity_plugin.h.

Definition at line 115 of file disparity_plugin.h.

Definition at line 116 of file disparity_plugin.h.

Definition at line 131 of file disparity_plugin.h.

Definition at line 112 of file disparity_plugin.h.

Ui::disparity_config mapviz_plugins::DisparityPlugin::ui_ [private]

Definition at line 109 of file disparity_plugin.h.

Definition at line 114 of file disparity_plugin.h.

Definition at line 117 of file disparity_plugin.h.


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


mapviz_plugins
Author(s): Marc Alban
autogenerated on Thu Aug 24 2017 02:46:09