Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
mr_rqt::VelocityWidget Class Reference

#include <VelocityWidget.h>

List of all members.

Public Slots

void redraw ()

Signals

void redrawSignal ()

Public Member Functions

void disableMouseControl ()
void enableMouseControl ()
void resetLimits ()
void setAngular (double angular)
void setCallback (VelocityCallback callback)
void setLinear (double linear)
void setVelocity (double linear, double angular)
 VelocityWidget (QWidget *parent)
 ~VelocityWidget ()

Private Member Functions

void drawAxis (QPainter &p, int width, int height)
void drawBackground (QPainter &p, int width, int height)
void drawBorder (QPainter &p, int width, int height)
void drawCircles (QPainter &p, int width, int height)
void drawJoystick (int linearPercent, int angularPercent)
void drawPointer (QPainter &p, int x, int y, int width, int height, int size)
void keyPressEvent (QKeyEvent *e)
void limitVector (double &x, double &y, double maxRadius)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintEvent (QPaintEvent *e)
void updateThread ()

Private Attributes

volatile double _angular
volatile double _angularPercent
VelocityCallback _callback
bool _feedbackEnabled
volatile long _inputTicks
volatile double _linear
volatile double _linearPercent
volatile double _maxAngular
volatile double _maxLinear
volatile double _minAngular
volatile double _minLinear
bool _mouseDown
bool _mouseEnabled
boost::thread _updateThread
volatile double _visibleAngular
volatile double _visibleLinear
int _zeroVelocityCounter

Detailed Description

Definition at line 47 of file VelocityWidget.h.


Constructor & Destructor Documentation

mr_rqt::VelocityWidget::VelocityWidget ( QWidget *  parent) [inline]

Definition at line 52 of file VelocityWidget.h.

Definition at line 75 of file VelocityWidget.h.


Member Function Documentation

Definition at line 142 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::drawAxis ( QPainter &  p,
int  width,
int  height 
) [inline, private]

Definition at line 237 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::drawBackground ( QPainter &  p,
int  width,
int  height 
) [inline, private]

Definition at line 217 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::drawBorder ( QPainter &  p,
int  width,
int  height 
) [inline, private]

Definition at line 224 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::drawCircles ( QPainter &  p,
int  width,
int  height 
) [inline, private]

Definition at line 250 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::drawJoystick ( int  linearPercent,
int  angularPercent 
) [inline, private]

Definition at line 315 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::drawPointer ( QPainter &  p,
int  x,
int  y,
int  width,
int  height,
int  size 
) [inline, private]

Definition at line 274 of file VelocityWidget.h.

Definition at line 138 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::keyPressEvent ( QKeyEvent *  e) [inline, private]

Definition at line 374 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::limitVector ( double &  x,
double &  y,
double  maxRadius 
) [inline, private]

Definition at line 209 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::mouseMoveEvent ( QMouseEvent *  e) [inline, private]

Definition at line 345 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::mousePressEvent ( QMouseEvent *  e) [inline, private]

Definition at line 335 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::mouseReleaseEvent ( QMouseEvent *  e) [inline, private]

Definition at line 359 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::paintEvent ( QPaintEvent *  e) [inline, private]

Definition at line 330 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::redraw ( ) [inline, slot]

Definition at line 148 of file VelocityWidget.h.

Definition at line 80 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::setAngular ( double  angular) [inline]

Definition at line 104 of file VelocityWidget.h.

Definition at line 134 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::setLinear ( double  linear) [inline]

Definition at line 85 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::setVelocity ( double  linear,
double  angular 
) [inline]

Definition at line 123 of file VelocityWidget.h.

void mr_rqt::VelocityWidget::updateThread ( ) [inline, private]

Definition at line 182 of file VelocityWidget.h.


Member Data Documentation

volatile double mr_rqt::VelocityWidget::_angular [private]

Definition at line 159 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_angularPercent [private]

Definition at line 167 of file VelocityWidget.h.

Definition at line 178 of file VelocityWidget.h.

Definition at line 173 of file VelocityWidget.h.

volatile long mr_rqt::VelocityWidget::_inputTicks [private]

Definition at line 176 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_linear [private]

Definition at line 158 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_linearPercent [private]

Definition at line 166 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_maxAngular [private]

Definition at line 163 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_maxLinear [private]

Definition at line 161 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_minAngular [private]

Definition at line 164 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_minLinear [private]

Definition at line 162 of file VelocityWidget.h.

Definition at line 174 of file VelocityWidget.h.

Definition at line 172 of file VelocityWidget.h.

boost::thread mr_rqt::VelocityWidget::_updateThread [private]

Definition at line 180 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_visibleAngular [private]

Definition at line 170 of file VelocityWidget.h.

volatile double mr_rqt::VelocityWidget::_visibleLinear [private]

Definition at line 169 of file VelocityWidget.h.

Definition at line 175 of file VelocityWidget.h.


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


mr_rqt
Author(s): Igor Makhtes
autogenerated on Fri Aug 28 2015 11:35:38