17 #ifndef __itkMeshSource_txx
18 #define __itkMeshSource_txx
28 template<
class TOutputMesh>
35 =
static_cast<TOutputMesh*
>(this->MakeOutput(0).GetPointer());
40 m_GenerateDataRegion = 0;
41 m_GenerateDataNumberOfRegions = 0;
47 template<
class TOutputMesh>
52 return static_cast<DataObject*
>(TOutputMesh::New().GetPointer());
58 template<
class TOutputMesh>
63 if (this->GetNumberOfOutputs() < 1)
68 return static_cast<TOutputMesh*
>
76 template<
class TOutputMesh>
81 return static_cast<TOutputMesh*
>
89 template<
class TOutputMesh>
94 itkWarningMacro(<<
"SetOutput(): This method is slated to be removed from ITK. Please use GraftOutput() in possible combination with DisconnectPipeline() instead." );
102 template<
class TOutputMesh>
107 Superclass::GenerateInputRequestedRegion();
114 template<
class TOutputMesh>
119 this->GraftNthOutput(0, graft);
126 template<
class TOutputMesh>
131 if ( idx >= this->GetNumberOfOutputs() )
133 itkExceptionMacro(<<
"Requested to graft output " << idx <<
134 " but this filter only has " << this->GetNumberOfOutputs() <<
" Outputs.");
139 itkExceptionMacro(<<
"Requested to graft output that is a NULL pointer" );
145 output->
Graft( graft );
152 template<
class TOutputMesh>
157 Superclass::PrintSelf(os,indent);