forked from FLAME-HPC/flame_visualiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configxmlreader.h
63 lines (57 loc) · 1.54 KB
/
configxmlreader.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
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
/*!
* \file configxmlreader.h
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Header file for config XML reader
*/
#ifndef CONFIGXMLREADER_H_
#define CONFIGXMLREADER_H_
#include <QXmlStreamReader>
#include <QColor>
#include "./visualsettingsmodel.h"
#include "./graphsettingsmodel.h"
#include "./shape.h"
#include "./timescale.h"
class ConfigXMLReader : public QXmlStreamReader {
public:
ConfigXMLReader(VisualSettingsModel * vsm, GraphSettingsModel * gsm,
QString * rD, TimeScale * ts, double * r,
float * xr, float *yr, float *xm, float * ym, float * zm,
int * delay, float * oz, int * vd, QColor *vbg);
bool read(QIODevice * device);
private:
void readUnknownElement();
void readConfig();
void readResultsData();
void readTimeScale();
void readAnimation();
void readVisual();
void readRules();
void readRule();
Shape readShape();
QColor readColour();
Position readPosition();
Condition readCondition();
void readGraph();
void readPlot();
QString readLhs();
double readRhs();
QString readXaxis();
QString readYaxis();
VisualSettingsModel * vsmodel;
GraphSettingsModel * gsmodel;
QString * resultsData;
double * ratio;
TimeScale * timeScale;
float * xrotate;
float * yrotate;
float * xmove;
float * ymove;
float * zmove;
int * delayTime;
float * orthoZoom;
int * visual_dimension;
QColor * backgroundColour;
};
#endif // CONFIGXMLREADER_H_