| 363 | } |
| 364 | |
| 365 | void 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 | |
| 387 | void QmitkPointListWidget::OnListDoubleClick() |
| 388 | { |
nothing calls this directly
no test coverage detected