]> Creatis software - bbtkGEditor.git/commitdiff
#3114 bbGEditor Bug New Normal - branch vtk7itk4 compilation with vtk7 vtk7itk4
authorEduardo DAVILA <davila@localhost.localdomain>
Mon, 7 Aug 2017 14:45:20 +0000 (16:45 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Mon, 7 Aug 2017 14:45:20 +0000 (16:45 +0200)
lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGBlackBoxView.cxx
lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGBoxView.cxx
lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGComplexBoxPortView.cxx
lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGPortView.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx

index c5effa8ab9a3b4dbbf094f664622440b7205f7be..15c1f19aa7f7cf719b70a8adb633e8212dd59d6d 100644 (file)
@@ -183,7 +183,16 @@ namespace bbtk
                strip->InsertCellPoint(3);
                pdFill->SetPoints( _pts );
                pdFill->SetStrips( strip );
+
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                _fillPolyMapper->SetInput(pdFill);
+#else
+               _fillPolyMapper->SetInputData(pdFill);
+#endif
+
+
                _fillObjectActor->SetMapper(_fillPolyMapper);
                _fillPolyMapper->Modified();
                ///************************* FILL *************************
index a8789d779f407038f2ff23a1107a7667307b8a75..4c6c7ee6d00d2f5ffc7b9096cc47112f017179d2 100644 (file)
@@ -136,7 +136,14 @@ namespace bbtk
 
                pdTrianglesInputs->SetPoints( _TrianglesInputsPts );
                pdTrianglesInputs->SetStrips( stripTrianglesInputs );
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                _TrianglesInputsPolyMapper->SetInput( pdTrianglesInputs );
+#else
+               _TrianglesInputsPolyMapper->SetInputData( pdTrianglesInputs );
+#endif
+
                _TrianglesInputsActor->SetMapper(_TrianglesInputsPolyMapper);
                _TrianglesInputsPolyMapper->Modified();
 
@@ -174,7 +181,14 @@ namespace bbtk
                pdTrianglesOutputs->GetCellData()->SetScalars( _cellDataOutputTriangles );
                pdTrianglesOutputs->SetPoints( _TrianglesOutputsPts );
                pdTrianglesOutputs->SetStrips( stripTrianglesOutputs );
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                _TrianglesOutputsPolyMapper->SetInput( pdTrianglesOutputs );
+#else
+               _TrianglesOutputsPolyMapper->SetInputData( pdTrianglesOutputs );
+#endif
+
                _TrianglesOutputsActor->SetMapper(_TrianglesOutputsPolyMapper);
                _TrianglesOutputsPolyMapper->Modified();
                ///************************* Inputs Fill (triangles) *************************
@@ -243,7 +257,12 @@ namespace bbtk
                pdFill->SetPoints( _pts );
                pdFill->SetStrips( strip );
 
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                _fillPolyMapper->SetInput(pdFill);
+#else
+               _fillPolyMapper->SetInputData(pdFill);
+#endif
                _fillObjectActor->SetMapper(_fillPolyMapper);
                _fillPolyMapper->Modified();
 
index c104877ee2323d20b052c260c9cd457d480bb541..902a2478cda2bd16bc122c7411f4ea50f74a39f4 100644 (file)
@@ -159,7 +159,15 @@ namespace bbtk {
         strip->InsertCellPoint( 3 ) ;
         pdFill->SetPoints( _pts ) ;
         pdFill->SetStrips( strip ) ;
+
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
         _fillPolyMapper->SetInput( pdFill ) ;
+#else
+        _fillPolyMapper->SetInputData( pdFill ) ;
+#endif
+
         _fillObjectActor->SetMapper( _fillPolyMapper ) ;
         _fillPolyMapper->Modified( ) ;
         ///************************* FILL *************************
index cd2332fb16a170b9ad4c62a376631b516e75d772..9376a6710e1a4bd1f6920469db53a0184de15feb 100644 (file)
@@ -138,7 +138,13 @@ namespace bbtk {
         pdFill->SetPoints( _pts ) ;
         pdFill->SetStrips( strip ) ;
 
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
         _fillPolyMapper->SetInput( pdFill ) ;
+#else
+        _fillPolyMapper->SetInputData( pdFill ) ;
+#endif
+
         _fillObjectActor->SetMapper( _fillPolyMapper ) ;
         _fillPolyMapper->Modified( ) ;
 
index 731585d7ac15b80496e0cc030a37f53f072113f2..3832cf231ac44fa8328af02830be11bafc8bb440 100644 (file)
@@ -213,7 +213,15 @@ void wxVtkSceneManager::configureBaseView()
                        aPolygon->GetPointIds());
        aPolygonGrid->SetPoints(_pts);
        _aPolygonMapper = vtkDataSetMapper::New();
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
        _aPolygonMapper->SetInput(aPolygonGrid);
+#else
+       _aPolygonMapper->SetInputData(aPolygonGrid);
+#endif
+
+
        _fillObjectActor->SetMapper(_aPolygonMapper);
        _fillObjectActor->GetProperty()->SetColor(PORTFILL_NH_R, PORTFILL_NH_G,
                        PORTFILL_NH_B);