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

Method SetOpacity

Modules/Multilabel/src/mitkLabel.cpp:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void mitk::Label::SetOpacity(float opacity)
219{
220 mitk::FloatProperty *property = dynamic_cast<mitk::FloatProperty *>(GetProperty("opacity"));
221 if (property != nullptr)
222 // Update Property
223 property->SetValue(opacity);
224 else
225 // Create new Property
226 SetFloatProperty("opacity", opacity);
227}
228
229float mitk::Label::GetOpacity() const
230{

Callers 15

CreateOverlayChildMethod · 0.45
mainFunction · 0.45
RenderAnnotationsMethod · 0.45
RenderQuantitiesMethod · 0.45
TestSetOpacityMethod · 0.45

Calls 3

SetFloatPropertyFunction · 0.85
GetPropertyFunction · 0.50
SetValueMethod · 0.45

Tested by 4

TestSetOpacityMethod · 0.36
CreateOpacityActionMethod · 0.36
RenderMbiLogoMethod · 0.36