ArmCircleWidget.h
Go to the documentation of this file.
00001 #ifndef ARMCIRCLEWIDGET_H
00002 #define ARMCIRCLEWIDGET_H
00003 
00004 #include <QtGui/QGraphicsView>
00005 
00006 
00007 class ArmCircleWidget : public QGraphicsView
00008  {
00009      Q_OBJECT
00010 
00011  public:
00012      ArmCircleWidget(QWidget *parent = 0);
00013 
00014  public slots:
00015       void setpos(float x, float y); // set the position of the circle in the widget. x,y is the position of the gripper, in meters.
00016       void Corobot(bool value); // value is true of a Corobot, false if is an Explorer, Explorer doesn't have an arm therefore the Widget is white
00017 
00018  protected:
00019      void drawBackground(QPainter *painter, const QRectF &rect); //draw the background of the widget
00020      void scaleView(qreal scaleFactor); //change the scale of the view.
00021 
00022  };
00023 
00024 #endif // ARMCIRCLEWIDGET_H


corobot_teleop
Author(s): Morgan Cormier/Gang Li/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:39:41