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

Method MoveFunctionPoint

Modules/QtWidgetsExt/src/QmitkPiecewiseFunctionCanvas.cpp:147–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void QmitkPiecewiseFunctionCanvas::MoveFunctionPoint(int index, std::pair<double, double> pos)
148{
149 RemoveFunctionPoint(GetFunctionX(index));
150 m_GrabbedHandle = AddFunctionPoint(pos.first, pos.second);
151}

Callers 4

mouseMoveEventMethod · 0.45
keyPressEventMethod · 0.45
SetXFunction · 0.45
SetYFunction · 0.45

Calls 3

RemoveFunctionPointFunction · 0.50
GetFunctionXFunction · 0.50
AddFunctionPointFunction · 0.50

Tested by

no test coverage detected