-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlogcontainer.h
More file actions
33 lines (26 loc) · 1.02 KB
/
logcontainer.h
File metadata and controls
33 lines (26 loc) · 1.02 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
#ifndef LOGCONTAINER_H
#define LOGCONTAINER_H
#include "tinyxml/tinyxml.h"
#include "globalstep.h"
#include "localstep.h"
#include "iStep.h"
#include <QList>
#include <QPair>
#include <QString>
#include "point.h"
class LogContainer
{
public:
LogContainer();
bool parseLog(TiXmlElement *elem, QString& error);
int numofsteps();
QVector<QGraphicsItem*> showGlobalStep(QGraphicsScene *scene, int stepnum, Colors *curcolors, int cellsize, bool showarrows, bool showpath);
QVector<QGraphicsItem*> showArrowsOfPoint(QGraphicsScene *scene, int stepnum, Colors *curcolors, int cellsize, int x, int y);
bool findPoint(int stepnum, int x, int y, Point &point);
QVector<QGraphicsItem*> showPath(QGraphicsScene *scene,int cellsize, Colors *curcolors);
QVector<QGraphicsItem*> showPathToPoint(QGraphicsScene *scene, int stepnum, Colors *curcolors, int cellsize, int x, int y);
private:
QList<GlobalStep*> steps;
QList<QPair<int,int> > path;
};
#endif // LOGCONTAINER_H