]> Creatis software - creaMaracasVisu.git/commitdiff
*** empty log message ***
authorJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Thu, 14 May 2009 14:02:57 +0000 (14:02 +0000)
committerJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Thu, 14 May 2009 14:02:57 +0000 (14:02 +0000)
lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourCrownWidget.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourVOIWidget.cxx

index 8ce8e8e790fa5b27c6ce429f7850b9d022362fd6..7cb3ac572f084c2cdc082346bb30f172866dbbc2 100644 (file)
@@ -4,7 +4,7 @@
 #include <vtkImageMapToColors.h>
 #include <vtkImageActor.h>
 
-
+#include "wxVtk2DBaseView.h"
 
 //----------------------------------------------------------------------
   wxMaracasCoutourTool::wxMaracasCoutourTool(wxWindow *parent, wxVtkBaseView *wxvtkbaseview, vtkImageData* imagedata)
 
 
        _manContourControl_1->SetModelView( _mContourModel_1 , _mViewContour_1 );
-       this->wxvtkbaseview->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _manContourControl_1 );
+       ((vtkInteractorStyleBaseView*)this->wxvtkbaseview->GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _manContourControl_1 );
        _manContourControl_1->CreateNewManualContour();
        _manContourControl_1->SetActive(false);
        _mViewContour_1->RefreshContour();
 
 
        _manContourControl_2->SetModelView( _mContourModel_2 , _mViewContour_2 );
-       this->wxvtkbaseview->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _manContourControl_2 );
+       ((vtkInteractorStyleBaseView*)this->wxvtkbaseview->GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _manContourControl_2 );
        _manContourControl_2->CreateNewManualContour();
        _manContourControl_2->SetActive(false);
        _mViewContour_2->RefreshContour();
index efe28c358cde23b07800d0da339ea32fee1ad043..2f4f89097776a3760c038cee2c4a83e9517958af 100644 (file)
@@ -4,6 +4,7 @@
 #include <vtkImageMapToColors.h>
 #include <vtkImageActor.h>
 
+#include "wxVtk2DBaseView.h"
 
 
 //-------------------------------------------------------------------
@@ -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();