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

Method CreateWIPDataNode

Modules/ImageStatisticsUI/src/QmitkDataGeneratorBase.cpp:166–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166mitk::DataNode::Pointer QmitkDataGeneratorBase::CreateWIPDataNode(mitk::BaseData* dataDummy, const std::string& nodeName)
167{
168 if (!dataDummy) {
169 mitkThrow() << "data is nullptr";
170 }
171
172 auto interimResultNode = mitk::DataNode::New();
173 interimResultNode->SetProperty("helper object", mitk::BoolProperty::New(true));
174 dataDummy->SetProperty(mitk::STATS_GENERATION_STATUS_PROPERTY_NAME.c_str(), mitk::StringProperty::New(mitk::STATS_GENERATION_STATUS_VALUE_PENDING));
175 interimResultNode->SetVisibility(false);
176 interimResultNode->SetData(dataDummy);
177 if (!nodeName.empty())
178 {
179 interimResultNode->SetName(nodeName);
180 }
181 return interimResultNode;
182}
183
184
185QmitkDataGeneratorBase::InputPairVectorType QmitkDataGeneratorBase::FilterImageROICombinations(InputPairVectorType&& imageROICombinations) const

Callers

nothing calls this directly

Calls 6

NewFunction · 0.50
SetPropertyMethod · 0.45
SetVisibilityMethod · 0.45
SetDataMethod · 0.45
emptyMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected