]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasQuantificationCT.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / wxMaracasQuantificationCT.cxx
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasQuantificationCT.cxx,v $
5   Language:  C++
6   Date:      $Date: 2009/05/14 13:54:54 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11
12      This software is distributed WITHOUT ANY WARRANTY; without even
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14      PURPOSE.  See the above copyright notice for more information.
15
16 =========================================================================*/
17
18 #include "wxMaracasFrame.h"
19 #include "wxMaracasQuantificationCT.h"
20
21
22 wxMaracasQuantificationCT::wxMaracasQuantificationCT( wxWindow* parent,
23                                                   marInterfaceCT* mar, wxWindowID id )
24 : wxPanel( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
25 {
26
27   _mar = mar;
28
29   // Create the main frame window
30   _3DQuantif = new wxQuantificationWidgetCT( this, -1 );
31   wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
32
33
34   
35   szTop->Add( _3DQuantif, 1  , wxEXPAND |  wxALL , 0 );
36   this->SetAutoLayout( true );
37   this->SetSizer( szTop );
38   szTop->Fit( this );
39   szTop->SetSizeHints( this );
40 }
41 //----------------------------------------------------------------------------
42 wxMaracasQuantificationCT::~wxMaracasQuantificationCT( ){
43   // Nothing
44 }
45 //----------------------------------------------------------------------------
46 void wxMaracasQuantificationCT::LoadData( ){
47   _3DQuantif->ShowMARACASData( _mar );
48 }
49 //----------------------------------------------------------------------------
50 void wxMaracasQuantificationCT::Do_Quant( ){
51   // _3DQuantif->Do_Quant( );
52 }
53 //----------------------------------------------------------------------------
54 void wxMaracasQuantificationCT::SetSlider_Isovalue_Opacity(int isovalue,int opacity){
55         _3DQuantif->SetSlider_Isovalue_Opacity(isovalue,opacity);
56 }
57 //----------------------------------------------------------------------------
58 void wxMaracasQuantificationCT::RegenerateAll(bool all){
59         if (_3DQuantif!=NULL){
60                 _3DQuantif->Clean3D(true);
61                 if (all==true){
62                         _mar->RegenerateAxis();
63                 } else {
64                         _mar->RecalculateAxis();
65                 }
66                 _3DQuantif->AddAxisActors();    
67                 _3DQuantif->ResetAxis();        
68                 _3DQuantif->RefreshAxis();      
69         }
70 }
71 //----------------------------------------------------------------------------
72 void wxMaracasQuantificationCT::CleanContours(){
73         if (_3DQuantif!=NULL){
74                 _3DQuantif->Clean3D(false);
75                 _mar->ClearContours();
76                 _3DQuantif->ResetAxis();        
77                 _3DQuantif->RefreshAxis();      
78         }
79 }       
80 //----------------------------------------------------------------------------
81 void wxMaracasQuantificationCT::RegenerateSignal(){
82         if (_3DQuantif!=NULL){
83                 _3DQuantif->Clean3D(false);
84                 _mar->RegenerateSignal();
85                 _3DQuantif->ResetAxis();        
86                 _3DQuantif->RefreshAxis();      
87         }
88 }
89 //----------------------------------------------------------------------------
90 int wxMaracasQuantificationCT::GetActualSlice()
91 {
92         return this->_3DQuantif->GetActualSlice();
93 }
94 //----------------------------------------------------------------------------
95 void wxMaracasQuantificationCT::SetActualSlice(int slice)
96 {
97         this->_3DQuantif->SetActualSlice(slice);
98 }
99 //----------------------------------------------------------------------------
100
101
102 // EOF - wxMaracasQuantification.cxx
103
104
105
106