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

Method AddHSVSegment

Rendering/Core/vtkColorTransferFunction.cxx:701–709  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Add a line defined in HSV

Source from the content-addressed store, hash-verified

699//------------------------------------------------------------------------------
700// Add a line defined in HSV
701void vtkColorTransferFunction::AddHSVSegment(
702 double x1, double h1, double s1, double v1, double x2, double h2, double s2, double v2)
703{
704 double r1, r2, b1, b2, g1, g2;
705
706 vtkMath::HSVToRGB(h1, s1, v1, &r1, &g1, &b1);
707 vtkMath::HSVToRGB(h2, s2, v2, &r2, &g2, &b2);
708 this->AddRGBSegment(x1, r1, g1, b1, x2, r2, g2, b2);
709}
710
711//------------------------------------------------------------------------------
712// Returns the RGBA color evaluated at the specified location

Callers 14

TestScalarsToColorsFunction · 0.80
TestHistogram2DFunction · 0.80
mainFunction · 0.80
TestFunction · 0.80

Calls 2

AddRGBSegmentMethod · 0.95
HSVToRGBFunction · 0.85

Tested by 11

TestScalarsToColorsFunction · 0.64
TestHistogram2DFunction · 0.64
TestFunction · 0.64