------------------------------------------------------------------------------
| 1058 | |
| 1059 | //------------------------------------------------------------------------------ |
| 1060 | void 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 | //------------------------------------------------------------------------------ |
| 1081 | void vtkCompositePolyDataMapper::RemoveBlockColor(unsigned int index) |
no test coverage detected