X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuImageActor.cxx;h=c016625aaa4adce9f58c5b179487733cf7e057f6;hb=4b2a99534d79424c7892e09160a1488604741064;hp=fb2df56c67176eedda5687e2f11db4be6c6d8965;hpb=a906c7009b5c3c2ef5263f4d84ba13be7d4549ff;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuImageActor.cxx b/bbtk/src/bbmaracasvisuImageActor.cxx index fb2df56..c016625 100644 --- a/bbtk/src/bbmaracasvisuImageActor.cxx +++ b/bbtk/src/bbmaracasvisuImageActor.cxx @@ -40,9 +40,6 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ImageActor) BBTK_BLACK_BOX_IMPLEMENTATION(ImageActor,bbtk::AtomicBlackBox); void ImageActor::Process() { - -printf("EED ImageActor::Process Start\n"); - //JCP 04/04/09 vtkRenderer *render = bbGetInputRenderer(); vtkImageData *img = bbGetInputIn(); @@ -130,6 +127,7 @@ vtkLookupTable *table = vtkLookupTable::New(); imageactor->GetMapper()->SetInput( color->GetOutput() ); #else color->SetInputData( img ); + color->Update(); imageactor->GetMapper()->SetInputData( color->GetOutput() ); #endif imageactor->GetProperty()->SetInterpolationTypeToNearest(); @@ -145,23 +143,17 @@ vtkLookupTable *table = vtkLookupTable::New(); } // render bbSetOutputOut(imageactor); } // img - - + // Interface Update if ((firsttime==true) && (bbGetInputRenderer()!=NULL )) { firsttime=false; bbGetInputRenderer()->AddActor( imageactor ); } - imageactor->GetProperty()->SetOpacity( bbGetInputOpacity() ); - bbSetOutputOut(imageactor); - - -printf("EED ImageActor::Process End\n"); - - + bbSetOutputOut(imageactor); } + void ImageActor::bbUserSetDefaultValues() { firsttime = true;