]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix mistakes in porting on VTK 5.0
authorabd <abd@opencascade.com>
Fri, 20 Apr 2007 07:52:49 +0000 (07:52 +0000)
committerabd <abd@opencascade.com>
Fri, 20 Apr 2007 07:52:49 +0000 (07:52 +0000)
src/CONVERTOR/VISU_AppendFilter.cxx

index 70fac47db6392edfd742982c64f358122313f089..2c53e87b4e9f165b011dd78abee6a983fa638cf6 100644 (file)
@@ -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<TCellIdMerger>(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<TCellCounter>(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();