-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCoreParameter.h
More file actions
65 lines (58 loc) · 1.75 KB
/
CoreParameter.h
File metadata and controls
65 lines (58 loc) · 1.75 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef COREPARAMETER_H
#define COREPARAMETER_H
#include "Interfaces/IModel/IModel.h"
#include "qcolor.h"
/**
* This model includes the default visualization options the
* TrackedcomponentView uses to create its ComponentsShapes. Other shared
* paramters can also be added. It is a runtime shared storage.
*/
class CoreParameter : public IModel
{
Q_OBJECT
public:
CoreParameter(QObject* parent = 0);
// void setAll(
// bool viewSwitch,
// QString tracingStyle,
// int tracingHistory,
// int tracingSteps,
// QColor* colorBorder,
// QColor* colorBrush)
//{
// m_viewSwitch = viewSwitch;
// m_tracingStyle = tracingStyle;
// m_tracingHistory = tracingHistory;
// m_tracingSteps = tracingSteps;
// m_colorBorder = colorBorder;
// m_colorBrush = colorBrush;
// Q_EMIT notifyView();
//};
void setTrackNumber(int number);
public:
bool m_viewSwitch = true;
bool m_antialiasingEntities = false;
bool m_antialiasingFull = false;
// Tracing
QString m_tracingStyle = "No tracing";
int m_tracingHistory = 20;
int m_tracingSteps = 1;
QString m_tracingTimeDegradation = "None";
double m_tracerProportions = 0.5;
bool m_tracerOrientationLine = false;
bool m_tracerFrameNumber = false;
// Track dimensions
int m_trackWidth = 30;
int m_trackHeight = 20;
// Track misc
bool m_trackOrientationLine = true;
bool m_trackShowId = false;
// Track color
QColor* m_colorBorder = new QColor(Qt::black);
QColor* m_colorBrush = new QColor(Qt::green);
// Track count
int m_trackNumber = 0;
// Ignore zooming
bool m_ignoreZoom = false;
};
#endif // COREPARAMETER_H