-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvgreader.h
25 lines (23 loc) · 835 Bytes
/
svgreader.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
#ifndef SVGREADER_H
#define SVGREADER_H
#include <QList>
#include <QGraphicsRectItem>
#include <QDomDocument>
#include "roomlabel.h"
class SvgReader
{
public:
SvgReader();
static QList<RoomLabel *> getElements(const QString filename, const QString objectName);
static QGraphicsPolygonItem * getPolygon(QDomNode node);
static RoomLabel * getPolygon(QDomNode node, QDomNode rect, bool f = false);
static QList <QList <RoomLabel *>> getAllObjects(const QString filename);
//static QStringList getlegend(const QString filename);
};
QStringList getlegend(const QString filename);
QRectF getSize(const QDomNode svgElement);
QStringList getId(const QString filename);
QString getName(const QDomNode element);
QString getBrush (const QDomNode element);
QString getInfo (const QDomNode element);
#endif // SVGREADER_H