X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtkClipping3DView.cxx;h=b41609ebcb2fb5cc3928edadecd3cf5ef7ab158a;hb=255f774ce4100c0b84e6b5efa5c64d0db77f8a61;hp=6172e1deccc61e81d1d13a96305a8d62eddedb55;hpb=2ee213ddb39ae803798099822478e210a6bf0d57;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx index 6172e1d..b41609e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx @@ -168,14 +168,11 @@ void wxVtkClipping3DView::Configure() _wxvtk3Dbaseview->Configure(); // Actors are added to the renderer. - _wxvtk3Dbaseview->GetRenderer()->AddActor( _vtkclipping3Ddataviewer->GetOutlineActor() ); _boxWidgetS1 = vtkBoxWidget::New(); _boxWidgetS1->SetInteractor( _wxvtk3Dbaseview->GetWxVTKRenderWindowInteractor() ); _boxWidgetS1->SetPlaceFactor(1.25); - - vtkStripper *stripper=_vtkclipping3Ddataviewer->GetTissueStripper(0); vtkPolyData *polydata= stripper->GetOutput(); @@ -183,6 +180,7 @@ void wxVtkClipping3DView::Configure() #if VTK_MAJOR_VERSION <= 5 _boxWidgetS1->SetInput( polydata ); #else + stripper->Update(); _boxWidgetS1->SetInputData( polydata ); #endif @@ -266,6 +264,7 @@ void wxVtkClipping3DView::Configure() _vtkclipping3Ddataviewer->SetRenderer(this->GetWxvtk3Dbaseview()->GetRenderer()); _vtkclipping3Ddataviewer->SetInteractor(this->GetWxvtk3Dbaseview()->GetWxVTKRenderWindowInteractor()); } + //------------------------------------------------------------------- void wxVtkClipping3DView::SetVtkClipping3DDataViewer(vtkClipping3DDataViewer *vtkclipping3Ddataviewer) {