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

Function SetX

Modules/QtWidgetsExt/include/QmitkTransferFunctionCanvas.h:251–259  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

249 * \param[in] x The new x value.
250 */
251 void SetX(float x)
252 {
253 if (m_GrabbedHandle != -1)
254 {
255 this->MoveFunctionPoint(m_GrabbedHandle, ValidateCoord(std::make_pair(x, GetFunctionY(m_GrabbedHandle))));
256 update();
257 mitk::RenderingManager::GetInstance()->RequestUpdateAll();
258 }
259 }
260
261 /**
262 * \brief Set the y coordinate of the currently grabbed handle.

Callers

nothing calls this directly

Calls 4

ValidateCoordFunction · 0.85
GetFunctionYFunction · 0.70
MoveFunctionPointMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected