#include "ContourVOIWidget.h"
+#include "manualContourModelRoi.h"
#include <vtkImageMapToColors.h>
#include <vtkImageActor.h>
+#include "wxVtk2DBaseView.h"
//-------------------------------------------------------------------
}
void wxWidgetSliderMinMaxVOI :: onActualChange_Bar(wxCommandEvent& event)
{
+std::cout << "wxWidgetSliderMinMaxVOI ::onActualChange_Bar" << std::endl;
wxVtk2DBaseView *wxvtk2dbaseview = (wxVtk2DBaseView*)mcontourtool->GetWxVtkBaseView();
wxvtk2dbaseview->GetVtkBaseData()->SetZ(modBarRange->GetActual());
wxvtk2dbaseview->Refresh();
}
void wxWidgetSliderMinMaxVOI :: onStartChange_Bar(wxCommandEvent& event)
{
+std::cout << "wxWidgetSliderMinMaxVOI ::onStartChange_Bar" << std::endl;
wxVtk2DBaseView *wxvtk2dbaseview = (wxVtk2DBaseView*)mcontourtool->GetWxVtkBaseView();
wxvtk2dbaseview->GetVtkBaseData()->SetZ(modBarRange->GetStart());
wxvtk2dbaseview->Refresh();
}
void wxWidgetSliderMinMaxVOI :: onEndChange_Bar(wxCommandEvent& event)
{
+std::cout << "wxWidgetSliderMinMaxVOI ::onEndChange_Bar" << std::endl;
wxVtk2DBaseView *wxvtk2dbaseview = (wxVtk2DBaseView*)mcontourtool->GetWxVtkBaseView();
wxvtk2dbaseview->GetVtkBaseData()->SetZ(modBarRange->GetEnd());
wxvtk2dbaseview->Refresh();
// Rectangulo
_manRoiControl = new manualRoiControler();
- _mContourModel = new manualContourModel();
+ _mContourModel = new manualContourModelRoi();
_mViewRoi = new manualViewRoi();
_mViewRoi->SetModel( _mContourModel );
_mViewRoi->SetWxVtkBaseView( this->wxvtkbaseview );
_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();