MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / GetColor

Method GetColor

src/Base/Parameter.cpp:1255–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1253}
1254
1255Base::Color ParameterGrp::GetColor(const char* Name, Base::Color lPreset) const
1256{
1257 auto packed = GetUnsigned(Name, lPreset.getPackedValue());
1258
1259 return Color(static_cast<uint32_t>(packed));
1260}
1261
1262void ParameterGrp::SetColor(const char* Name, Base::Color lValue)
1263{

Callers 12

SetMeshMethod · 0.80
InitMethod · 0.80
ConvertToStandaloneMethod · 0.80
printLabelMethod · 0.80
loadColorsMethod · 0.80
loadShapesMethod · 0.80
createShapeMethod · 0.80
getColorMethod · 0.80
createObjectMethod · 0.80
getSHUOColorsMethod · 0.80
createAssemblyMethod · 0.80
exportObjectMethod · 0.80

Calls 2

getPackedValueMethod · 0.80
ColorFunction · 0.70

Tested by

no test coverage detected