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

Method MoveSelectedPointDown

Modules/QtWidgetsExt/src/QmitkPointListModel.cpp:279–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void QmitkPointListModel::MoveSelectedPointDown()
280{
281 mitk::PointSet::Pointer pointSet = this->CheckForPointSetInNode(m_PointSetNode);
282 if (pointSet.IsNull())
283 return;
284
285 mitk::PointSet::PointIdentifier selectedID;
286 selectedID = pointSet->SearchSelectedPoint(m_TimeStep);
287 mitk::ScalarType tsInMS = pointSet->GetTimeGeometry()->TimeStepToTimePoint(m_TimeStep);
288 mitk::PointOperation *doOp = new mitk::PointOperation(
289 mitk::OpMOVEPOINTDOWN, tsInMS, pointSet->GetPoint(selectedID, m_TimeStep), selectedID, true);
290 pointSet->ExecuteOperation(doOp);
291 mitk::RenderingManager::GetInstance()->RequestUpdateAll(); // Workaround for update problem in Pointset/Mapper
292}
293
294void QmitkPointListModel::RemoveSelectedPoint()
295{

Callers 1

keyPressEventMethod · 0.45

Calls 7

SearchSelectedPointMethod · 0.80
IsNullMethod · 0.45
TimeStepToTimePointMethod · 0.45
GetPointMethod · 0.45
ExecuteOperationMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected