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

Method GetLabelMapLabels

Rendering/Core/vtkVolumeProperty.cxx:888–904  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

886
887//------------------------------------------------------------------------------
888std::set<int> vtkVolumeProperty::GetLabelMapLabels()
889{
890 // Erase labels that were added re-assigned to null pointers
891 for (auto it = this->LabelMapLabels.begin(); it != this->LabelMapLabels.end();)
892 {
893 if (!this->GetLabelColor(*it) && !this->GetLabelScalarOpacity(*it) &&
894 !this->GetLabelGradientOpacity(*it))
895 {
896 it = this->LabelMapLabels.erase(it);
897 }
898 else
899 {
900 ++it;
901 }
902 }
903 return this->LabelMapLabels;
904}
905
906//------------------------------------------------------------------------------
907// Print the state of the volume property.

Callers 5

GetNumberOfLabelsMethod · 0.95
InternalUpdateMethod · 0.80
LoadMaskMethod · 0.80

Calls 6

GetLabelColorMethod · 0.95
GetLabelScalarOpacityMethod · 0.95
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected