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

Method GetBlockColor

Rendering/Core/vtkCompositeDataDisplayAttributes.cxx:388–396  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

386
387//----------------------------------------------------------------------------
388void vtkCompositeDataDisplayAttributes::GetBlockColor(
389 vtkDataObject* data_object, double color[3]) const
390{
391 ColorMap::const_iterator iter = this->BlockColors.find(data_object);
392 if (iter != this->BlockColors.end())
393 {
394 std::copy(&iter->second[0], &iter->second[3], color);
395 }
396}
397
398//----------------------------------------------------------------------------
399vtkColor3d vtkCompositeDataDisplayAttributes::GetBlockColor(vtkDataObject* data_object) const

Callers 1

SetBlockColorMethod · 0.95

Calls 4

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

Tested by

no test coverage detected