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

Method MoveFunctionPoint

Modules/QtWidgetsExt/src/QmitkColorTransferFunctionCanvas.cpp:141–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void QmitkColorTransferFunctionCanvas::MoveFunctionPoint(int index, std::pair<double, double> pos)
142{
143 double color[3];
144 m_ColorTransferFunction->GetColor(GetFunctionX(index), color);
145 RemoveFunctionPoint(GetFunctionX(index));
146 m_ColorTransferFunction->AddRGBPoint(pos.first, color[0], color[1], color[2]);
147}
148
149void QmitkColorTransferFunctionCanvas::AddRGB(double x, double r, double g, double b)
150{

Callers

nothing calls this directly

Calls 4

AddRGBPointMethod · 0.80
GetFunctionXFunction · 0.50
RemoveFunctionPointFunction · 0.50
GetColorMethod · 0.45

Tested by

no test coverage detected