Vessel-Tree 2D Visualisation
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
myXmlStreamReader.h
1
#ifndef MYXMLSTREAMREADER_H
2
#define MYXMLSTREAMREADER_H
3
4
#include <QTreeView>
5
#include <QTreeWidget>
6
#include <map>
7
#include <QtXml/QXmlStreamReader>
8
12
class
DataStructure
{
13
14
public
:
15
// protected:
16
17
struct
Header
{
18
int
nx;
int
ny;
int
nz;
19
float
px;
float
py;
float
pz;
20
} header;
21
22
struct
Point
{
23
float
x;
float
y;
float
z;
24
float
r1;
float
r2;
float
offset;
25
};
26
27
struct
Segment
{
28
QString type;
29
int
BeginCPID;
30
int
EndCPID;
31
int
VesselType;
32
int
VesselState;
33
QString Description;
34
int
pointsCount;
35
QList <Point> *pList;
36
};
37
38
struct
controlPoint
{
39
int
ID;
40
float
x;
float
y;
float
z;
41
float
r1;
float
r2;
float
offset;
42
43
};
44
48
QList<Segment> *
segmentList
;
49
53
std::map<int, controlPoint> *
cpMap
;
54
};
55
56
57
class
MyXmlStreamReader
:
public
DataStructure
{
58
59
public
:
60
//MyXmlStreamReader();
61
67
bool
readFile
(QString &fileName);
68
73
void
readHeaderElement
(QXmlStreamReader& xml);
74
79
void
readCpElement
(QXmlStreamReader& xml);
//
80
85
void
readSegmentElement
(QXmlStreamReader& xml);
//
86
92
void
readPointsElement
(QXmlStreamReader& xml,
Segment
&seg);
//
93
99
void
readPointElement
(QXmlStreamReader& xml,
Segment
&seg);
//
100
101
QXmlStreamReader xml;
102
103
};
104
105
#endif // MYXMLSTREAMREADER_H
myXmlStreamReader.h
Generated on Tue Jun 11 2013 23:33:39 for Vessel-Tree 2D Visualisation by
1.8.4