From: abd Date: Fri, 20 Apr 2007 07:52:49 +0000 (+0000) Subject: Fix mistakes in porting on VTK 5.0 X-Git-Tag: V4_0rc1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6831ff8a52b2ba6f163410a3bbc555940c3ca004;p=modules%2Fvisu.git Fix mistakes in porting on VTK 5.0 --- 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();