X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtk3DBaseView.cxx;h=e601235c1bd8365c71b97f8b75ada2c789334f05;hb=e60eea9083457889b9603a815db80af918f983da;hp=ffb634b00944cfca2d1c7e567b5e6e2321b70b25;hpb=a4ee3758aa0477f677fb981e2c4d6e29995e8db8;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx index ffb634b..e601235 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx @@ -14,9 +14,9 @@ wxVtk3DBaseView::wxVtk3DBaseView(wxWindow *parent) //------------------------------------------------------------------- wxVtk3DBaseView::~wxVtk3DBaseView() { - if (_aCamera!=NULL) { _aCamera -> Delete(); } + if (_aCamera!=NULL) { _aCamera -> Delete(); } if (_aRenderer!=NULL) { _aRenderer -> Delete(); } - if (_renWin!=NULL) { _renWin -> Delete(); } + if (_renWin!=NULL) { _renWin -> Delete(); } } //------------------------------------------------------------------- vtkCamera* wxVtk3DBaseView::GetCamera() @@ -51,7 +51,11 @@ void wxVtk3DBaseView::Configure() _renWin = vtkRenderWindow::New(); _renWin->AddRenderer(_aRenderer); - + _aRenderer->GradientBackgroundOn(); + _aRenderer->SetBackground( 0.33 , 0.33 , 0.33 ); + _aRenderer->SetBackground2( 0.66 , 0.66 , 0.66 ); + + // _renWin->SetStereoCapableWindow(1); // // //renderwindow->SetStereoTypeToCrystalEyes(); // _renWin->SetStereoTypeToRedBlue(); @@ -101,4 +105,5 @@ void wxVtk3DBaseView::GetSpacing(double spc[3]) spc[0]=1; spc[1]=1; spc[2]=1; -} \ No newline at end of file +} +