22 #ifndef otbVectorDataSource_hxx
23 #define otbVectorDataSource_hxx
32 template <
class TOutputVectorData>
35 this->Superclass::SetNumberOfRequiredOutputs(1);
36 this->Superclass::SetNthOutput(0, OutputVectorDataType::New().GetPointer());
40 template <
class TOutputVectorData>
49 template <
class TOutputVectorData>
52 this->GraftNthOutput(0, graft);
59 template <
class TOutputVectorData>
62 if (idx >= this->GetNumberOfOutputs())
64 itkExceptionMacro(<<
"Requested to graft output " << idx <<
" but this filter only has " << this->GetNumberOfOutputs() <<
" Outputs.");
69 itkExceptionMacro(<<
"Requested to graft output that is a NULL pointer");
74 itk::DataObject* output = this->ProcessObject::GetOutput(idx);
81 template <
class TOutputVectorData>
87 for (
unsigned int i = 0; i < this->GetNumberOfOutputs(); ++i)
89 outputPtr = this->GetOutput(i);
98 template <
class TOutputVectorData>
101 if (this->GetNumberOfOutputs() < 1)
109 template <
class TOutputVectorData>
118 template <
class TOutputVectorData>
121 Superclass::PrintSelf(os, indent);