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

Method SetVisible

Modules/Multilabel/src/mitkLabel.cpp:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void mitk::Label::SetVisible(bool visible)
201{
202 mitk::BoolProperty *property = dynamic_cast<mitk::BoolProperty *>(GetProperty("visible"));
203 if (property != nullptr)
204 // Update Property
205 property->SetValue(visible);
206 else
207 // Create new Property
208 SetBoolProperty("visible", visible);
209}
210
211bool mitk::Label::GetVisible() const
212{

Callers 13

SetAllLabelsVisibleMethod · 0.45
TestSetVisibilityMethod · 0.45
AddingLabelTestMethod · 0.45
ModifyLabelTestMethod · 0.45
setDataMethod · 0.45
ResetPreviewNodeMethod · 0.45

Calls 2

GetPropertyFunction · 0.50
SetValueMethod · 0.45

Tested by 5

TestSetVisibilityMethod · 0.36
AddingLabelTestMethod · 0.36
ModifyLabelTestMethod · 0.36