| 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 | { |
no test coverage detected