FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
trackingmanager.h
1/*
2This file is part of Fast Track.
3
4 FastTrack is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 FastTrack is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with FastTrack. If not, see <https://www.gnu.org/licenses/>.
16*/
17
18#ifndef TRACKINGMANAGER_H
19#define TRACKINGMANAGER_H
20
21#include <QDataStream>
22#include <QDebug>
23#include <QDir>
24#include <QFile>
25#include <QFileDialog>
26#include <QHeaderView>
27#include <QMap>
28#include <QStandardPaths>
29#include <QWidget>
30
31namespace Ui {
32class TrackingManager;
33}
34
35class TrackingManager : public QWidget {
36 Q_OBJECT
37
38 public:
39 explicit TrackingManager(QWidget *parent = nullptr);
41
42 private:
43 QString logPath;
44 Ui::TrackingManager *ui;
45
46 public slots:
47 void addLogEntry(QMap<QString, QString> log);
48 void appendToFile(QString path, QMap<QString, QString> line);
49 void writeToFile(QString path, QList<QMap<QString, QString>> lines);
50 void readFromFile(QString path);
51};
52
53#endif // TRACKINGMANAGER_H
The TrackingManager widget provides an environment to manage the log of FastTrack tracking analysis.
Definition: trackingmanager.h:35
void writeToFile(QString path, QList< QMap< QString, QString > > lines)
Writes log entries in a file.
Definition: trackingmanager.cpp:104
void appendToFile(QString path, QMap< QString, QString > line)
Appends the log entry in a file.
Definition: trackingmanager.cpp:91
TrackingManager(QWidget *parent=nullptr)
Constructs the trackingmanager object derived from a QWidget object.
Definition: trackingmanager.cpp:37
void addLogEntry(QMap< QString, QString > log)
Adds a log entry inside the ui table and in a log file.
Definition: trackingmanager.cpp:77
void readFromFile(QString path)
Reads a log file.
Definition: trackingmanager.cpp:118