-
Notifications
You must be signed in to change notification settings - Fork 1
/
MyQLine.h
38 lines (35 loc) · 699 Bytes
/
MyQLine.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 MYQLINE_H
#define MYQLINE_H
#define ARROW_ANGLE 0.5
#define ARROW_SIZE 10
#define Pi 3.14159265358979323846264338327950288419717
#define TwoPi 2.0 * Pi
#include <qline.h>
#include <qcolor.h>
class MyQline :public QLine{
public:
MyQline();
MyQline(QLine Qline);
~MyQline(){}
QColor getColor();
void setColor(QColor color);
void setDotStyle(bool use);
bool getDotStyle();
void setArrowStyle(bool use);
bool getArrowStyle();
float length();
int L();
void setL(int l);
bool showL();
void setShowL(bool showL);
public:
QColor color_;
//是否使用虚线风格
bool use_dot_style_;
//是否带箭头
bool have_arrow_;
//是否显示数值L
bool show_l_;
int L_;
};
#endif