X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuViewerNV.cxx;h=a1910174557d31e4535b4e197d6561879810996b;hb=d1de4d9e4121e4602daf11142cbc4b03c386d98a;hp=1b17eec7de9729c10600818c5b9b863ff014f6c8;hpb=0780b53e8b105636030b2c9fcbbc423d8ed48c30;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuViewerNV.cxx b/bbtk/src/bbmaracasvisuViewerNV.cxx index 1b17eec..a191017 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.cxx +++ b/bbtk/src/bbmaracasvisuViewerNV.cxx @@ -86,17 +86,8 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ViewerNV,bbtk::WxBlackBox); void ViewerNV::Process() { vtkImageData* img = bbGetInputIn(); -/* - double spc[3]; - img->GetSpacing(spc); - printf ("EED ViewerNV::Process A %f %f %f \n", spc[0], spc[1], spc[2] ); - img->SetSpacing( 1,1,1 ); - img->Update( ); - img->GetSpacing(spc); - img->PrintSelf(std::cout,(vtkIndent)2); - img->Print(std::cout); - printf ("EED ViewerNV::Process B %f %f %f \n", spc[0], spc[1], spc[2] ); -*/ + + std::vector type = bbGetInputnTypeView(); @@ -107,11 +98,10 @@ void ViewerNV::Process() }else if (img != _currentimg){ _mwxwidget->SetImage(img); } - _mwxwidget->RefreshView(); - _currenttype = type; - _currentimg = img; + _currenttype = type; + _currentimg = img; _point.clear(); _point.push_back((int)_mwxwidget->GetX());