Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / PIPELINE / VISU_VectorsPL.cxx
index 09a4184fc82e7da9dae5e8b67a62a2273c4819d2..03c3016172361b8ae8269780e95de8d33ae8f18e 100644 (file)
@@ -51,12 +51,12 @@ void ToCellCenters( TOutputFilter *theOutputFilter,
                     VISU_UsedPointsFilter* theUsedPointsFilter )
 {
   if ( VISU::IsDataOnCells( theDataSet ) ) {
-    theCellCenters->SetInput( theDataSet );
+    theCellCenters->SetInputData( theDataSet );
     theCellCenters->VertexCellsOn();
-    theOutputFilter->SetInput( theCellCenters->GetOutput() );
+    theOutputFilter->SetInputConnection( theCellCenters->GetOutputPort() );
   }else {
-    theUsedPointsFilter->SetInput( theDataSet );
-    theOutputFilter->SetInput( theUsedPointsFilter->GetOutput() );
+    theUsedPointsFilter->SetInputData( theDataSet );
+    theOutputFilter->SetInputConnection( theUsedPointsFilter->GetOutputPort() );
   }
 }
 
@@ -245,7 +245,7 @@ VISU_VectorsPL
                  GetMergedInput(),
                  myUsedPointsFilter );
 
-  myGlyph->SetInput( myTransformFilter->GetOutput() );
+  myGlyph->SetInputConnection( myTransformFilter->GetOutputPort() );
   myGlyph->SetVectorModeToUseVector();
   myGlyph->SetScaleModeToScaleByVector();
   myGlyph->SetColorModeToColorByScalar();
@@ -280,7 +280,7 @@ VISU_VectorsPL
     case CENTER:
       myGlyphSource->SetCenter(0.0, 0.0, 0.0);
     }
-    myGlyph->SetSource(myGlyphSource->GetOutput());
+    myGlyph->SetSourceConnection(myGlyphSource->GetOutputPort());
   }
     break;
   case CONE2:
@@ -302,12 +302,12 @@ VISU_VectorsPL
     case CENTER:
       myConeSource->SetCenter(0.0, 0.0, 0.0);
     }
-    myGlyph->SetSource(myConeSource->GetOutput());
+    myGlyph->SetSourceConnection(myConeSource->GetOutputPort());
   }
     break;
   case NONE:
   default: {
-    myGlyph->SetSource(myLineSource->GetOutput());
+    myGlyph->SetSourceConnection(myLineSource->GetOutputPort());
   }
   }