X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxMaracas_N_ViewersWidget.cxx;h=5fe704df34b3df6fd0bb6552f645e6ee579c5e6d;hb=22f291ff6afce66933c2a8fe97097692680d186b;hp=ed4001b153edb3f1896b98ab3b283a5507ef475e;hpb=3d8f194f91b97f9fa8cc3b5a78a1d297f83fc107;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.cxx index ed4001b..5fe704d 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.cxx @@ -76,18 +76,14 @@ wxwindow4 = NULL; _currentwxw = NULL; mvtkmprbasedata = NULL; - wxSizer *sizer = new wxBoxSizer(wxVERTICAL); this->SetSizer(sizer); this->SetAutoLayout(true); - - - if(imagedata!=NULL && nTypeView!=NULL ){ + if(imagedata!=NULL && nTypeView!=NULL ) + { this->SetType(nTypeView); this->UpdateLayout(imagedata); } - - } /** * @pre A wxWindow* object must be provided as a parent for the viewer and the type of layout for the viewer @@ -179,7 +175,6 @@ void wxMaracas_N_ViewersWidget::RefreshView() { - if (wxwindow1!=NULL) {wxwindow1->RefreshView(); } if (wxwindow2!=NULL) {wxwindow2->RefreshView(); } if (wxwindow3!=NULL) {wxwindow3->RefreshView(); } @@ -318,7 +313,6 @@ //this->Layout(); //this->Refresh(); - // I don't undestand how this works and not the opposite ... if (wxwindow4!=NULL) {wxwindow4->ConfigureVTK(); } if (wxwindow3!=NULL) {wxwindow3->ConfigureVTK(); } @@ -341,7 +335,6 @@ if (wxwindow2!=NULL) { wxwindow2->SetImage(image); } if (wxwindow3!=NULL) { wxwindow3->SetImage(image); } if (wxwindow4!=NULL) { wxwindow4->SetImage(image); } - // ConfigureVTK(); } @@ -438,3 +431,12 @@ void wxMaracas_N_ViewersWidget::SetColorWindowLevel(double colorWindow, double c RefreshView(); } +//----------------------------------------------------------------------------------- +void wxMaracas_N_ViewersWidget::SetInterpolate(bool interpolate) +{ + mvtkmprbasedata->SetInterpolate(interpolate); + RefreshView(); +} + + +