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

Method GetBlockColor

Rendering/Core/vtkCompositeDataDisplayAttributesLegacy.cxx:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void vtkCompositeDataDisplayAttributesLegacy::GetBlockColor(
107 unsigned int flat_index, double color[3]) const
108{
109 std::map<unsigned int, vtkColor3d>::const_iterator iter = this->BlockColors.find(flat_index);
110 if (iter != this->BlockColors.end())
111 {
112 std::copy(&iter->second[0], &iter->second[3], color);
113 }
114}
115
116vtkColor3d vtkCompositeDataDisplayAttributesLegacy::GetBlockColor(unsigned int flat_index) const
117{

Callers

nothing calls this directly

Calls 4

vtkColor3dClass · 0.85
copyFunction · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected