wxMaracasFrame.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   wxMaracas
00004  Module:    $RCSfile: wxMaracasFrame.cxx,v $
00005  Language:  C++
00006  Date:      $Date: 2009/05/14 13:54:54 $
00007  Version:   $Revision: 1.1 $
00008 
00009   Copyright: (c) 2002, 2003
00010   License:
00011 
00012    This software is distributed WITHOUT ANY WARRANTY; without even
00013    the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014    PURPOSE.  See the above copyright notice for more information.
00015 
00016 =========================================================================*/
00017 
00018 // PS -> #include "wxMaracasDataBrowser.h"
00019 #include "wxMaracasParametersDialog.h"
00020 #include "wxMaracasImageBrowser.h"
00021 #include "wxMaracasHelpDialog.h"
00022 #include "wxMaracasFrame.h"
00023 #include "marDictionary.h"
00024 
00025 #include <wx/panel.h>
00026 #include <wx/toolbar.h>
00027 #include <wx/dialog.h>
00028 #include <wx/colordlg.h>
00029 // ----------------------------------------------------------------------------
00030 // Maracas "logic world" headers
00031 // ----------------------------------------------------------------------------
00032 
00033 
00034 //#ifndef __WXMSW__
00035 #   include "res/bitmaps/connect.xpm"
00036 #   include "res/bitmaps/params.xpm"
00037 #   include "res/bitmaps/imagebrowser.xpm"
00038 #   include "res/bitmaps/3D.xpm"
00039 #   include "res/bitmaps/plans.xpm"
00040 #   include "res/bitmaps/quant.xpm"
00041 #   include "res/bitmaps/rotate.xpm"
00042 #   include "res/bitmaps/bright.xpm"
00043 #   include "res/bitmaps/pan.xpm"
00044 #   include "res/bitmaps/zoom.xpm"
00045 #   include "res/bitmaps/clear.xpm"
00046 #   include "res/bitmaps/intensity.xpm"
00047 #   include "res/bitmaps/help.xpm"
00048 #   include "res/bitmaps/creatis_logo.xpm"
00049 #   include "res/icons/maracas.xpm"
00050 //#endif
00051 
00052 BEGIN_EVENT_TABLE( wxMaracasFrame, wxFrame )
00053         // PS -> EVT_MENU( ID_TOOLBAR_DATA_BROWSER, wxMaracasFrame::OnLoadPatientData )
00054         EVT_MENU( ID_TOOLBAR_PARAMETERS, wxMaracasFrame::OnParameters )
00055         // PS -> EVT_MENU( ID_TOOLBAR_IMAGE_BROWSER, wxMaracasFrame::OnLoadImageData )
00056         EVT_MENU( ID_TOOLBAR_3D_BROWSER, wxMaracasFrame::OnStartExperiment )
00057         // PS -> EVT_MENU( ID_TOOLBAR_HELP, wxMaracasFrame::OnHelp )
00058         EVT_MENU( ID_TOOLBAR_PLANS, wxMaracasFrame::OnQuant )
00059 
00060 // EED : This is not top  !!!!!!!!!!!
00061         EVT_TOOL( 19999, wxMaracasFrame::OnRegenerateAll                )
00062         EVT_TOOL( 19998, wxMaracasFrame::OnRegenerateSplineAxe  )
00063         EVT_TOOL( 19997, wxMaracasFrame::OnCleanContours                )
00064         EVT_TOOL( 19996, wxMaracasFrame::OnRegenerateSignal             )
00065 
00066 
00067         EVT_CLOSE( wxMaracasFrame::OnQuit )
00068 
00069         EVT_TOOL(wxSurfaceWidget::ID_BUTTON_NEW_AXIS, wxMaracasFrame::OnNewAxis )
00070         EVT_TOOL(wxSurfaceWidget::ID_BUTTON_DELETE_AXIS, wxMaracasFrame::OnDeleteAxis )
00071 END_EVENT_TABLE( );
00072 
00073 //----------------------------------------------------------------------------
00074 wxMaracasFrame::wxMaracasFrame( wxFrame *parent, wxWindowID id,
00075                                                            marInterface *mar,marSimpleDicom *simpleDicom, char *dictionaryFileName,
00076                                                            const wxString& title, const wxPoint& pos,
00077                                                            const wxSize& size, long style)
00078                                                            : wxFrame( parent, id, title, pos, size, style)
00079 {
00080     _mar                                                = mar;
00081         _marSimpleDicom                         = simpleDicom;
00082         _wxmaracasquantification        = NULL;
00083         _wxmaracas3dbrowser                     = NULL;
00084 
00085         marDictionary marDict;
00086 //      marDict.LoadDictionary_French();
00087         marDict.LoadDictionary_English();
00088 //      marDict.LoadDictionary_Japanese();
00089         
00090 
00091 /*
00092         if (!marDict.LoadDictionaryFile(dictionaryFileName)){
00093                         wxMessageBox( "Error: File(s) marDict.txt not found...",
00094                                           "DxMM : MARACAS", wxOK | wxCENTRE | wxICON_ERROR , this);
00095         }
00096 */
00097 
00098     //good luck !
00099     vtkObject *a = vtkObject::New();
00100     a->GlobalWarningDisplayOff();
00101     a->Delete();
00102 
00103     // At the begining, there were nothing, just a window...
00104     _actual_panel = NULL;
00105 
00106     // And the programmer said: let there be a status bar
00107     this->CreateStatusBar( );
00108 
00109     this->GetStatusBar()->SetFieldsCount( 2 );
00110     wxRect rect;
00111     this->GetStatusBar()->GetFieldRect(1, rect);
00112     //wxPoint pos;
00113     //wxSize size;
00114     //_progressGauge = new wxGauge( this->GetStatusBar(), -1, 100);
00115         //    _progressGauge = new wxGauge( this->GetStatusBar(), -1, 50,
00116         //    rect.GetPosition(), rect.GetSize());
00117     this->GetStatusBar()->Show();
00118     this->PositionStatusBar();
00119 
00120     // And an icon (to be unique)
00121     //TODO change the icon to the real one!
00122     this->SetIcon( wxICON( maracas_icon ) );
00123 
00124     // And a toolbar (for dummy users)
00125     this->RecreateToolbar( );
00126 
00127 }
00128 //----------------------------------------------------------------------------
00129 void wxMaracasFrame::RecreateToolbar( )
00130 {
00131     wxToolBar* toolBar = this->GetToolBar( );
00132     delete toolBar;
00133     this->SetToolBar( NULL );
00134 
00135     toolBar = this->CreateToolBar( TOOLBAR_STYLE, ID_TOOLBAR );
00136 
00137     // Set up toolbar
00138     wxBitmap toolBarBitmaps[ 22+1 ];
00139 
00143     toolBarBitmaps[  0 ] = wxBITMAP( toolbar_connect );
00144     toolBarBitmaps[  4 ] = wxBITMAP( toolbar_params );
00145     toolBarBitmaps[  7 ] = wxBITMAP( toolbar_imagebrowser );
00146     toolBarBitmaps[  9 ] = wxBITMAP( toolbar_triD );
00147 
00148     toolBarBitmaps[ 10 ] = wxBITMAP( toolbar_plans );
00149     toolBarBitmaps[ 11 ] = wxBITMAP( toolbar_quant );
00150     toolBarBitmaps[ 12 ] = wxBITMAP( toolbar_rotate );
00151     toolBarBitmaps[ 13 ] = wxBITMAP( toolbar_bright );
00152     toolBarBitmaps[ 14 ] = wxBITMAP( toolbar_pan );
00153     toolBarBitmaps[ 15 ] = wxBITMAP( toolbar_zoom );
00154     toolBarBitmaps[ 16 ] = wxBITMAP( toolbar_clear );
00155     toolBarBitmaps[ 17 ] = wxBITMAP( toolbar_intensity );
00156     toolBarBitmaps[ 20 ] = wxBITMAP( toolbar_help );
00157     toolBarBitmaps[ 22 ] = wxBITMAP( creatis_logo );
00158 
00159     /*
00160         toolBarBitmaps[  1 ] = wxBitmap( toolbar_loadexp );
00161         toolBarBitmaps[  2 ] = wxBitmap( toolbar_save );
00162         toolBarBitmaps[  3 ] = wxBitmap( toolbar_excel );
00163         toolBarBitmaps[  5 ] = wxBitmap( toolbar_wizard );
00164         toolBarBitmaps[  6 ] = wxBitmap( toolbar_back );
00165         toolBarBitmaps[  8 ] = wxBitmap( toolbar_subtract );
00166 
00167          toolBarBitmaps[ 18 ] = wxBitmap( toolbar_linear );
00168          toolBarBitmaps[ 19 ] = wxBitmap( toolbar_area );
00169     */
00170     // Set size & margins
00171     toolBar->SetMargins( 4, 4 );
00172 // PS -> #ifdef DXMM
00173     toolBar->SetToolBitmapSize( wxSize( toolBarBitmaps[ 4 ].GetWidth( ), toolBarBitmaps[ 4 ].GetHeight( ) ) );
00174 // PS -> #else
00175 // PS ->     toolBar->SetToolBitmapSize( wxSize( toolBarBitmaps[ 0 ].GetWidth( ), toolBarBitmaps[ 0 ].GetHeight( ) ) );
00176 // PS -> #endif
00177 
00178     // Adding tools
00179 // PS -> #ifndef DXMM
00180 // PS ->     toolBar->AddTool( ID_TOOLBAR_DATA_BROWSER, toolBarBitmaps[ 0 ], "Patient data", "Load patient data: studies & series" );
00181 // PS ->     toolBar->AddSeparator( );
00182 // PS ->     toolBar->AddTool( ID_TOOLBAR_IMAGE_BROWSER, toolBarBitmaps[ 7 ], "Load image data", "Load DICOM images from disk" );
00183 // PS ->     toolBar->AddSeparator( );
00184 // PS -> #endif
00185     toolBar->AddTool( ID_TOOLBAR_3D_BROWSER, toolBarBitmaps[ 9 ], _T("Start 3D"), _T("Load 3D representation") );
00186     toolBar->AddSeparator( );
00187     toolBar->AddTool( ID_TOOLBAR_PLANS, toolBarBitmaps[ 10 ], _T("Plan"), _T("Planes") );
00188     toolBar->AddSeparator( );
00189 //    toolBar->AddTool( ID_TOOLBAR_QUANT, toolBarBitmaps[ 11 ], "Quant", "Quant" );
00190 //    toolBar->AddSeparator( );
00191     //The following has been commented out temporarlily
00192     /*
00193     toolBar->AddTool( ID_TOOLBAR_ROTATE, toolBarBitmaps[ 12 ], "Rotate", "Rotate" );
00194     toolBar->AddSeparator( );
00195     toolBar->AddTool( ID_TOOLBAR_BRIGHT, toolBarBitmaps[ 13 ], "Bright", "Bright" );
00196     toolBar->AddSeparator( );
00197     toolBar->AddTool( ID_TOOLBAR_PAN, toolBarBitmaps[ 14 ], "Pan", "Pan" );
00198     toolBar->AddSeparator( );
00199     toolBar->AddTool( ID_TOOLBAR_ZOOM, toolBarBitmaps[ 15 ], "Zoom", "Zoom" );
00200     toolBar->AddSeparator( );
00201     toolBar->AddTool( ID_TOOLBAR_CLEAR, toolBarBitmaps[ 16 ], "Clear", "Clear" );
00202     toolBar->AddSeparator( );
00203     toolBar->AddTool( ID_TOOLBAR_INTENSITY, toolBarBitmaps[ 17 ], "Intensity", "Intensity" );
00204     toolBar->AddSeparator( );*/
00205     toolBar->AddTool( ID_TOOLBAR_PARAMETERS, toolBarBitmaps[ 4 ], _T("Parameters"), _T("Load parameters for modifying") );
00206     //toolBar->AddTool( ID_TOOLBAR_HELP, toolBarBitmaps[ 20 ], "Help", "Help" );
00207     toolBar->AddSeparator( );
00208 
00209         wxBitmapButton *btnCreatisLogo = new wxBitmapButton(toolBar,-1,toolBarBitmaps[ 22 ] );
00210         btnCreatisLogo->SetSize(81+10,20+10);
00211         btnCreatisLogo->SetBackgroundColour(wxColour(0,0,153));
00212         Connect(btnCreatisLogo->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxMaracasFrame::OnAboutCreatis );
00213 
00214         toolBar->AddControl(btnCreatisLogo);
00215 
00216 
00217 
00218     toolBar->Realize( );
00219     toolBar->SetRows( 1 );
00220     toolBar->EnableTool(ID_TOOLBAR_3D_BROWSER, true);
00221     toolBar->EnableTool(ID_TOOLBAR_PLANS, false);
00222     toolBar->EnableTool(ID_TOOLBAR_QUANT, false);
00223 }
00224 
00225 //----------------------------------------------------------------------------
00226 void wxMaracasFrame::OnAboutCreatis( wxCommandEvent& event ){
00227         wxMaracasHelpDialog *dlg = new wxMaracasHelpDialog(this, -1, "Creatis", wxPoint(200,200), wxDefaultSize, wxDEFAULT_DIALOG_STYLE);
00228         dlg->ShowModal();
00229         dlg->Close();
00230 }
00231 
00232 //----------------------------------------------------------------------------
00233 void wxMaracasFrame::OnQuit( wxCloseEvent& event ){
00234 
00235         DeletePanels();
00236         if (_mar!=NULL) { delete _mar; }
00237         _mar=NULL;
00238         marDictionary marDict;
00239         marDict.FreeDictionary();
00240 
00241 
00242 //      this->Show(FALSE);
00243         this->Destroy();
00244         delete this;
00245 }
00246 //----------------------------------------------------------------------------
00247 // PS -> void wxMaracasFrame::OnLoadPatientData( wxCommandEvent& event )
00248 // PS -> {
00249 // PS ->        wxBusyCursor wait;
00250 // PS ->     wxToolBar* toolBar = this->GetToolBar( );
00251 // PS ->     //Disabling tool
00252 // PS ->     //wxToolBar::EnableTool This function should only be called after Realize.
00253 // PS ->     toolBar->EnableTool(ID_TOOLBAR_IMAGE_BROWSER, false);
00254 // PS ->     toolBar->EnableTool(ID_TOOLBAR_3D_BROWSER, true);
00255 // PS ->     toolBar->EnableTool(ID_TOOLBAR_PLANS, true);
00256 // PS ->     toolBar->EnableTool(ID_TOOLBAR_QUANT, false);
00257 // PS -> 
00258 // PS ->        //  Create panel
00259 // PS ->        if( _actual_panel != NULL ) delete _actual_panel;
00260 // PS ->        wxMaracasDataBrowser* pnl = new wxMaracasDataBrowser( this, _mar, -1 );
00261 // PS -> 
00262 // PS ->        _actual_panel = pnl;
00263 // PS -> 
00264 // PS ->        // cf.: http://www.wxwindows.org/manuals/2.4.0/wx490.htm
00265 // PS ->        // Force a resize. This should probably be replaced by a call to a wxFrame
00266 // PS ->        // function that lays out default decorations and the remaining content window.
00267 // PS ->        wxSizeEvent myevent(wxSize(-1, -1), this->GetId());
00268 // PS ->        this->OnSize(myevent);
00269 // PS ->        this->Show(true);
00270 // PS -> 
00271 // PS ->        // Load panel data
00272 // PS ->        pnl->LoadData( );
00273 // PS ->        //this->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, false);
00274 // PS -> }
00275 //----------------------------------------------------------------------------
00276 void wxMaracasFrame::OnParameters( wxCommandEvent& event )
00277 {
00278 /* EED Photo Maracas
00279   //-- 
00280         wxWindowDC *wxwindc =new wxWindowDC(this);
00281         wxCoord w, h;
00282         wxwindc->GetSize(&w, &h);
00283         wxBitmap *wxbitmap =new wxBitmap(w, h);
00284         wxMemoryDC *wxmemorydc = new wxMemoryDC();
00285 
00286         wxmemorydc->SelectObject(*wxbitmap);
00287         wxmemorydc->Blit(0,0,w,h,wxwindc,0,0);
00288 
00289         wxbitmap->SaveFile("c:/tmp/MaracasPlamavic.bmp", wxBITMAP_TYPE_BMP  );
00290         delete wxwindc;
00291         delete wxbitmap;
00292         delete wxmemorydc;
00293   //--  
00294 */
00295         wxMaracasParametersDialog *d = new wxMaracasParametersDialog( this, _mar );
00296         d->ShowModal( );
00297         d->Close(true);
00298 /*
00299         if (d->IfInitContour()==true){
00300         } else {
00301         }
00302         if (d->GetInitContour()==true){
00303         }
00304         wxmaracasquantification;
00305         if (wxmaracas3dbrowser!=NULL){ 
00306         }
00307 */
00308 }
00309 //----------------------------------------------------------------------------
00310 // PS -> void wxMaracasFrame::OnLoadImageData( wxCommandEvent& event )
00311 // PS -> {
00312 // PS ->        wxBusyCursor wait;
00313 // PS -> 
00314 // PS ->        //  Create panel
00315 // PS ->        if( _actual_panel != NULL ) delete _actual_panel;
00316 // PS ->        wxMaracasImageBrowser* pnl = new wxMaracasImageBrowser( this, _mar, -1 );
00317 // PS -> 
00318 // PS ->        // Resize
00319 // PS ->        _actual_panel = pnl;
00320 // PS -> 
00321 // PS ->        // Load panel data
00322 // PS ->        wxSizeEvent myevent(wxSize(-1, -1), this->GetId());
00323 // PS ->        this->OnSize(myevent);
00324 // PS ->        //this->Show(true);
00325 // PS -> 
00326 // PS ->        //wxDialog dialog(this, -1, "coucou");
00327 // PS ->        //dialog.ShowModal();
00328 // PS ->        //dialog.Show(true);
00329 // PS ->        //wxGauge gauge( this, -1, 50);
00330 // PS -> 
00331 // PS ->     /**
00332 // PS ->        AS a first step I'll pass a wxGauge as parameter this doesn't
00333 // PS ->        sound very good, should use EVT_TIMER instead...
00334 // PS ->     */
00335 // PS ->     _mar->_dicom->loadActualSerie( this->_progressGauge );
00336 // PS ->     vtkImageData *dummy = _mar->_dicom->getVolume( )->castVtk();
00337 // PS ->     //float range[2];
00338 // PS ->     //dummy->GetScalarRange( range );
00339 // PS -> 
00340 // PS ->     pnl->LoadData( dummy );
00341 // PS ->     //_view_image->ConstructVTK(  (vtkImageData *)_mar->_dicom->getVolume( ));
00342 // PS ->     //^ this is not working ??? I don't understand why, some VTK pipeline mystery
00343 // PS -> 
00344 // PS ->     this->GetToolBar()->EnableTool(ID_TOOLBAR_IMAGE_BROWSER, false);
00345 // PS ->     this->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, true);
00346 // PS ->        //Add patient name to the frame title
00347 // PS ->     this->SetTitle( "Patient Name : " + _mar->_dicom->GetPatientName() );
00348 // PS -> }
00349 //----------------------------------------------------------------------------
00350 void wxMaracasFrame::OnStartExperiment( wxCommandEvent& event )
00351 {
00352         
00353         wxBusyCursor wait;
00354 
00355         int voi[ 6 ];
00356 // PS -> #ifndef DXMM
00357 // PS ->     ((wxMaracasImageBrowser*)_actual_panel )->GetROI( voi );
00358 // PS -> #else
00359 
00360         _marSimpleDicom->loadActualSerie( this->_progressGauge );
00361         _mar->_dicom->SetVolume( _marSimpleDicom->getVolume() );
00362 
00363 
00364         voi[0] = 0;
00365         voi[1] = (_mar->_dicom->getVolume( )->getXdim( ))-1;
00366         voi[2] = 0;
00367         voi[3] = (_mar->_dicom->getVolume( )->getYdim( ))-1;
00368         voi[4] = 0;
00369         voi[5] = (_mar->_dicom->getVolume( )->getZdim( ))-1;
00370 // PS -> #endif
00371 
00372         _mar->_experiment->setVOI( voi );
00373         _mar->initExperiment( );
00374 
00375         //  Create panel
00376     DeletePanels();
00377         _wxmaracas3dbrowser = new wxMaracas3DBrowser( this, _mar, -1 ,ID_TOOLBAR_PLANS);
00378 
00379         // Resize
00380         _actual_panel = _wxmaracas3dbrowser;
00381 
00382         wxSizeEvent myevent(wxSize(-1, -1), this->GetId());
00383         this->OnSize(myevent);
00384         //this->Show(true);
00385 
00386         // Load panel data
00387         _wxmaracas3dbrowser->LoadData( );
00388 
00389 // PS -> #ifndef DXMM
00390 // PS ->        this->GetToolBar()->EnableTool(ID_TOOLBAR_IMAGE_BROWSER, true);
00391 // PS ->        this->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, false);
00392 // PS -> #else
00393         this->GetToolBar()->EnableTool(ID_TOOLBAR_PLANS, false);
00394         this->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, false);
00395         this->GetToolBar()->EnableTool(ID_TOOLBAR_QUANT, false);
00396 // PS -> #endif
00397 }
00398 //----------------------------------------------------------------------------
00399 // PS -> void wxMaracasFrame::OnHelp (wxCommandEvent& event )
00400 // PS -> {
00401 // PS ->        wxMaracasHelpDialog* help = new wxMaracasHelpDialog(this, -1);
00402 // PS -> 
00403 // PS ->        help->ShowModal();
00404 // PS -> }
00405 
00406 //----------------------------------------------------------------------------
00407 void wxMaracasFrame::DeletePanels ( ){
00408         if (_wxmaracasquantification!=NULL){ 
00409                 delete _wxmaracasquantification;
00410                 _wxmaracasquantification=NULL;
00411         }
00412         if (_wxmaracas3dbrowser!=NULL){ 
00413                 delete _wxmaracas3dbrowser;
00414                 _wxmaracas3dbrowser=NULL;
00415         }
00416 }
00417 //----------------------------------------------------------------------------
00418 void wxMaracasFrame::OnQuant (wxCommandEvent& event ){
00419         int isovalue = 50;
00420         int opacity  = 50;
00421 
00422         if (_wxmaracas3dbrowser!=NULL){ 
00423                 isovalue = _wxmaracas3dbrowser->GetIsovalue();
00424                 opacity  = _wxmaracas3dbrowser->GetOpacity();
00425         }
00426 
00427     DeletePanels();
00428         _wxmaracasquantification = new wxMaracasQuantification( this, _mar, -1 );
00429         _actual_panel = _wxmaracasquantification;
00430 
00431         wxSizeEvent myevent(wxSize(-1, -1), this->GetId());
00432         this->OnSize(myevent);
00433         this->Show(true);
00434 
00435         // Load panel data
00436         _wxmaracasquantification->LoadData( );
00437         _wxmaracasquantification->SetSlider_Isovalue_Opacity(isovalue,opacity);
00438         this->GetToolBar()->EnableTool(ID_TOOLBAR_PLANS, false);
00439         this->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, true);
00440 }
00441 //----------------------------------------------------------------------------
00442 void wxMaracasFrame::OnNewAxis(wxCommandEvent &WXUNUSED(event))
00443 {
00444         this->GetToolBar()->EnableTool(ID_TOOLBAR_PLANS, true);
00445         this->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, false);
00446         this->GetToolBar()->EnableTool(ID_TOOLBAR_QUANT, true);
00447 }
00448 //----------------------------------------------------------------------------
00449 void wxMaracasFrame::OnDeleteAxis(wxCommandEvent &WXUNUSED(event))
00450 {
00451         this->GetToolBar()->EnableTool(ID_TOOLBAR_PLANS, false);
00452         this->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, false);
00453         this->GetToolBar()->EnableTool(ID_TOOLBAR_QUANT, false);
00454 }
00455 //----------------------------------------------------------------------------
00456 void wxMaracasFrame::OnRegenerateAll(  wxCommandEvent& event  ){
00457         if (_wxmaracas3dbrowser!=NULL)          { _wxmaracas3dbrowser->RegenerateAll(true);             }
00458         if (_wxmaracasquantification!=NULL) { _wxmaracasquantification->RegenerateAll(true);}
00459 }
00460 //----------------------------------------------------------------------------
00461 void wxMaracasFrame::OnRegenerateSplineAxe(  wxCommandEvent& event  ){
00462         if (_wxmaracas3dbrowser!=NULL)          { _wxmaracas3dbrowser->RegenerateAll(false);            }
00463         if (_wxmaracasquantification!=NULL) { _wxmaracasquantification->RegenerateAll(false);   }
00464 }
00465 //----------------------------------------------------------------------------
00466 void wxMaracasFrame::OnCleanContours(  wxCommandEvent& event  ){
00467         if (_wxmaracasquantification!=NULL) { _wxmaracasquantification->CleanContours();        }
00468 }
00469 //----------------------------------------------------------------------------
00470 void wxMaracasFrame::OnRegenerateSignal(  wxCommandEvent& event  ){
00471         if (_wxmaracasquantification!=NULL) { _wxmaracasquantification->RegenerateSignal();     }
00472 }
00473 //----------------------------------------------------------------------------
00474 
00475 
00476 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1