forked from apsystems/GrblHoming
-
Notifications
You must be signed in to change notification settings - Fork 190
/
renderarea.h
38 lines (30 loc) · 810 Bytes
/
renderarea.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef RENDERAREA_H
#define RENDERAREA_H
#include <QWidget>
#include <QPen>
#include <QPainter>
#include "positem.h"
#include "renderitemlist.h"
#include "arcitem.h"
#include "lineitem.h"
class RenderArea : public QWidget
{
Q_OBJECT
public:
explicit RenderArea(QWidget *parent = 0);
signals:
public slots:
void setItems(QList<PosItem>);
void setLivePoint(double x, double y, bool isMM, bool isLiveCP);
void setVisualLivenessCurrPos(bool isLiveCP);
void setVisCurrLine(int currLine);
protected:
void paintEvent(QPaintEvent *event);
private:
QList<PosItem> items;
RenderItemList listToRender;
QPen penProposedPath, penAxes, penCoveredPath, penCurrPosActive, penCurrPosInactive, penMeasure;
PosItem livePoint;
bool isLiveCurrPos;
};
#endif // RENDERAREA_H