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

Method GetColor

Common/Core/vtkLookupTable.cxx:400–407  ·  view source on GitHub ↗

------------------------------------------------------------------------------ get the color for a scalar value

Source from the content-addressed store, hash-verified

398//------------------------------------------------------------------------------
399// get the color for a scalar value
400void vtkLookupTable::GetColor(double v, double rgb[3])
401{
402 const unsigned char* rgb8 = this->MapValue(v);
403
404 rgb[0] = rgb8[0] / 255.0;
405 rgb[1] = rgb8[1] / 255.0;
406 rgb[2] = rgb8[2] / 255.0;
407}
408
409//------------------------------------------------------------------------------
410// get the opacity (alpha) for a scalar value

Callers 6

GetLuminanceFunction · 0.45
TestGetColorAndMapValueFunction · 0.45
TestShapeFunctionImageFunction · 0.45
TestShapeFunctionImageFunction · 0.45
TestFunction · 0.45

Calls 1

MapValueMethod · 0.95

Tested by 4

TestGetColorAndMapValueFunction · 0.36
TestShapeFunctionImageFunction · 0.36
TestShapeFunctionImageFunction · 0.36
TestFunction · 0.36