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

Method GetRedValue

Rendering/Core/vtkColorTransferFunction.cxx:752–758  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Returns the red color evaluated at the specified location

Source from the content-addressed store, hash-verified

750//------------------------------------------------------------------------------
751// Returns the red color evaluated at the specified location
752double vtkColorTransferFunction::GetRedValue(double x)
753{
754 double rgb[3];
755 this->GetColor(x, rgb);
756
757 return rgb[0];
758}
759
760//------------------------------------------------------------------------------
761// Returns the green color evaluated at the specified location

Callers 1

TestFunction · 0.80

Calls 1

GetColorMethod · 0.95

Tested by 1

TestFunction · 0.64