From 6831ff8a52b2ba6f163410a3bbc555940c3ca004 Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 20 Apr 2007 07:52:49 +0000 Subject: [PATCH] Fix mistakes in porting on VTK 5.0 --- src/CONVERTOR/VISU_AppendFilter.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CONVERTOR/VISU_AppendFilter.cxx b/src/CONVERTOR/VISU_AppendFilter.cxx index 70fac47d..2c53e87b 100644 --- a/src/CONVERTOR/VISU_AppendFilter.cxx +++ b/src/CONVERTOR/VISU_AppendFilter.cxx @@ -203,7 +203,7 @@ namespace void ForEachInput(vtkAppendFilter* theFilter, TFunctor& theFunctor) { - for(vtkIdType anInputId = 0; anInputId < theFilter->GetNumberOfInputPorts(); anInputId++){ + for(vtkIdType anInputId = 0; anInputId < theFilter->GetNumberOfInputConnections(0); anInputId++){ if(vtkDataSet *aDataSet = theFilter->GetInput(anInputId)){ if(aDataSet->GetNumberOfPoints() <= 0 && aDataSet->GetNumberOfCells() <= 0){ continue; //no input, just skip @@ -226,7 +226,7 @@ VISU_AppendFilter vtkUnstructuredGrid *anOutput = this->GetOutput(); if(IsMergingInputs()){ - TCellIdMerger aFunctor(this->GetNumberOfInputPorts()); + TCellIdMerger aFunctor(this->GetNumberOfInputConnections(0)); ForEachInput(this, aFunctor); vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList; @@ -267,7 +267,7 @@ VISU_AppendFilter } anIdList->Delete(); }else{ - TCellCounter aFunctor(this->GetNumberOfInputPorts()); + TCellCounter aFunctor(this->GetNumberOfInputConnections(0)); ForEachInput(this, aFunctor); vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList; @@ -288,7 +288,7 @@ VISU_AppendFilter // 2.cells vtkIdList *anIdList = vtkIdList::New(); anIdList->Allocate(VTK_CELL_SIZE); - for(vtkIdType anInputId = 0; anInputId < this->GetNumberOfInputPorts(); anInputId++) { + for(vtkIdType anInputId = 0; anInputId < this->GetNumberOfInputConnections(0); anInputId++) { if(vtkDataSet *aDataSet = this->GetInput(anInputId)){ vtkIdType aNbCells = aDataSet->GetNumberOfCells(); vtkCellData *aCellData = aDataSet->GetCellData(); -- 2.39.2