_theViewPanel = NULL;
// _modelManager = NULL;
_instantPanel = NULL;
- _buttonsBar = NULL;
- _gridPanel = NULL;
- _drawToolsPanel = NULL;
- _operationsToolsPanel = NULL;
- _autoFormsPanel = NULL;
- _standardToolsPanel = NULL;
- _editionToolsPanel = NULL;
- _listViewPanel = NULL;
- _sceneManager = NULL;
+// _buttonsBar = NULL;
+// _gridPanel = NULL;
+// _drawToolsPanel = NULL;
+// _operationsToolsPanel = NULL;
+ //_autoFormsPanel = NULL;
+// _standardToolsPanel = NULL;
+// _editionToolsPanel = NULL;
+// _listViewPanel = NULL;
+// _sceneManager = NULL;
//_actualInstant = NULL;
_numberOfVariablesStatistics = 6+1;
// set up default notebook style
- m_notebook_style =wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_EXTERNAL_MOVE | wxNO_BORDER;
- m_notebook_theme = 0;
+// m_notebook_style =wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_EXTERNAL_MOVE | wxNO_BORDER;
+// m_notebook_theme = 0;
//wxContour_ActionCommandsID a;
}
_theViewPanel = NULL;
// _modelManager = NULL;
_instantPanel = NULL;
- _buttonsBar = NULL;
- _gridPanel = NULL;
- _drawToolsPanel = NULL;
- _operationsToolsPanel = NULL;
- _autoFormsPanel = NULL;
- _standardToolsPanel = NULL;
- _editionToolsPanel = NULL;
- _listViewPanel = NULL;
- _sceneManager = NULL;
+// _buttonsBar = NULL;
+// _gridPanel = NULL;
+// _drawToolsPanel = NULL;
+// _operationsToolsPanel = NULL;
+// _autoFormsPanel = NULL;
+// _standardToolsPanel = NULL;
+// _editionToolsPanel = NULL;
+// _listViewPanel = NULL;
+// _sceneManager = NULL;
//_actualInstant = NULL;
// set up default notebook style
m_mgr.AddPane(theNoteBook, wxAuiPaneInfo().Name(wxT("notebook_content")).CenterPane().PaneBorder(false));
m_mgr.Update();
- configured &= _buttonsBar!=NULL;
+/* configured &= _buttonsBar!=NULL;
if( _buttonsBar!=NULL )
{
m_mgr.AddPane(_buttonsBar, wxAuiPaneInfo().
ToolbarPane().Top().
LeftDockable( ).RightDockable( false ).CloseButton(false));
m_mgr.Update();
- }
+ }*/
//CreateStatusBar();
SetMinSize(wxSize(300,300));
_instantPanel = theInstantChooserPanel;
}
- void wxContourMainFrame :: setButtonsBar( wxContour_ButtonsBar * theButtonsBar )
- {
- _buttonsBar = theButtonsBar;
- }
+// void wxContourMainFrame :: setButtonsBar( wxContour_ButtonsBar * theButtonsBar )
+// {
+// _buttonsBar = theButtonsBar;
+// }
- void wxContourMainFrame :: setGrid( wxContour_Grid * theGridPanel )
- {
- _gridPanel = theGridPanel;
- }
+// void wxContourMainFrame :: setGrid( wxContour_Grid * theGridPanel )
+// {
+// _gridPanel = theGridPanel;
+// }
- void wxContourMainFrame :: setDrawToolsPanel( wxContour_DrawToolsPanel * theDrawToolsPanel )
- {
- _drawToolsPanel = theDrawToolsPanel;
- }
+// void wxContourMainFrame :: setDrawToolsPanel( wxContour_DrawToolsPanel * theDrawToolsPanel )
+// {
+// _drawToolsPanel = theDrawToolsPanel;
+// }
- void wxContourMainFrame :: setOperationsToolsPanel( wxContour_OperationsToolsPanel * theOperationsToolsPanel )
- {
- _operationsToolsPanel = theOperationsToolsPanel;
- }
+// void wxContourMainFrame :: setOperationsToolsPanel( wxContour_OperationsToolsPanel * theOperationsToolsPanel )
+// {
+// _operationsToolsPanel = theOperationsToolsPanel;
+// }
- void wxContourMainFrame :: setAutomaticFormsPanel( wxContour_AutomaticFormsToolsPanel * theAutoFormsPanel )
- {
- _autoFormsPanel = theAutoFormsPanel;
- }
+// void wxContourMainFrame :: setAutomaticFormsPanel( wxContour_AutomaticFormsToolsPanel * theAutoFormsPanel )
+// {
+// _autoFormsPanel = theAutoFormsPanel;
+// }
- void wxContourMainFrame :: setStandardToolsPanel( wxContour_StandardToolsPanel * theStandardToolsPanel )
- {
- _standardToolsPanel= theStandardToolsPanel;
- }
+// void wxContourMainFrame :: setStandardToolsPanel( wxContour_StandardToolsPanel * theStandardToolsPanel )
+// {
+// _standardToolsPanel= theStandardToolsPanel;
+// }
- void wxContourMainFrame :: setEditionToolsPanel( wxContour_EdtionToolsPanel * theEditionToolsPanel )
- {
- _editionToolsPanel = theEditionToolsPanel;
- }
+// void wxContourMainFrame :: setEditionToolsPanel( wxContour_EdtionToolsPanel * theEditionToolsPanel )
+// {
+// _editionToolsPanel = theEditionToolsPanel;
+// }
- void wxContourMainFrame :: setListViewPanel( wxContour_ListViewPanel * theListViewPanel )
- {
- _listViewPanel = theListViewPanel;
- }
+// void wxContourMainFrame :: setListViewPanel( wxContour_ListViewPanel * theListViewPanel )
+// {
+// _listViewPanel = theListViewPanel;
+// }
vtkImageData* img = kernelManager->getImageAtInstant(inst);
if(img!=NULL){
_theViewPanel->changeImage(img);
+ showAxis(false);
}else{
int z = _instantPanel->getConceptDataOf("Axe Depth")->getActualValue();
_theViewPanel->setImageSlice(z);
if (dialog.ShowModal() == wxID_OK)
{
std::string fileNameContourROI = (const char *)(dialog.GetPath().mb_str());
+ kernelManager->setCurrentFileName(fileNameContourROI);
saveFileWithContours( fileNameContourROI );
}
}
} // if
}
+
+void wxContourMainFrame::saveFileWithContoursAutomatique(){
+ std::string filename = kernelManager->getCurrentFileName();
+ if(filename.compare("")!=0){
+ saveFileWithContours(filename);
+ }else{
+ onSave();
+ }
+}
\ No newline at end of file