wxMaracasQuantification.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxMaracasQuantification.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 #include "wxMaracasFrame.h"
00019 #include "wxMaracasQuantification.h"
00020 
00021 
00022 wxMaracasQuantification::wxMaracasQuantification( wxWindow* parent,
00023                                                   marInterface* mar, wxWindowID id )
00024                                                  : wxPanel( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
00025 {
00026 
00027   _mar = mar;
00028 
00029   // Create the main frame window
00030   _3DQuantif = new wxQuantificationWidget( this, -1 );
00031   wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
00032   szTop->Add( _3DQuantif, 1  , wxEXPAND |  wxALL , 0 );
00033   this->SetAutoLayout( true );
00034   this->SetSizer( szTop );
00035   szTop->Fit( this );
00036   szTop->SetSizeHints( this );
00037 }
00038 //----------------------------------------------------------------------------
00039 wxMaracasQuantification::~wxMaracasQuantification( )
00040 {
00041 }
00042 //----------------------------------------------------------------------------
00043 void wxMaracasQuantification::LoadData( ){
00044   _3DQuantif->ShowMARACASData( _mar );
00045 }
00046 //----------------------------------------------------------------------------
00047 void wxMaracasQuantification::Do_Quant( ){
00048   // _3DQuantif->Do_Quant( );
00049 }
00050 //----------------------------------------------------------------------------
00051 void wxMaracasQuantification::SetSlider_Isovalue_Opacity(int isovalue,int opacity){
00052         _3DQuantif->SetSlider_Isovalue_Opacity(isovalue,opacity);
00053 }
00054 //----------------------------------------------------------------------------
00055 void wxMaracasQuantification::RegenerateAll(bool all){
00056         if (_3DQuantif!=NULL){
00057                 _3DQuantif->Clean3D(true);
00058                 if (all==true){
00059                         _mar->_experiment->RegenerateAxis();
00060                 } else {
00061                         _mar->_experiment->RecalculateAxis();
00062                 }
00063                 _3DQuantif->AddAxisActors();    
00064                 _3DQuantif->ResetAxis();        
00065                 _3DQuantif->RefreshAxis();      
00066         }
00067 }
00068 //----------------------------------------------------------------------------
00069 void wxMaracasQuantification::CleanContours(){
00070         if (_3DQuantif!=NULL){
00071                 _3DQuantif->Clean3D(false);
00072                 _mar->_experiment->ClearContours();
00073                 _3DQuantif->ResetAxis();        
00074                 _3DQuantif->RefreshAxis();      
00075         }
00076 }       
00077 //----------------------------------------------------------------------------
00078 void wxMaracasQuantification::RegenerateSignal(){
00079         if (_3DQuantif!=NULL){
00080                 _3DQuantif->Clean3D(false);
00081                 _mar->_experiment->RegenerateSignal();
00082                 _3DQuantif->ResetAxis();        
00083                 _3DQuantif->RefreshAxis();      
00084         }
00085 }
00086 //----------------------------------------------------------------------------
00087 
00088 // EOF - wxMaracasQuantification.cxx
00089 
00090 
00091 
00092 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1