wxMaracasQuantificationCT.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxMaracasQuantificationCT.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 "wxMaracasQuantificationCT.h"
00020 
00021 
00022 wxMaracasQuantificationCT::wxMaracasQuantificationCT( wxWindow* parent,
00023                                                   marInterfaceCT* 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 wxQuantificationWidgetCT( this, -1 );
00031   wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
00032 
00033 
00034   
00035   szTop->Add( _3DQuantif, 1  , wxEXPAND |  wxALL , 0 );
00036   this->SetAutoLayout( true );
00037   this->SetSizer( szTop );
00038   szTop->Fit( this );
00039   szTop->SetSizeHints( this );
00040 }
00041 //----------------------------------------------------------------------------
00042 wxMaracasQuantificationCT::~wxMaracasQuantificationCT( ){
00043   // Nothing
00044 }
00045 //----------------------------------------------------------------------------
00046 void wxMaracasQuantificationCT::LoadData( ){
00047   _3DQuantif->ShowMARACASData( _mar );
00048 }
00049 //----------------------------------------------------------------------------
00050 void wxMaracasQuantificationCT::Do_Quant( ){
00051   // _3DQuantif->Do_Quant( );
00052 }
00053 //----------------------------------------------------------------------------
00054 void wxMaracasQuantificationCT::SetSlider_Isovalue_Opacity(int isovalue,int opacity){
00055         _3DQuantif->SetSlider_Isovalue_Opacity(isovalue,opacity);
00056 }
00057 //----------------------------------------------------------------------------
00058 void wxMaracasQuantificationCT::RegenerateAll(bool all){
00059         if (_3DQuantif!=NULL){
00060                 _3DQuantif->Clean3D(true);
00061                 if (all==true){
00062                         _mar->RegenerateAxis();
00063                 } else {
00064                         _mar->RecalculateAxis();
00065                 }
00066                 _3DQuantif->AddAxisActors();    
00067                 _3DQuantif->ResetAxis();        
00068                 _3DQuantif->RefreshAxis();      
00069         }
00070 }
00071 //----------------------------------------------------------------------------
00072 void wxMaracasQuantificationCT::CleanContours(){
00073         if (_3DQuantif!=NULL){
00074                 _3DQuantif->Clean3D(false);
00075                 _mar->ClearContours();
00076                 _3DQuantif->ResetAxis();        
00077                 _3DQuantif->RefreshAxis();      
00078         }
00079 }       
00080 //----------------------------------------------------------------------------
00081 void wxMaracasQuantificationCT::RegenerateSignal(){
00082         if (_3DQuantif!=NULL){
00083                 _3DQuantif->Clean3D(false);
00084                 _mar->RegenerateSignal();
00085                 _3DQuantif->ResetAxis();        
00086                 _3DQuantif->RefreshAxis();      
00087         }
00088 }
00089 //----------------------------------------------------------------------------
00090 int wxMaracasQuantificationCT::GetActualSlice()
00091 {
00092         return this->_3DQuantif->GetActualSlice();
00093 }
00094 //----------------------------------------------------------------------------
00095 void wxMaracasQuantificationCT::SetActualSlice(int slice)
00096 {
00097         this->_3DQuantif->SetActualSlice(slice);
00098 }
00099 //----------------------------------------------------------------------------
00100 
00101 
00102 // EOF - wxMaracasQuantification.cxx
00103 
00104 
00105 
00106 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1