]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourVOIWidget.cxx
.
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / Contour / ContourVOIWidget.cxx
index 854ab1d992eb5f4d2e8c397a1d6c311abafcde8e..f13867d4793addeb0e41a945be5937bdc6d40c61 100644 (file)
@@ -1,9 +1,11 @@
 
 #include "ContourVOIWidget.h"
 
+#include "manualContourModelRoi.h"
 #include <vtkImageMapToColors.h>
 #include <vtkImageActor.h>
 
+#include "wxVtk2DBaseView.h"
 
 
 //-------------------------------------------------------------------
@@ -133,7 +135,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 +146,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();