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

Method ResolveSmoothed

Modules/Multilabel/src/mitkMultiLabelSegmentationVtkMapper3D.cpp:58–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool mitk::MultiLabelSegmentationVtkMapper3D::ResolveSmoothed(const mitk::DataNode* node, mitk::BaseRenderer* renderer)
59{
60 bool smoothed = true;
61 if (node != nullptr && node->GetBoolProperty("org.mitk.multilabel.3D.smoothed", smoothed, renderer))
62 {
63 return smoothed;
64 }
65
66 if (auto* prefService = mitk::CoreServices::GetPreferencesService())
67 {
68 if (auto* systemPref = prefService->GetSystemPreferences())
69 {
70 return systemPref->Node("/org.mitk.views.segmentation")->GetBool("3D rendering smoothed", true);
71 }
72 }
73 return true;
74}
75
76namespace mitk
77{

Callers

nothing calls this directly

Calls 4

GetBoolMethod · 0.80
GetBoolPropertyMethod · 0.45
GetSystemPreferencesMethod · 0.45
NodeMethod · 0.45

Tested by

no test coverage detected