]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfMainPanel.cxx
no message
[creaContours.git] / lib / Interface_Icons_NDimensions / interfMainPanel.cxx
index 14f0f5acb86fe89480b5eede639feea735b3cfc3..1d4bdfc5d54dad71dfb0ec78dcc0e20b770df102 100644 (file)
@@ -409,10 +409,6 @@ int interfMainPanel::GetImageDataSizeZ(){
        return wxContourMainFrame::getInstance()->GetImageDataSizeZ();
 }
 
-void interfMainPanel::GetImageDataRange(double *range){
-       wxContourMainFrame::getInstance()->GetImageDataRange(range);
-}
-
 void interfMainPanel::onSegmentationAllSlice(int minZ,int maxZ,int isovalue,int sampling,int method){
        wxContourMainFrame::getInstance()->onSegmentationAllSlice(minZ, maxZ,isovalue,sampling,method);
 }
@@ -561,10 +557,10 @@ void interfMainPanel::setStringSpread(std::string stringtemp){
 
 void interfMainPanel::onInformationPressed(){
        if(infoWin ==NULL){
-               infoWin                                         = new wxFrame (this, -1,_T("  Spread  "), wxDefaultPosition, wxDefaultSize, wxFRAME_TOOL_WINDOW|wxSYSTEM_MENU | wxCAPTION |  wxCLIP_CHILDREN |wxFRAME_FLOAT_ON_PARENT | wxRESIZE_BORDER  );
-               infoWin->SetSize( wxSize(500,450) );
+               infoWin                                         = new wxFrame (this, -1,_T("  Statistics  "), wxDefaultPosition, wxDefaultSize, wxFRAME_TOOL_WINDOW|wxSYSTEM_MENU | wxCAPTION |  wxCLIP_CHILDREN |wxFRAME_FLOAT_ON_PARENT | wxRESIZE_BORDER  );
+               infoWin->SetSize( wxSize(825,650) );
                
-               wxSize sizepanel(200,300);
+               wxSize sizepanel(825,675);
                informationPanel                                                                        = new interfInformationPanel(infoWin);//contourevent->getInformationPanel(infoWin);
 
                wxBoxSizer * sizerPanel         = new wxBoxSizer(wxHORIZONTAL);
@@ -627,8 +623,11 @@ void interfMainPanel::setColLableInfoPanel(int tmpIntB,wxString tmpTitleString){
 
 }
 
-void interfMainPanel::onSaveResults(std::string directory,std::string namefile, std::string filename, int typeContourGroup){
-       wxContourMainFrame::getInstance()->onSaveResults(directory, namefile,filename, typeContourGroup);
+void interfMainPanel::onSaveResults(std::string directory,std::string namefile, std::string filename, 
+                                                                       int typeContourGroup, bool XYZValues, bool contourImage, bool statistics)
+{
+       wxContourMainFrame::getInstance()->onSaveResults(directory, namefile, filename, 
+               typeContourGroup, XYZValues, contourImage, statistics);
 }
 
 wxString interfMainPanel::getCellValue(int j,int i){
@@ -705,17 +704,17 @@ void interfMainPanel::onMirrorChangeWidth(int width)
 }
 
 
-void interfMainPanel::onThreshold(int minVal, int maxVal)
+void interfMainPanel::onThreshold()
 {
-       wxContourMainFrame::getInstance()->onThreshold(minVal, maxVal);
+       wxContourMainFrame::getInstance()->onThreshold();
 }
 
-void interfMainPanel::onThresholdChange(int minVal, int maxVal)
+void interfMainPanel::onThresholdChange()
 {
-       wxContourMainFrame::getInstance()->onThresholdChange(minVal, maxVal);
+       wxContourMainFrame::getInstance()->onThresholdChange();
 }
 
-void interfMainPanel::onThresholdInstantChange(int range[])
+void interfMainPanel::onThresholdInstantChange(double range[])
 {
        panelThreshold->onThresholdInstantChange(range);
 }
@@ -757,3 +756,9 @@ void interfMainPanel::onThresholdPressed()
        showPanel(thresholdPanel);
 }
 
+void interfMainPanel::ShowResultImages(int typeContourGroup)
+{
+       wxContourMainFrame::getInstance()->ShowResultImages(typeContourGroup);
+}
+
+