mirrorPanel = NULL;
thresholdPanel = NULL;
currentWindow = NULL;
+ testPanel = NULL;
//CMRU 17-08-09 ------------------------------------------------------------------
infoPanelCalibration = NULL;
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();
}
+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)
{