42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
/*****************************************************************
|
|
*
|
|
* This file is part of the GMAPPING project
|
|
*
|
|
* GMAPPING Copyright (c) 2004 Giorgio Grisetti,
|
|
* Cyrill Stachniss, and Wolfram Burgard
|
|
*
|
|
* This software is licensed under the "Creative Commons
|
|
* License (Attribution-NonCommercial-ShareAlike 2.0)"
|
|
* and is copyrighted by Giorgio Grisetti, Cyrill Stachniss,
|
|
* and Wolfram Burgard.
|
|
*
|
|
* Further information on this license can be found at:
|
|
* http://creativecommons.org/licenses/by-nc-sa/2.0/
|
|
*
|
|
* GMAPPING 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.
|
|
*
|
|
*****************************************************************/
|
|
|
|
|
|
#include <qapplication.h>
|
|
#include "qparticleviewer.h"
|
|
|
|
int main (int argc, char ** argv){
|
|
QApplication app(argc, argv);
|
|
QParticleViewer * pviewer=new QParticleViewer(0);
|
|
app.setMainWidget(pviewer);
|
|
pviewer->show();
|
|
FILE* f=fopen(argv[1], "r");
|
|
if (!f)
|
|
return -1;
|
|
QTextIStream is(f);
|
|
pviewer->tis=&is;
|
|
pviewer->start(10);
|
|
return app.exec();
|
|
std::cout << "DONE: " << argv[1] <<endl;
|
|
}
|
|
|