X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtk2DBaseView.cxx;h=fa26572f836005c976c57b10cc5bea4c9cd68c40;hb=28c74ab5eb531ce001260e9bc3fcb0151fcfc56b;hp=a7a406ba828a7bc7c37e7f113559bcabf52f4291;hpb=6e940f8b87d85a90438f01d56c3c6c92da2bc14a;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.cxx index a7a406b..fa26572 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.cxx @@ -244,5 +244,17 @@ void wxVtk2DBaseView::GetSpacing(double spc[3]) // virtual void wxVtk2DBaseView::setColorTransferFunction(vtkColorTransferFunction* colortable){ if(_imageViewer2XYZ!=NULL){ _imageViewer2XYZ->setColorTransferFunction(colortable); + this->Refresh(); } } + +void wxVtk2DBaseView::setWindowLevel(double level){ + _imageViewer2XYZ->GetVtkImageViewer2()->SetColorWindow(level); + + this->Refresh(); +} + +void wxVtk2DBaseView::setColorLevel(double level){ + _imageViewer2XYZ->GetVtkImageViewer2()->SetColorLevel(level); + this->Refresh(); +}