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

Method SetColor

Modules/Multilabel/src/mitkLabel.cpp:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void mitk::Label::SetColor(const mitk::Color &_color)
339{
340 mitk::ColorProperty *colorProp = dynamic_cast<mitk::ColorProperty *>(GetProperty("color"));
341 if (colorProp != nullptr)
342 // Update Property
343 colorProp->SetColor(_color);
344 else
345 // Create new Property
346 SetProperty("color", mitk::ColorProperty::New(_color));
347}
348
349void mitk::Label::SetCenterOfMassIndex(const mitk::Point3D &center)
350{

Callers 15

InitializeWindowsFunction · 0.45
AddDisplayPlaneSubTreeFunction · 0.45
showEigenvectorsMethod · 0.45
CreateOverlayChildMethod · 0.45
CreateSurfaceMethod · 0.45
OnSelectionChangedMethod · 0.45
mainFunction · 0.45
RenderAnnotationsMethod · 0.45
RenderQuantitiesMethod · 0.45

Calls 2

GetPropertyFunction · 0.50
NewFunction · 0.50

Tested by 9

GenerateLabelMethod · 0.36
TestSetColorMethod · 0.36
GenerateLabelMethod · 0.36
CreateLabelMethod · 0.36
ModifyLabelTestMethod · 0.36
OnRenameLabelMethod · 0.36
RunTestWithParametersMethod · 0.36