-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow_AnnoMEM.cpp
58 lines (35 loc) · 1.65 KB
/
mainwindow_AnnoMEM.cpp
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
#include "mainwindow.h"
#include "ui_mainwindow.h"
bool MainWindow::annotations_CHECK_alreadyExistsCURR()
{
QFile myFile( PATH_CURR_Anno );
//std::cout << "MainWindow::annotations_CHECK_alreadyExistsCurr - " << PATH_CURR_Anno.toStdString() << " - " << myFile.exists() << std::endl;
if (myFile.exists()) { ui->myLabel_AnnoExists->setText( "Yes" ); ui->myButton_ANNO_Load->setEnabled(true ); }
else { ui->myLabel_AnnoExists->setText( "No" ); ui->myButton_ANNO_Load->setEnabled(false); return false; }
// myFile.open(QIODevice::WriteOnly);
return true;
}
bool MainWindow::annotations_CHECK_alreadyExistALL()
{
/////////////////////////////////
int rememberCurrID = currFrameID;
/////////////////////////////////
for (int iii=FRAMES_ID_START; iii<FRAMES_TOTAL+FRAMES_ID_START; iii++)
{
update_CURR_THINGS( iii ); // runs also **annotations_CHECK_alreadyExistALL** but without check ;)
if (annotations_CHECK_alreadyExistsCURR() == false)
{
//std::cout << "MainWindow::annotations_CHECK_alreadyExistALL - " << false << std::endl;
/////////////////////////////////////
update_CURR_THINGS( rememberCurrID );
/////////////////////////////////////
std::cout << "Frame " << iii << " NOT annotated!!!" << std::endl;
return false;
}
}
/////////////////////////////////////
update_CURR_THINGS( rememberCurrID );
/////////////////////////////////////
//std::cout << "MainWindow::annotations_CHECK_alreadyExistALL - " << true << std::endl;
return true;
}