X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=packages%2Fvtk%2Fsrc%2FbbvtkVecIsoSurfaceExtractor.cxx;h=2e25383433759e0d7950c4ef2e0051f0f9cc4f9c;hb=72100b5cd3240189ea096777f4088e49c2120ca8;hp=50bf4f64b57d67beaf0dc5815e75bd1faaa5fc77;hpb=08496817108d65c35b386ba63942edb5f9f6cb61;p=bbtk.git diff --git a/packages/vtk/src/bbvtkVecIsoSurfaceExtractor.cxx b/packages/vtk/src/bbvtkVecIsoSurfaceExtractor.cxx index 50bf4f6..2e25383 100644 --- a/packages/vtk/src/bbvtkVecIsoSurfaceExtractor.cxx +++ b/packages/vtk/src/bbvtkVecIsoSurfaceExtractor.cxx @@ -1,3 +1,30 @@ +/* + # --------------------------------------------------------------------- + # + # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image + # pour la SantÈ) + # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton + # Previous Authors : Laurent Guigues, Jean-Pierre Roux + # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil + # + # This software is governed by the CeCILL-B license under French law and + # abiding by the rules of distribution of free software. You can use, + # modify and/ or redistribute the software under the terms of the CeCILL-B + # license as circulated by CEA, CNRS and INRIA at the following URL + # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html + # or in the file LICENSE.txt. + # + # As a counterpart to the access to the source code and rights to copy, + # modify and redistribute granted by the license, users are provided only + # with a limited warranty and the software's author, the holder of the + # economic rights, and the successive licensors have only limited + # liability. + # + # The fact that you are presently reading this means that you have had + # knowledge of the CeCILL-B license and that you accept its terms. + # ------------------------------------------------------------------------ */ + + #include "bbvtkVecIsoSurfaceExtractor.h" #include "bbvtkPackage.h" @@ -107,7 +134,13 @@ BBTK_BLACK_BOX_IMPLEMENTATION(VecIsoSurfaceExtractor,bbtk::AtomicBlackBox); polydatamapper = vtkPolyDataMapper::New(); vtkactor = vtkActor::New(); +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 polydatamapper->SetInput(marchingcubes->GetOutput()); +#else + polydatamapper->SetInputData(marchingcubes->GetOutput()); +#endif + vtkactor->SetMapper(polydatamapper); polydatamapper->ScalarVisibilityOff(); @@ -123,7 +156,13 @@ BBTK_BLACK_BOX_IMPLEMENTATION(VecIsoSurfaceExtractor,bbtk::AtomicBlackBox); marchingcubes=VecMarchingcubes[i]; vtkactor=(vtkActor*)VecVtkactor[i]; +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 marchingcubes->SetInput( bbGetInputIn()[i] ); +#else + marchingcubes->SetInputData( bbGetInputIn()[i] ); +#endif + marchingcubes->SetValue(0, bbGetInputIsovalue() ); marchingcubes->Update();