]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Porting to VTK 6.
authorouv <ouv@opencascade.com>
Tue, 12 Mar 2013 15:48:48 +0000 (15:48 +0000)
committerouv <ouv@opencascade.com>
Tue, 12 Mar 2013 15:48:48 +0000 (15:48 +0000)
Debug.

src/SVTK/SVTK_Actor.cxx
src/SVTK/SVTK_DeviceActor.cxx
src/SVTK/SVTK_DeviceActor.h

index 3180a5c60191f15cdf635c28d49f6ec165965dc5..396bae23dc3bac8ba82048528de7f374b4fa1ad2 100644 (file)
@@ -65,7 +65,7 @@ void
 SVTK_Actor
 ::Initialize()
 {
-  SetInput(GetSource());
+  SetInputData(GetSource());
 }
 
 void
@@ -77,7 +77,7 @@ SVTK_Actor
 
   myUnstructuredGrid = theUnstructuredGrid;
 
-  SetInput(theUnstructuredGrid);
+  SetInputData(theUnstructuredGrid);
 }
 
 vtkUnstructuredGrid*
index 9b15c76f5fe51f93ab6f767f017473e2826d6383..e9587b5018a00c43e98fd22e56fb85a1627b3dc5 100644 (file)
@@ -120,7 +120,7 @@ SVTK_DeviceActor
 {
   if(theMapper){
     int anId = 0;
-    myPassFilter[ anId ]->SetInputData( theMapper->GetInput() );
+    myPassFilter[ anId ]->SetInputConnection( theMapper->GetInputConnection( 0, 0 ) );
     myPassFilter[ anId + 1]->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
     
     anId++; // 1
@@ -158,12 +158,23 @@ SVTK_DeviceActor
 */
 void
 SVTK_DeviceActor
-::SetInput(vtkDataSet* theDataSet)
+::SetInputData(vtkDataSet* theDataSet)
 {
   myMapper->SetInputData(theDataSet);
   InitPipeLine(myMapper);
 }
 
+/*!
+  Allows to set initial vtkDataSet
+*/
+void
+SVTK_DeviceActor
+::SetInputConnection(vtkAlgorithmOutput* theAlgorithmOutput)
+{
+  myMapper->SetInputConnection(theAlgorithmOutput);
+  InitPipeLine(myMapper);
+}
+
 /*!
   To provide VTK to Object and backward mapping
 */
index 366ed9ae4cc8deaa9cc986f4371cf9016c5d112b..ef5579015862ff7f72d5c15000d18b82e9583598 100644 (file)
@@ -47,6 +47,7 @@ class vtkShrinkFilter;
 class vtkFeatureEdges;
 class VTKViewer_DataSetMapper;
 class vtkPassThroughFilter;
+class vtkAlgorithmOutput;
 
 #ifdef WIN32
 #pragma warning ( disable:4251 )
@@ -79,7 +80,12 @@ class SVTK_EXPORT SVTK_DeviceActor: public vtkLODActor
   //! Allows to set initial #vtkDataSet
   virtual
   void
-  SetInput(vtkDataSet* theDataSet); 
+  SetInputData(vtkDataSet* theDataSet); 
+
+  //! Allows to set initial #vtkAlgorithmOutput
+  virtual
+  void
+  SetInputConnection(vtkAlgorithmOutput* theAlgorithmOutput); 
 
   /** @name For selection mapping purpose */
   //@{