-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
36 lines (31 loc) · 925 Bytes
/
main.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
#include <QApplication>
#include <QTextCodec>
#include "mainwindow.h"
//#define DATAGENERATE
#ifdef DATAGENERATE
#include "PointDataManager.h"
#endif
int main(int argc, char *argv[])
{
#ifdef DATAGENERATE
//POINTACTION actions[] = {CALCPOINTS,SAVEPOINTS};
POINTACTION actions[] = {LOADPOINTS,SAVED2,SAVESECTOR,SAVESHELL,SAVESECSHELL};
//POINTACTION actions[] = {VALID2};
PointDataManager *m = new PointDataManager("D:\\geometry\\QSceneEdit\\conferenceroom\\",actions,sizeof(actions)/sizeof(POINTACTION));
delete m;
return 0;
#endif
#ifdef BNSTRAINING
LoadScenes();
#endif
QApplication a(argc, argv);
// ·ÀÖ¹ÖÐÎÄÂÒÂë
QTextCodec *codec = QTextCodec::codecForName("GB2312");
QTextCodec::setCodecForLocale(codec);
QTextCodec::setCodecForCStrings(codec);
QTextCodec::setCodecForTr(codec);
MainWindow w;
//w.show();
w.showMaximized();
return a.exec();
}