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

Method GetAnnotationColor

Common/Core/vtkScalarsToColors.cxx:1725–1737  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1723
1724//------------------------------------------------------------------------------
1725void vtkScalarsToColors::GetAnnotationColor(const vtkVariant& val, double rgba[4])
1726{
1727 if (this->IndexedLookup)
1728 {
1729 vtkIdType i = this->GetAnnotatedValueIndex(val);
1730 this->GetIndexedColor(i, rgba);
1731 }
1732 else
1733 {
1734 this->GetColor(val.ToDouble(), rgba);
1735 rgba[3] = 1.0;
1736 }
1737}
1738
1739//------------------------------------------------------------------------------
1740vtkIdType vtkScalarsToColors::CheckForAnnotatedValue(vtkVariant value)

Callers 3

PaintMethod · 0.80
PaintBuffersMethod · 0.80
MapAnnotationLabelsMethod · 0.80

Calls 4

GetIndexedColorMethod · 0.95
GetColorMethod · 0.95
ToDoubleMethod · 0.45

Tested by

no test coverage detected