19 this->SetNthOutput(0, output.GetPointer());
33 itkDebugMacro(
"MakeOutput(" << name <<
")");
34 if (this->IsIndexedOutputName(name))
36 return this->
MakeOutput(this->MakeIndexFromOutputName(name));
43 return itkDynamicCastInDebugMode<OutputType *>(this->GetPrimaryOutput());
48 return itkDynamicCastInDebugMode<const OutputType *>(this->GetPrimaryOutput());
53 return static_cast<OutputType *
>(Superclass::GetOutput(idx));
58 const auto *out =
dynamic_cast<const OutputType *
>(this->ProcessObject::GetOutput(idx));
60 if (out ==
nullptr && this->ProcessObject::GetOutput(idx) !=
nullptr)
62 itkWarningMacro(<<
"Unable to convert output number " << idx <<
" to type " <<
typeid(
OutputType).name());
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
~DataNodeSource() override
Class for nodes of the DataTree.