MCPcopy Create free account
hub / github.com/Kitware/ParaView / GetColor

Method GetColor

Remoting/Views/vtkSMColorMapEditorHelper.cxx:1720–1738  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1718
1719//----------------------------------------------------------------------------
1720vtkSMColorMapEditorHelper::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//----------------------------------------------------------------------------
1741std::vector<vtkSMColorMapEditorHelper::Color> vtkSMColorMapEditorHelper::GetBlocksColors(

Callers 15

getLutImageMethod · 0.45
getLutImagesMethod · 0.45
UpdateTextPropertiesMethod · 0.45
PaintAxisMethod · 0.45
SetControlBoxMethod · 0.45
GetOutlineColorMethod · 0.45
GetAxisLabelColorMethod · 0.45
ConfigureTicksMethod · 0.45
GetTitleColorMethod · 0.45

Calls 3

GetPropertyMethod · 0.45
GetMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected