CGR Localization
 All Classes Namespaces Files Functions Variables Macros Pages
VectorDisplay Class Reference
Inheritance diagram for VectorDisplay:
Collaboration diagram for VectorDisplay:

Classes

class  Color
 

Signals

void redraw ()
 Accept Signals to update display.
 

Public Member Functions

 VectorDisplay (QWidget *parent=0)
 
void updateLines (vector< line2f > _lines, vector< Color > _lineColors=vector< Color >())
 
void updatePoints (vector< vector2f > _points, vector< Color > _pointColors=vector< Color >())
 
void updateCircles (vector< vector2f > _circles, vector< Color > _circleColors=vector< Color >())
 
void updateDisplay (vector2d _robotLoc, double _robotAngle, double _displayWindow, vector< line2f > _lines, vector< vector2f > _points, vector< vector2f > _circles, vector< Color > _lineColors=vector< Color >(), vector< Color > _pointColors=vector< Color >(), vector< Color > _circleColors=vector< Color >())
 
void resetView ()
 
void setCallback (void(*_ptrCallback)(vector2d, vector2d, double, int))
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 Thread-safe way of scheduling display updates.
 
void wheelEvent (QWheelEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void resizeEvent (QResizeEvent *event)
 
void initializeGL ()
 
void resizeGL (int width, int height)
 
void setupViewport (int width, int height)
 
QSize sizeHint () const
 
template<class num >
void drawQuad (GVector::vector2d< num > loc1, GVector::vector2d< num > loc2, num z=0.0)
 
void drawQuad (double x1, double y1, double x2, double y2, double z=0.0)
 
template<class num >
void drawArc (GVector::vector2d< num > loc, num r1, num r2, num theta1, num theta2, num z=0.0, num dTheta=-1)
 
void drawArc (double x, double y, double r1, double r2, double theta1, double theta2, double z=0.0, double dTheta=-1)
 
void drawCircles (float lineThickness)
 
void drawLines (float lineThickness)
 
void drawPoints (float pointsSize)
 
template<class num >
void drawLine (Line2d< num > &line, num lineWidth)
 
template<class num >
void drawLine (GVector::vector2d< num > &p0, GVector::vector2d< num > &p1, num lineWidth)
 
template<class num >
void drawPoint (GVector::vector2d< num > loc, float pointSize)
 

Detailed Description

Definition at line 39 of file vector_display.h.

Member Function Documentation

void VectorDisplay::setCallback ( void(*)(vector2d, vector2d, double, int)  _ptrCallback)
inline

Set callback function to call when the display is clicked

Parameters
_ptrCallbackFunction pointer of signature void (*)(vector2d,double,int). The first parameter of the callback is the click location (in world space), the second the orientation (in radians), the third the click type

Definition at line 137 of file vector_display.h.


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