wrapper for running the g2o viewer
More...
#include <run_g2o_viewer.h>
wrapper for running the g2o viewer
Definition at line 36 of file run_g2o_viewer.h.
int g2o::RunG2OViewer::run |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
CommandArgs & |
arg |
|
) |
| |
|
static |
Definition at line 52 of file run_g2o_viewer.cpp.
References g2o::OptimizableGraph::addPreIterationAction(), g2o::GuiHyperGraphAction::dumpScreenshots, MainWindow::loadFromFile(), g2o::CommandArgs::paramLeftOver(), g2o::CommandArgs::parseArgs(), g2o::SparseOptimizer, MainWindow::updateDisplayedSolvers(), MainWindow::updateRobustKernels(), and g2o::GuiHyperGraphAction::viewer.
54 std::string inputFilename;
55 arg.paramLeftOver(
"graph-input", inputFilename,
"",
"graph file which will be processed",
true);
56 arg.parseArgs(argc, argv);
68 mw.viewer->graph = optimizer;
71 GuiHyperGraphAction guiHyperGraphAction;
72 guiHyperGraphAction.viewer = mw.viewer;
74 optimizer->addPreIterationAction(&guiHyperGraphAction);
76 if (inputFilename.size() > 0) {
80 QCoreApplication* myapp = QApplication::instance();
81 while (mw.isVisible()) {
82 guiHyperGraphAction.dumpScreenshots = mw.actionDump_Images->isChecked();
84 myapp->processEvents();
85 SleepThread::msleep(10);
void updateRobustKernels()
bool loadFromFile(const QString &filename)
void updateDisplayedSolvers()
redirect a stream to a QPlainTextEdit
class G2O_CORE_API SparseOptimizer
main window of the g2o viewer
The documentation for this class was generated from the following files: