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

Method Annotation

Modules/Core/src/Rendering/mitkAnnotation.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22const std::string mitk::Annotation::US_PROPKEY_AR_ID = US_INTERFACE_NAME + ".arId";
23
24mitk::Annotation::Annotation() : m_PropertyListModifiedObserverTag(0)
25{
26 m_PropertyList = mitk::PropertyList::New();
27 itk::MemberCommand<mitk::Annotation>::Pointer _PropertyListModifiedCommand =
28 itk::MemberCommand<mitk::Annotation>::New();
29 _PropertyListModifiedCommand->SetCallbackFunction(this, &mitk::Annotation::PropertyListModified);
30 m_PropertyListModifiedObserverTag = m_PropertyList->AddObserver(itk::ModifiedEvent(), _PropertyListModifiedCommand);
31 this->SetName(this->GetNameOfClass());
32 this->SetVisibility(true);
33 this->SetOpacity(1.0);
34}
35
36void mitk::Annotation::PropertyListModified(const itk::Object * /*caller*/, const itk::EventObject &)
37{

Callers

nothing calls this directly

Calls 6

SetNameMethod · 0.95
SetVisibilityMethod · 0.95
SetOpacityMethod · 0.95
AddObserverMethod · 0.80
NewFunction · 0.50
GetNameOfClassMethod · 0.45

Tested by

no test coverage detected