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

Method GetBlockColor

Rendering/Core/vtkCompositePolyDataMapper.cxx:1060–1078  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1058
1059//------------------------------------------------------------------------------
1060void vtkCompositePolyDataMapper::GetBlockColor(unsigned int index, double color[3])
1061{
1062 if (this->CompositeAttributes)
1063 {
1064 unsigned int start_index = 0;
1065 auto dataObj = vtkCompositeDataDisplayAttributes::DataObjectFromIndex(
1066 index, this->GetInputDataObject(0, 0), start_index);
1067 if (dataObj)
1068 {
1069 this->CompositeAttributes->GetBlockColor(dataObj, color);
1070 }
1071 }
1072 else
1073 {
1074 color[0] = 1.0;
1075 color[1] = 1.0;
1076 color[2] = 1.0;
1077 }
1078}
1079
1080//------------------------------------------------------------------------------
1081void vtkCompositePolyDataMapper::RemoveBlockColor(unsigned int index)

Callers 7

RenderChildrenMethod · 0.45
RenderBlockMethod · 0.45
SetColorAndOpacityFunction · 0.45
BuildRenderValuesMethod · 0.45
BuildRenderValuesMethod · 0.45
RenderChildrenMethod · 0.45
SynchronizeBlockMethod · 0.45

Calls 1

GetInputDataObjectMethod · 0.80

Tested by

no test coverage detected