----------------------------------------------------------------------------
| 1718 | |
| 1719 | //---------------------------------------------------------------------------- |
| 1720 | vtkSMColorMapEditorHelper::Color vtkSMColorMapEditorHelper::GetColor(vtkSMProxy* proxy) |
| 1721 | { |
| 1722 | vtkSMProperty* diffuse = proxy->GetProperty("DiffuseColor"); |
| 1723 | vtkSMProperty* ambient = proxy->GetProperty("AmbientColor"); |
| 1724 | if (diffuse == nullptr && ambient == nullptr) |
| 1725 | { |
| 1726 | diffuse = proxy->GetProperty("Color"); |
| 1727 | } |
| 1728 | Color color; |
| 1729 | if (diffuse || ambient) |
| 1730 | { |
| 1731 | vtkSMPropertyHelper(diffuse ? diffuse : ambient).Get(color.data(), 3); |
| 1732 | } |
| 1733 | else |
| 1734 | { |
| 1735 | color[0] = color[1] = color[2] = VTK_DOUBLE_MAX; |
| 1736 | } |
| 1737 | return color; |
| 1738 | } |
| 1739 | |
| 1740 | //---------------------------------------------------------------------------- |
| 1741 | std::vector<vtkSMColorMapEditorHelper::Color> vtkSMColorMapEditorHelper::GetBlocksColors( |
no test coverage detected