-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene.h
36 lines (34 loc) · 1.04 KB
/
scene.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
#ifndef SCENE_H
#define SCENE_H
#include <QGraphicsScene>
#include <QKeyEvent>
#include <QDebug>
#include "chart.h"
#include "internalpulsechart.h"
class Scene : public QGraphicsScene
{
public:
Scene(QGraphicsScene *parent = 0);
// ~Scene();
//脉间charts
Chart *chart1_;
Chart *chart2_;
Chart *chart3_;
Chart *chart4_;
Chart *chart5_;
//脉内charts
InternalPulseChart *interChart1_;
InternalPulseChart *interChart2_;
InternalPulseChart *interChart3_;
InternalPulseChart *interChart4_;
protected:
void keyPressEvent(QKeyEvent *event);
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
void wheelEvent(QGraphicsSceneWheelEvent *event);
private:
void setAllChartProperties();//设置脉间,脉内chart属性
void setAllChartsMargins();//给所有chart(脉间,脉内)设置边距,增大显示面积
};
#endif // SCENE_H