]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfToolsPanels.cxx
no message
[creaContours.git] / lib / Interface_Icons_NDimensions / interfToolsPanels.cxx
index 5b2b1c29b241c53dceda1b6d718795c17a46899a..a93ae0ac3de1118b2706233fcc699ccf16c0d35e 100644 (file)
@@ -189,15 +189,19 @@ interfInformationPanel::interfInformationPanel(wxWindow * parent)
        lstOptions[0]=_T("Current Slice");
        lstOptions[1]=_T("Range Slices");
 //     lstOptions[2]=_T("All Slices");
-       _informationRadiobox                                                    = new wxRadioBox(this, -1, _T("Slice analysis"), wxDefaultPosition, wxSize(270,45), 2 , lstOptions,  2, wxRA_SPECIFY_COLS);
+       _informationRadiobox                                                    = new wxRadioBox(this, -1, _T("Slice analysis"), wxDefaultPosition, wxSize(270,45), 2 , lstOptions,  2, wxRA_SPECIFY_COLS);     
 
+       
        wxString lstOptContOperation[5];
        lstOptContOperation[0]=_T("AND");
        lstOptContOperation[1]=_T("OR");
        lstOptContOperation[2]=_T("XOR");
        lstOptContOperation[3]=_T("ALL");
        _radiolstboxContourGroup                                                = new wxRadioBox(this, -1, _T("Contour group"), wxDefaultPosition, wxSize(270,45), 4 , lstOptContOperation,  4, wxRA_SPECIFY_COLS);
-
+       _radiolstboxContourGroup->SetSelection(1);
+       Connect( _radiolstboxContourGroup->GetId(), wxEVT_COMMAND_RADIOBOX_SELECTED , (wxObjectEventFunction) &interfInformationPanel::onContourGroup );
+       
+       
        _XYZValues = new wxCheckBox(this, -1, _T("Save Contour Values") );
        _XYZValues->SetValue(true);
 
@@ -440,3 +444,14 @@ wxString interfInformationPanel::getCellValue(int j,int i){
        return _grid->GetCellValue( j , i );
 }
 
+void interfInformationPanel::onContourGroup(wxCommandEvent& event)
+{
+       printf("EED interfInformationPanel::onContourGroup \n");
+       int contourGroup=_radiolstboxContourGroup->GetSelection();
+       if (contourGroup==3)
+       {
+               contourGroup=0;
+       }
+       interfMainPanel::getInstance()->SetContourGroup( _radiolstboxContourGroup->GetSelection() );    
+}
+