19 #include <vtkPoints.h>
20 #include <vtkSmartPointer.h>
21 #include <vtkUnstructuredGrid.h>
23 #include <itkImageRegionIterator.h>
38 this->ProcessObject::SetNthInput(0, const_cast<mitk::UnstructuredGrid *>(grid));
43 this->SetNumberOfIndexedOutputs(this->GetNumberOfIndexedInputs());
44 for (
unsigned int idx = 0; idx < this->GetNumberOfIndexedInputs(); ++idx)
46 if (this->GetOutput(idx) ==
nullptr)
49 this->SetNthOutput(idx, newOutputX);
57 if (this->GetInput(idx) != grid)
59 this->SetNthInput(idx, const_cast<mitk::UnstructuredGrid *>(grid));
60 this->CreateOutputsForAllInputs(idx);
67 if (this->GetNumberOfInputs() < 1)
75 if (this->GetNumberOfInputs() < 1)
85 m_UnstructGrid = this->GetOutput();
87 itkDebugMacro(<<
"GenerateOutputInformation()");
89 if (inputImage.IsNull())
UnstructuredGridToUnstructuredGridFilter()
virtual void SetInput(const UnstructuredGrid *grid)
virtual void GenerateOutputInformation() override
virtual ~UnstructuredGridToUnstructuredGridFilter()
const mitk::UnstructuredGrid * GetInput(void)
Class for storing unstructured grids (vtkUnstructuredGrid)
virtual void CreateOutputsForAllInputs(unsigned int idx)