]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/CutModule/interface/CutModel2MainPanel.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / CutModule / interface / CutModel2MainPanel.cxx
index 5f8cb2df9948c8efd525d62d633e61dfdb8ac241..d2fa53fcad917608b4f63ba2db726492b73a5fec 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: CutModel2MainPanel.cxx,v $
   Language:  C++
-  Date:      $Date: 2009/11/19 17:00:27 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2009/11/23 13:00:20 $
+  Version:   $Revision: 1.5 $
 
   Copyright: (c) 2002, 2003
   License:
@@ -50,7 +50,7 @@ CutModel2MainPanel::~CutModel2MainPanel( ){
 
 void CutModel2MainPanel::initialize(std::string path){
        
-       cutmanager = new CutModelManager(path);
+       cutmanager = new CutModel2Manager(path);
 
        _panelid = 0;
        _wxauimanager = new wxAuiManager(this); 
@@ -140,7 +140,7 @@ void CutModel2MainPanel::onAddCutModel2(){
                checkInvariant();
 
                int id = addNewViewPanel();             
-               cutmanager->onAddCutModel(id, getModelView(id));
+               cutmanager->onAddCutModel2(id, getModelView(id));
 
                _panelid++;
 
@@ -163,7 +163,7 @@ void CutModel2MainPanel::ShowCurrentPanel(int id){
 }
 int CutModel2MainPanel::addNewViewPanel()throw( CutModelException){
        
-       CutModelView* viewpanel = new CutModelView(this,cutmanager->getImageRange());
+       CutModel2View* viewpanel = new CutModel2View(this,cutmanager->getImageRange());
 
        wxAuiPaneInfo paneinfo0;
        _wxauimanager->AddPane(viewpanel, paneinfo0.DefaultPane().DestroyOnClose().Centre());   
@@ -176,9 +176,9 @@ int CutModel2MainPanel::addNewViewPanel()throw( CutModelException){
        
        
 }
-CutModelView* CutModel2MainPanel::getModelView(int id)throw( CutModelException){
+CutModel2View* CutModel2MainPanel::getModelView(int id)throw( CutModelException){
 
-       CutModelView* current = NULL;
+       CutModel2View* current = NULL;
        for(int i = 0; i < viewpanels.size();i++){
                if(viewpanels[i]->getId()==id){
             current = viewpanels[i];
@@ -305,11 +305,11 @@ void CutModel2MainPanel::ShowStatistics(int id){
        delete histo;
 }
 
-void CutModel2MainPanel::SaveCutModel2Data(std::string filename){
+void CutModel2MainPanel::SaveCutModelData(std::string filename){
        cutmanager->SaveCutModelData(filename);
 }
 
-void CutModel2MainPanel::LoadCutModel2Data(std::string filename){
+void CutModel2MainPanel::LoadCutModelData(std::string filename){
     cutmanager->LoadCutModelData(filename);
 }
 /**