]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfSegmentationPanels.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_Icons_NDimensions / interfSegmentationPanels.cxx
index e5df466af2f587ea4830d8da9af6de88f033fc05..cc424a5d818c929211a319c902bc04021c650c2a 100644 (file)
@@ -99,11 +99,6 @@ void  interfSegmentationPanelVTK::onSegmentationPressedITK(wxCommandEvent& event
        //axisshown = true;
 }
 
-void  interfSegmentationPanelVTK::onSnakePressed(wxCommandEvent& event){
-    
-       //contourevent->onSnakePressed(this);
-
-}
 void interfSegmentationPanelVTK::onSegmentationOneSlice( wxCommandEvent& event )
 {
 
@@ -147,6 +142,10 @@ interfSegmentationPanelITK::interfSegmentationPanelITK(wxWindow * parent)
 
        wxButton *segmentationOneSliceBtn       = new wxButton(this,-1,_T("Current slice"), wxDefaultPosition, wxSize(200,35) );
        wxButton *segmentationAllSliceBtn       = new wxButton(this,-1,_T("All slices") ,wxDefaultPosition, wxSize(200,35) );
+
+       Connect( segmentationOneSliceBtn->GetId(),   wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfSegmentationPanelITK::onSegmentationOneSlice); 
+       Connect( segmentationAllSliceBtn->GetId(),   wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfSegmentationPanelITK::onSegmentationAllSlice); 
+
        _isovalue                                                       = new wxSlider(this, -1, 40 , (int)(range[0]), (int)(range[1]), wxDefaultPosition, wxSize(200,35), wxSL_HORIZONTAL|wxSL_LABELS, wxDefaultValidator);
        _sampling                                                       = new wxSlider(this, -1, 20 , 4, 50, wxDefaultPosition, wxSize(200,35), wxSL_HORIZONTAL|wxSL_LABELS, wxDefaultValidator);
        wxString lstOptions[3];
@@ -193,6 +192,31 @@ interfSegmentationPanelITK::interfSegmentationPanelITK(wxWindow * parent)
 }
 interfSegmentationPanelITK::~interfSegmentationPanelITK(){
 
+}
+
+void interfSegmentationPanelITK::onSegmentationOneSlice( wxCommandEvent& event )
+{
+
+
+       /*int                           isovalue        = _isovalue->GetValue();
+       int                             sampling        = _sampling->GetValue();
+       int method = methodRadiobox->GetSelection();
+       interfMainPanel::getInstance()->onSegmentationOneSlice(isovalue, sampling, method);*/
+       
+}
+void interfSegmentationPanelITK::onSegmentationAllSlice( wxCommandEvent& event )
+{
+
+       /*int minZ=_mbarrange->GetStart();
+       int maxZ=_mbarrange->GetEnd();
+
+       int                             isovalue        = _isovalue->GetValue();
+       int                             sampling        = _sampling->GetValue();
+       int method = methodRadiobox->GetSelection();
+
+
+       interfMainPanel::getInstance()->onSegmentationAllSlice(minZ, maxZ, isovalue, sampling, method);*/
+       
 }
 //------------------------------------------------------------------------------------------------------------