}
//-------------------------------------------------------------------
-wxVtkClipping3DView::~wxVtkClipping3DView(){
+wxVtkClipping3DView::~wxVtkClipping3DView()
+{
if (_boxWidgetVolume!=NULL) { _boxWidgetVolume -> Delete(); }
if (_boxWidgetS1!=NULL) { _boxWidgetS1 -> Delete(); }
if (_vtkclipping3Ddataviewer!=NULL) { delete _vtkclipping3Ddataviewer; }
return _wxvtk3Dbaseview;
}
//-------------------------------------------------------------------
-void wxVtkClipping3DView::Configure(){
+void wxVtkClipping3DView::Configure()
+{
+
_wxvtk3Dbaseview->Configure();
// Actors are added to the renderer.
// the camera towards the FocalPoint, thereby enlarging the image.
_wxvtk3Dbaseview->GetRenderer()->SetActiveCamera(_wxvtk3Dbaseview->GetCamera());
_wxvtk3Dbaseview->GetRenderer()->ResetCamera ();
- _wxvtk3Dbaseview->GetCamera()->Dolly(1.5);
+ _wxvtk3Dbaseview->GetCamera()->Dolly(2);
+
// Set a background color for the renderer and set the size of the
// render window (expressed in pixels).
// near plane clips out objects in front of the plane; the far plane
// clips out objects behind the plane. This way only what is drawn
// between the planes is actually rendered.
- _wxvtk3Dbaseview->GetRenderer()->ResetCameraClippingRange();
+//EEDUPS _wxvtk3Dbaseview->GetRenderer()->ResetCameraClippingRange();
_vtkclipping3Ddataviewer->SetRenderer(this->GetWxvtk3Dbaseview()->GetRenderer());
_vtkclipping3Ddataviewer->SetInteractor(this->GetWxvtk3Dbaseview()->GetWxVTKRenderWindowInteractor());
+
}
//-------------------------------------------------------------------
void wxVtkClipping3DView::SetVtkClipping3DDataViewer(vtkClipping3DDataViewer *vtkclipping3Ddataviewer)