MCPcopy Create free account
hub / github.com/MITK/MITK / OnBtnAddPointManually

Method OnBtnAddPointManually

Modules/QtWidgetsExt/src/QmitkPointListWidget.cpp:365–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void QmitkPointListWidget::OnBtnAddPointManually()
366{
367 mitk::PointSet *pointSet = this->GetPointSet();
368 QmitkEditPointDialog editPointDialog(this);
369
370 if (this->GetPointSet()->IsEmpty())
371 {
372 editPointDialog.SetPoint(pointSet, 0, m_TimeStep);
373 }
374
375 else
376 {
377 mitk::PointSet::PointsIterator maxIt = pointSet->GetMaxId();
378 mitk::PointSet::PointIdentifier maxId = maxIt->Index();
379 editPointDialog.SetPoint(pointSet, maxId + 1, m_TimeStep);
380 }
381
382 editPointDialog.exec();
383 mitk::RenderingManager::GetInstance()->RequestUpdateAll();
384 emit PointListChanged();
385}
386
387void QmitkPointListWidget::OnListDoubleClick()
388{

Callers

nothing calls this directly

Calls 5

GetPointSetMethod · 0.95
GetMaxIdMethod · 0.80
IsEmptyMethod · 0.45
SetPointMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected