//-------------------------------------------------------------------
vtkImageViewer2_XYZ::~vtkImageViewer2_XYZ()
{
- _vtkimageviewer2->Delete();
+ //_vtkimageviewer2->Delete();
}
//-------------------------------------------------------------------
void vtkImageViewer2_XYZ::SetExtentDimension(int x1,int x2,
//-------------------------------------------------------------------
wxVtkBaseView::~wxVtkBaseView()
{
- _iren -> Delete();
+ // _iren -> Delete();
+ _iren=NULL;
}
//-------------------------------------------------------------------
wxVTKRenderWindowInteractor* wxVtkBaseView::GetWxVTKRenderWindowInteractor() throw (char*)
_vtkIinfoTextImage = NULL;
}
+//EED 5mai2009
//-------------------------------------------------------------------
wxVtk2DBaseView::~wxVtk2DBaseView()
-{
- if (_imageViewer2XYZ!=NULL) {
- delete _imageViewer2XYZ;
- }
-
- if (_imageViewer2XYZ!=NULL) {
+{
+ if (_vtkIinfoTextImage!=NULL)
+ {
delete _vtkIinfoTextImage;
}
+ if (_imageViewer2XYZ!=NULL)
+ {
+ delete _imageViewer2XYZ;
+ }
}
//-------------------------------------------------------------------
_imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
_imageViewer2XYZ->GetVtkImageViewer2()->Render();
-
SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
}
iren->SetInteractorStyle(interactorstylebaseview);
interactorstylebaseview->SetwxVtkBaseView(this);
- vtkMaracasImageViewer2Callback *cbk = vtkMaracasImageViewer2Callback::New();
+ vtkMaracasImageViewer2Callback * cbk = vtkMaracasImageViewer2Callback::New();
cbk->IV = _imageViewer2XYZ->GetVtkImageViewer2();
interactorstylebaseview->AddObserver( vtkCommand::WindowLevelEvent, cbk );
interactorstylebaseview->AddObserver( vtkCommand::StartWindowLevelEvent, cbk );