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

Function SetY

Modules/QtWidgetsExt/include/QmitkTransferFunctionCanvas.h:265–273  ·  view source on GitHub ↗

* \brief Set the y coordinate of the currently grabbed handle. * \param[in] y The new y value. */

Source from the content-addressed store, hash-verified

263 * \param[in] y The new y value.
264 */
265 void SetY(float y)
266 {
267 if (m_GrabbedHandle != -1)
268 {
269 this->MoveFunctionPoint(m_GrabbedHandle, ValidateCoord(std::make_pair(GetFunctionX(m_GrabbedHandle), y)));
270 update();
271 mitk::RenderingManager::GetInstance()->RequestUpdateAll();
272 }
273 }
274
275 /**
276 * \brief Connect QLineEdit widgets for displaying/editing the selected handle coordinates.

Callers

nothing calls this directly

Calls 4

ValidateCoordFunction · 0.85
GetFunctionXFunction · 0.70
MoveFunctionPointMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected