-
Notifications
You must be signed in to change notification settings - Fork 7
/
output.h
executable file
·82 lines (63 loc) · 2.23 KB
/
output.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//--begin_license--
//
//Copyright 2013 Søren Vissing Jørgensen.
// 2014 Søren Vissing Jørgensen, Center for Bio-Robotics, SDU, MMMI.
//
//This file is part of RANA.
//
//RANA is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//RANA is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with RANA. If not, see <http://www.gnu.org/licenses/>.
//
//--end_license--
#ifndef OUTPUT_H
#define OUTPUT_H
#include <QtGui>
#include <atomic>
#include "mainwindow.h"
class MainWindow;
class Output
{
public:
static Output* Inst();
void kprintf(const char* msg, ...);
void kdebug(const char* msg, ...);
void updateStatus(unsigned long long internalEvents, unsigned long long externalEvents);
void progressBar(unsigned long long current, unsigned long long maximum);
void updatePosition(int id, double x, double y);
void setMainWindow(MainWindow *mainwindow);
static std::atomic<int> DelayValue;
static std::atomic<bool> RunSimulation;
static std::atomic<bool> KillSimulation;
static std::atomic<bool> RunEventProcessing;
static std::atomic<bool> SimRunning;
static std::atomic<bool> LegacyMode;
//Post processing things:
void ppprintf(const char* msg, ...);
void ppprogressbar(int current, int maximum);
void setEventSceneRect(int x, int y);
static unsigned long long RUNTIME;
static std::string AgentPath;
static std::string AgentFile;
static std::string RanaDir;
void updateZvalue(QString string);
void removeGraphicAgent(int Id);
void addGraphicAgent(int Id, double posX, double posY, rgba color, double angle);
//void changeGraphicAgentColor(int id, int r, int g, int b, int alpha);
void enableRunBotton(bool enabled);
private:
Output();
static Output* output;
static MainWindow* mainWindow;
static std::mutex autonMutex;
};
#endif // OUTPUT_H