X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtk3DBaseView.cxx;h=75d6c1e7a346018d19f30492560f01ee9c6ff113;hb=4dcdcabb81ce9f9e9b7ccdb86a64995d7b18ea23;hp=9d92c225526295afd8d36d392e09c339d3e1f7df;hpb=d341ae08f29d0b48044dcee9b4d7399c4b895e52;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx index 9d92c22..75d6c1e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx @@ -30,22 +30,24 @@ #ifdef _DEBUG #define new DEBUG_NEW #endif -wxVtk3DBaseView::wxVtk3DBaseView(wxWindow *parent) +wxVtk3DBaseView::wxVtk3DBaseView(wxWindow *parent, vtkBaseData* vtkbasedata) :wxVtkBaseView( parent ) { + SetVtkBaseData( vtkbasedata ); _configure = false; _aRenderer = NULL; _renWin = NULL; - _aCamera = NULL; + _aCamera = NULL; } //------------------------------------------------------------------- wxVtk3DBaseView::~wxVtk3DBaseView() { - if (_aCamera!=NULL) { _aCamera -> Delete(); _aCamera=NULL;} + if (_aCamera!=NULL) { _aCamera -> Delete(); _aCamera=NULL;} if (_aRenderer!=NULL) { _aRenderer -> Delete(); _aRenderer=NULL;} - if (_renWin!=NULL) { - if(_renWin->GetReferenceCount()==0){ + if (_renWin!=NULL) { + if(_renWin->GetReferenceCount()==0) + { _renWin -> Delete(); _renWin=NULL; } } @@ -155,6 +157,12 @@ void wxVtk3DBaseView::Configure() _aRenderer->GradientBackgroundOn(); _aRenderer->SetBackground( 0.33 , 0.33 , 0.33 ); _aRenderer->SetBackground2( 0.66 , 0.66 , 0.66 ); + + + +// _aRenderer->GradientBackgroundOff(); +// _aRenderer->SetBackground(0,0,0 ); + SetStereo(0);