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

Method Initialize

Modules/AlgorithmsExt/src/mitkSegmentationSink.cpp:21–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 SegmentationSink::SegmentationSink() {}
20 SegmentationSink::~SegmentationSink() {}
21 void SegmentationSink::Initialize(const NonBlockingAlgorithm *other)
22 {
23 Superclass::Initialize(other);
24 // sinks should be called explicitly from the tool, because otherwise the order of setting "Input" and "Group node"
25 // would matter
26 UnDefineTriggerParameter("Input");
27
28 // some basedata output
29 DataNode::Pointer groupNode;
30 bool showResult(true);
31
32 if (other)
33 {
34 other->GetPointerParameter("Group node", groupNode);
35 other->GetParameter("Show result", showResult);
36 }
37
38 SetPointerParameter("Group node", groupNode);
39 SetParameter("Show result", showResult);
40 }
41
42 bool SegmentationSink::ReadyToRun()
43 {

Calls 4

InitializeFunction · 0.85
SetPointerParameterFunction · 0.85
SetParameterFunction · 0.85
GetParameterMethod · 0.45

Tested by

no test coverage detected