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

Method GetLevelWindow

Modules/Core/src/DataManagement/mitkDataNode.cpp:360–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360bool mitk::DataNode::GetLevelWindow(mitk::LevelWindow &levelWindow,
361 const mitk::BaseRenderer *renderer,
362 const char *propertyKey) const
363{
364 mitk::LevelWindowProperty::Pointer levWinProp =
365 dynamic_cast<mitk::LevelWindowProperty *>(GetProperty(propertyKey, renderer));
366 if (levWinProp.IsNull())
367 return false;
368
369 levelWindow = levWinProp->GetLevelWindow();
370 return true;
371}
372
373void mitk::DataNode::SetColor(const mitk::Color &color, const mitk::BaseRenderer *renderer, const char *propertyKey)
374{

Callers 15

SerializeMethod · 0.80
OnPropertyModifiedMethod · 0.80
GetContextMenuMethod · 0.80
GetPixmapFromImageNodeFunction · 0.80
OnPropertyModifiedMethod · 0.80
AddToDataStorageMethod · 0.80
ApplyLevelWindowMethod · 0.80
ApplyLevelWindowMethod · 0.80
SetLevelWindowActionMethod · 0.80
ApplyAllPropertiesMethod · 0.80

Calls 2

GetPropertyFunction · 0.50
IsNullMethod · 0.45

Tested by

no test coverage detected