- vtkimagedata->UpdateInformation();
- vtkimagedata->SetUpdateExtent(vtkimagedata->GetWholeExtent());
- vtkimagedata->Update();
- vtkImageData _data = vtkimagedata;
- _data->GetSpacing(spc);
- //_vtkbasedata_1 = new vtkBaseData();
- //_vtkbasedata_1->SetMarImageData(marimagedata);
- //_imageviewer2D_1->SetVtkBaseData( _vtkbasedata_1 );
- //_imageviewer2D_1->Configure();
-
-
- // Contorno 1
- manualContourControler _manContourControl_1 = new manualContourControler();
- manualContourModel _mContourModel_1 = new manualContourModel();
- manualViewContour _mViewContour_1 = new manualViewContour();
- _mViewContour_1->SetModel( _mContourModel_1 );
-// _mViewContour_1->SetWxVtkBaseView( _imageviewer2D_1 );
- _mViewContour_1->SetRange( 2 );
- _mViewContour_1->SetZ( 1200 );
-
-
-//EED 3 oct 2006
- _mViewContour_1->SetSpacing(spc);
-
-
-//EED 3 oct 2006
- _mViewContour_1->SetColorNormalContour(0, 0, 1);
- _mViewContour_1->SetColorEditContour(0, 0.5, 0.5);
-
- _manContourControl_1->SetModelView( _mContourModel_1 , _mViewContour_1 );
-// _imageviewer2D_1->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _manContourControl_1 );
- _manContourControl_1->CreateNewManualContour();
- _manContourControl_1->SetActive(false);
- _mViewContour_1->RefreshContour();
-
- // Rectangulo
-// _manRoiControl = new manualRoiControler();
-// _mContourModel = new manualContourModel();
-// _mViewRoi = new manualViewRoi();
- _mViewRoi->SetModel( _mContourModel );
- _mViewRoi->SetWxVtkBaseView( _imageviewer2D_1 );
- _mViewRoi->SetRange( 2 );
- _mViewRoi->SetZ( 1200 );
-
-//EED 3 oct 2006
- _mViewRoi->SetSpacing(spc);
-
-// _manRoiControl->SetModelView( _mContourModel , _mViewRoi );
-// _imageviewer2D_1->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _manRoiControl );
-// _manRoiControl->CreateNewManualContour();
-// _manRoiControl->SetActive(true);
-// _mViewRoi->RefreshContour();
-
-CreateNewPoint( 0,0);
-
- Refresh();