| 346 | // == incremental graph generation ======================= |
| 347 | |
| 348 | void ViewerGui::gotoFirstScan(){ |
| 349 | if (m_scanGraph){ |
| 350 | showInfo("Inserting first scan node into tree... ", true); |
| 351 | QApplication::setOverrideCursor(Qt::WaitCursor); |
| 352 | |
| 353 | m_nextScanToAdd = m_scanGraph->begin(); |
| 354 | |
| 355 | // if (m_ocTree) delete m_ocTree; |
| 356 | // m_ocTree = new octomap::OcTree(m_octreeResolution); |
| 357 | OcTree* tree = new octomap::OcTree(m_octreeResolution); |
| 358 | this->addOctree(tree, DEFAULT_OCTREE_ID); |
| 359 | |
| 360 | addNextScan(); |
| 361 | |
| 362 | QApplication::restoreOverrideCursor(); |
| 363 | showOcTree(); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | void ViewerGui::addNextScan(){ |
| 368 | |