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

Method GetColor

Modules/Core/src/Rendering/mitkAnnotation.cpp:223–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223bool mitk::Annotation::GetColor(float rgb[], const std::string &propertyKey) const
224{
225 mitk::ColorProperty::Pointer colorprop = dynamic_cast<mitk::ColorProperty *>(GetProperty(propertyKey));
226 if (colorprop.IsNull())
227 return false;
228
229 memcpy(rgb, colorprop->GetColor().GetDataPointer(), 3 * sizeof(float));
230 return true;
231}
232
233void mitk::Annotation::SetColor(const mitk::Color &color, const std::string &propertyKey)
234{

Callers 15

writeMethod · 0.45
writeMethod · 0.45
writeMethod · 0.45
BuildMetaInfoHandlerMethod · 0.45
SerializeLabelToJSONMethod · 0.45
CreateNewLabelMethod · 0.45
CreateHTMLLabelNameMethod · 0.45
mitkLabel.cppFile · 0.45

Calls 2

GetPropertyFunction · 0.50
IsNullMethod · 0.45