$search

MainWindow Class Reference

#include <main_window.h>

List of all members.

Public Slots

void cancel ()
 Cancel carving.
void disableDremel ()
void disableVacuum ()
void enableDremel ()
void enableVacuum ()
void keyPress (unsigned int key)
void mouseMove (int x, int y, uint8_t buttons)
void mousePress (int x, int y, uint8_t buttons)
void mouseRelease (int x, int y, uint8_t buttons)
void mouseWheel (int x, int y, uint8_t buttons, int delta)
bool send ()
 Send segments for carving.

Public Member Functions

void addCountoursToImage (std::vector< std::vector< vlr::TagLine > > &contours)
void eraseObject (dremel::DrawObject *object)
std::pair< dremel::DrawObject
*, float > 
getClosestObject (float x, float y)
float glyphToLines (wchar_t ch, int size, float outline_width, std::vector< std::vector< vlr::TagLine > > &all_lines, float initial_font_advance)
 convert font glyphs to tag lines
void linesToGcode (std::vector< std::vector< vlr::TagLine > > &lines)
 convert tag lines to gcode
 MainWindow ()
 Constructors.
void moveDrawObject (dremel::DrawObject *object, int dx, int dy)
void scaleDrawObject (dremel::DrawObject *object, float scale)
void sendLineMarker (std::vector< std::vector< vlr::TagLine > > &lines, std::string frame_id, double r, double g, double b)
void updateImage ()
 ~MainWindow ()
 Destructor.

Private Member Functions

void feedbackCb (const pr2_dremel_server::CarveSegmentsFeedbackConstPtr &feedback)

Private Attributes

actionlib::SimpleActionClient
< pr2_dremel_server::CarveSegmentsAction
action_client_
float current_carving_progress_
int current_marker_id_
dremel::DrawObjectcurrent_object_
vlr::TagPointcurrent_pt_
vlr::DisplayGLdisplay_widget_
 widgets
std::vector< dremel::DrawObjectdraw_objects_
FT_Face face_
uint8_t * font_buffer_
std::string fontfile_name_
int32_t height_
vlr::Image< uint8_t > * img_
int last_move_x_
int last_move_y_
int last_right_x_
int last_right_y_
FT_Library library_
std::vector< std::vector
< vlr::TagLine > > 
lines_
visualization_msgs::Marker lines_marker_
ros::Rate loop_rate_
MenuWidgetmenu_widget_
 Menu Widget.
ros::NodeHandle nh_
 ros stuff
sensor_msgs::Image plate_img_
ros::Subscriber plate_img_sub_
QToolBox * right_toolbox_
 Toolbox widget.
double table_height_
tf::TransformListener tf_listener_
ros::Publisher viz_marker_pub_
int32_t width_

Static Private Attributes

static const int32_t catch_dist_ = 15

Detailed Description

Definition at line 71 of file main_window.h.


Constructor & Destructor Documentation

MainWindow::MainWindow (  ) 

Constructors.

Definition at line 63 of file main_window.cpp.

MainWindow::~MainWindow (  ) 

Destructor.

Definition at line 153 of file main_window.cpp.


Member Function Documentation

void MainWindow::addCountoursToImage ( std::vector< std::vector< vlr::TagLine > > &  contours  ) 
void MainWindow::cancel (  )  [slot]

Cancel carving.

Definition at line 182 of file main_window.cpp.

void MainWindow::disableDremel (  )  [slot]

Definition at line 660 of file main_window.cpp.

void MainWindow::disableVacuum (  )  [slot]

Definition at line 684 of file main_window.cpp.

void MainWindow::enableDremel (  )  [slot]

Definition at line 648 of file main_window.cpp.

void MainWindow::enableVacuum (  )  [slot]

Definition at line 672 of file main_window.cpp.

void MainWindow::eraseObject ( dremel::DrawObject object  ) 

Definition at line 383 of file main_window.cpp.

void MainWindow::feedbackCb ( const pr2_dremel_server::CarveSegmentsFeedbackConstPtr feedback  )  [inline, private]

Definition at line 153 of file main_window.h.

std::pair< dremel::DrawObject *, float > MainWindow::getClosestObject ( float  x,
float  y 
)

Definition at line 342 of file main_window.cpp.

float MainWindow::glyphToLines ( wchar_t  ch,
int  size,
float  outline_width,
std::vector< std::vector< vlr::TagLine > > &  all_lines,
float  initial_font_advance 
)

convert font glyphs to tag lines

Definition at line 187 of file main_window.cpp.

void MainWindow::keyPress ( unsigned int  key  )  [slot]

Definition at line 529 of file main_window.cpp.

void MainWindow::linesToGcode ( std::vector< std::vector< vlr::TagLine > > &  lines  ) 

convert tag lines to gcode

void MainWindow::mouseMove ( int  x,
int  y,
uint8_t  buttons 
) [slot]

Definition at line 400 of file main_window.cpp.

void MainWindow::mousePress ( int  x,
int  y,
uint8_t  buttons 
) [slot]

Definition at line 425 of file main_window.cpp.

void MainWindow::mouseRelease ( int  x,
int  y,
uint8_t  buttons 
) [slot]

Definition at line 491 of file main_window.cpp.

void MainWindow::mouseWheel ( int  x,
int  y,
uint8_t  buttons,
int  delta 
) [slot]

Definition at line 602 of file main_window.cpp.

void MainWindow::moveDrawObject ( dremel::DrawObject object,
int  dx,
int  dy 
)

Definition at line 371 of file main_window.cpp.

void MainWindow::scaleDrawObject ( dremel::DrawObject object,
float  scale 
)

Definition at line 377 of file main_window.cpp.

bool MainWindow::send (  )  [slot]

Send segments for carving.

Definition at line 157 of file main_window.cpp.

void MainWindow::sendLineMarker ( std::vector< std::vector< vlr::TagLine > > &  lines,
std::string  frame_id,
double  r,
double  g,
double  b 
)

Definition at line 260 of file main_window.cpp.

void MainWindow::updateImage (  ) 

Definition at line 623 of file main_window.cpp.


Member Data Documentation

Definition at line 146 of file main_window.h.

const int32_t MainWindow::catch_dist_ = 15 [static, private]

Definition at line 134 of file main_window.h.

Definition at line 131 of file main_window.h.

Definition at line 151 of file main_window.h.

Definition at line 128 of file main_window.h.

Definition at line 133 of file main_window.h.

widgets

Definition at line 121 of file main_window.h.

Definition at line 127 of file main_window.h.

FT_Face MainWindow::face_ [private]

Definition at line 142 of file main_window.h.

uint8_t* MainWindow::font_buffer_ [private]

Definition at line 144 of file main_window.h.

std::string MainWindow::fontfile_name_ [private]

Definition at line 143 of file main_window.h.

int32_t MainWindow::height_ [private]

Definition at line 111 of file main_window.h.

vlr::Image<uint8_t>* MainWindow::img_ [private]

Definition at line 132 of file main_window.h.

int MainWindow::last_move_x_ [private]

Definition at line 136 of file main_window.h.

int MainWindow::last_move_y_ [private]

Definition at line 136 of file main_window.h.

Definition at line 138 of file main_window.h.

Definition at line 138 of file main_window.h.

FT_Library MainWindow::library_ [private]

Definition at line 141 of file main_window.h.

std::vector<std::vector<vlr::TagLine> > MainWindow::lines_ [private]

Definition at line 135 of file main_window.h.

Definition at line 149 of file main_window.h.

Definition at line 116 of file main_window.h.

Menu Widget.

Definition at line 125 of file main_window.h.

ros stuff

Definition at line 114 of file main_window.h.

Definition at line 118 of file main_window.h.

Definition at line 117 of file main_window.h.

QToolBox* MainWindow::right_toolbox_ [private]

Toolbox widget.

Definition at line 123 of file main_window.h.

double MainWindow::table_height_ [private]

Definition at line 137 of file main_window.h.

Definition at line 115 of file main_window.h.

Definition at line 150 of file main_window.h.

int32_t MainWindow::width_ [private]

Definition at line 111 of file main_window.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


pr2_dremel_gui
Author(s): Soeren Kammel, Benjamin Pitzer (maintained by Benjamin Pitzer)
autogenerated on Sun Mar 3 12:12:54 2013