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

Method GetLabelColor

Rendering/Core/vtkVolumeProperty.cxx:794–801  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

792
793//------------------------------------------------------------------------------
794vtkColorTransferFunction* vtkVolumeProperty::GetLabelColor(int label)
795{
796 if (this->LabelColor.count(label) == 0)
797 {
798 return nullptr;
799 }
800 return this->LabelColor[label];
801}
802
803//------------------------------------------------------------------------------
804void vtkVolumeProperty::SetLabelScalarOpacity(int label, vtkPiecewiseFunction* function)

Callers 2

GetLabelMapLabelsMethod · 0.95
InternalUpdateMethod · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected