_lineBActor = NULL;
_lineBMapper = NULL;
_pdB = NULL;
+ _interactorstylemprview = NULL;
}
//-------------------------------------------------------------------
void wxVtkMPR2DView::Configure(){
wxVtk2DBaseView::Configure();
- _interactorstylemprview = new vtkInteractorStyleMPRView();
- ((vtkInteractorStyleBaseView*)GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _interactorstylemprview );
+ if(_interactorstylemprview==NULL)
+ {
+ _interactorstylemprview = new vtkInteractorStyleMPRView();
+ ((vtkInteractorStyleBaseView*)GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _interactorstylemprview );
+ }
+
+
int x1,x2,y1,y2,z1,z2;
GetVtkmprbasedata() -> GetDimensionExtention(&x1,&x2,&y1,&y2,&z1,&z2);