Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / PIPELINE / VISU_ColoredPL.cxx
index fdced45e0909422d48423593f58769e799d8ece8..ae5327354677bbe8b71113f1cdc5014360aeb30d 100644 (file)
@@ -230,10 +230,10 @@ VISU_ColoredPL
 {
   if ( theUseScalarFilter ) {
     // Include threshold filter between the transform and the pass filters. 
-    myPassFilter->SetInput( myThreshold->GetOutput() );
+    myPassFilter->SetInputConnection( myThreshold->GetOutputPort() );
   } else {
     // Exclude threshold filter before the pass filter. 
-    myPassFilter->SetInput( myFieldTransform->GetOutput() );
+    myPassFilter->SetInputConnection( myFieldTransform->GetOutputPort() );
   }
 }
 
@@ -389,13 +389,13 @@ void
 VISU_ColoredPL
 ::Build() 
 {
-  myExtractor->SetInput( Superclass::GetClippedInput() );
-  myFieldTransform->SetInput(myExtractor->GetOutput());
+  myExtractor->SetInputData( Superclass::GetClippedInput() );
+  myFieldTransform->SetInputConnection(myExtractor->GetOutputPort());
 
-  myThreshold->SetInput( myFieldTransform->GetOutput() );
+  myThreshold->SetInputConnection( myFieldTransform->GetOutputPort() );
   // The pass filter is used here for possibility to include/exclude 
   // threshold filter before it.
-  myPassFilter->SetInput( myFieldTransform->GetOutput() );
+  myPassFilter->SetInputConnection( myFieldTransform->GetOutputPort() );
 
   GetMapperHolder()->SetLookupTable(GetMapperTable());
   //GetMapper()->InterpolateScalarsBeforeMappingOn();