MCPcopy Create free account
hub / github.com/Kitware/VTK / GetNodeValue

Method GetNodeValue

Common/DataModel/vtkPiecewiseFunction.cxx:322–338  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

320
321//------------------------------------------------------------------------------
322int vtkPiecewiseFunction::GetNodeValue(int index, double val[4])
323{
324 int size = static_cast<int>(this->Internal->Nodes.size());
325
326 if (index < 0 || index >= size)
327 {
328 vtkErrorMacro("Index out of range!");
329 return -1;
330 }
331
332 val[0] = this->Internal->Nodes[index]->X;
333 val[1] = this->Internal->Nodes[index]->Y;
334 val[2] = this->Internal->Nodes[index]->Midpoint;
335 val[3] = this->Internal->Nodes[index]->Sharpness;
336
337 return 1;
338}
339
340//------------------------------------------------------------------------------
341int vtkPiecewiseFunction::SetNodeValue(int index, double val[4])

Callers 15

WriteLookupTableMethod · 0.45
GetControlPointMethod · 0.45
SetControlPointMethod · 0.45
EditPointMethod · 0.45
PaintMethod · 0.45
MouseMoveEventMethod · 0.45
DrawPointMethod · 0.45
GetControlPointMethod · 0.45
EditPointMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected