+ if(_boxWidgetS1){
+
+ _boxWidgetS1 = vtkBoxWidget::New();
+ _boxWidgetS1->SetInteractor( interactor );
+ _boxWidgetS1->SetPlaceFactor(1.25);
+
+ _boxWidgetS1->SetInput( this->_imagedata );
+ _boxWidgetS1->PlaceWidget();
+ //_boxWidgetS1->AddObserver( vtkCommand::InteractionEvent , _vtkclipping3Ddataviewer->GetObserverS(i) );
+ _boxWidgetS1->HandlesOn ();
+ _boxWidgetS1->Off();
+
+ vtkStripper* striper = vtkStripper::New();
+ striper->SetInput( _cleanFilter->GetOutput() );
+ //striper->SetInput( _cubesFilter->GetOutput() );
+
+ striper->Update();
+ _boxWidgetS1->SetInput(striper->GetOutput());
+ _boxWidgetS1->PlaceWidget();
+
+ _tissuePlanes = vtkPlanes::New();
+
+ int x1,x2,y1,y2,z1,z2;
+ this->_imagedata->GetExtent(x1,x2,y1,y2,z1,z2);
+ _tissuePlanes->SetBounds (x1,x2,y1,y2,z1,z2);
+
+ _boxWidgetS1->GetPlanes( _tissuePlanes );
+
+ _tissueClipper = vtkClipPolyData::New();
+ _tissueClipper->SetInput( striper->GetOutput() );
+ _tissueClipper->SetClipFunction( _tissuePlanes );
+ _tissueClipper->InsideOutOn( );
+ _dataMapper->SetInput( _tissueClipper->GetOutput() );
+
+ }else{
+ _dataMapper->SetInput(_cleanFilter->GetOutput());
+
+ }
+ vtkActor* dataActor = vtkActor::New();
+ dataActor->SetMapper(_dataMapper);