]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourVOIWidget.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / Contour / ContourVOIWidget.cxx
index 854ab1d992eb5f4d2e8c397a1d6c311abafcde8e..2f4f89097776a3760c038cee2c4a83e9517958af 100644 (file)
@@ -4,6 +4,7 @@
 #include <vtkImageMapToColors.h>
 #include <vtkImageActor.h>
 
+#include "wxVtk2DBaseView.h"
 
 
 //-------------------------------------------------------------------
@@ -133,7 +134,7 @@ std::cout << "wxWidgetSliderMinMaxVOI ::onEndChange_Bar" << std::endl;
        
        // Rectangulo
        _manRoiControl  = new manualRoiControler();
-       _mContourModel  = new manualContourModel();
+       _mContourModel  = new manualContourModelRoi();
        _mViewRoi               = new manualViewRoi();
        _mViewRoi->SetModel( _mContourModel );
        _mViewRoi->SetWxVtkBaseView( this->wxvtkbaseview );
@@ -144,7 +145,7 @@ std::cout << "wxWidgetSliderMinMaxVOI ::onEndChange_Bar" << std::endl;
        _mViewRoi->SetSpacing(spc);
 
        _manRoiControl->SetModelView( _mContourModel , _mViewRoi );
-        this->wxvtkbaseview->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _manRoiControl );
+       ((vtkInteractorStyleBaseView*)this->wxvtkbaseview->GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _manRoiControl );
        _manRoiControl->CreateNewManualContour();
        _manRoiControl->SetActive(true);
        _mViewRoi->RefreshContour();