]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfMainPanel.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_Icons_NDimensions / interfMainPanel.cxx
index 5e5f84f10c089db4ca911d508460b0baa43755f7..f3e4129201d23b8f60606f60631d0ce3b78a908c 100644 (file)
@@ -35,6 +35,7 @@ interfMainPanel::interfMainPanel(wxWindow * parent, int sizex, int sizey, wxEvtH
        mirrorPanel             = NULL;
        thresholdPanel          = NULL;
        currentWindow           = NULL;
+       testPanel = NULL;
 
 //CMRU 17-08-09 ------------------------------------------------------------------
        infoPanelCalibration = NULL;
@@ -434,6 +435,32 @@ void interfMainPanel::onSave()
        wxContourMainFrame::getInstance()->onSave();
 }
 
+void interfMainPanel::onImport(){
+       wxContourMainFrame::getInstance()->onImport();
+}
+
+void interfMainPanel::onTest(){
+       if(testPanel==NULL)
+       {
+               testPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, 
+                       wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
+               wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);    
+               testPanel->SetSizer(flexsizer, true);
+               testPanel->SetAutoLayout( true );       
+               panelTest = new interfTestPanel(testPanel);
+
+               wxStaticText* stattext = new wxStaticText(mirrorPanel,  -1, 
+                       wxString(_T("   Test Panel   ")), 
+                       wxDefaultPosition, wxDefaultSize, 
+                       wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
+
+               flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
+               flexsizer->Add(panelTest, wxEXPAND);
+               testPanel->Layout();
+               showPanel(testPanel);
+       }       
+}
+
 void interfMainPanel::RefreshInterface()
 {
        wxContourMainFrame::getInstance()->RefreshInterface();
@@ -755,6 +782,11 @@ void interfMainPanel::setColLableInfoPanel(int tmpIntB,wxString tmpTitleString)
 
 }
 
+void interfMainPanel::SetScalarRange(int grayRangeMin,int grayRangeMax)
+{
+       wxContourMainFrame::getInstance()->SetScalarRange(grayRangeMin, grayRangeMax); 
+}
+
 void interfMainPanel::onSaveResults(std::string directory,std::string namefile, std::string filename, 
                                                                        int typeContourGroup, int selection, int minZ, int maxZ ,bool XYZValues, bool contourImage, bool statistics)
 {