1 /*=========================================================================
4 Module: $RCSfile: wxMaracasQuantificationCT.cxx,v $
6 Date: $Date: 2008/10/31 16:32:11 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
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.
16 =========================================================================*/
18 #include "wxMaracasFrame.h"
19 #include "wxMaracasQuantificationCT.h"
22 wxMaracasQuantificationCT::wxMaracasQuantificationCT( wxWindow* parent,
23 marInterfaceCT* mar, wxWindowID id )
24 : wxPanel( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
29 // Create the main frame window
30 _3DQuantif = new wxQuantificationWidgetCT( this, -1 );
31 wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
35 szTop->Add( _3DQuantif, 1 , wxEXPAND | wxALL , 0 );
36 this->SetAutoLayout( true );
37 this->SetSizer( szTop );
39 szTop->SetSizeHints( this );
41 //----------------------------------------------------------------------------
42 wxMaracasQuantificationCT::~wxMaracasQuantificationCT( ){
45 //----------------------------------------------------------------------------
46 void wxMaracasQuantificationCT::LoadData( ){
47 _3DQuantif->ShowMARACASData( _mar );
49 //----------------------------------------------------------------------------
50 void wxMaracasQuantificationCT::Do_Quant( ){
51 // _3DQuantif->Do_Quant( );
53 //----------------------------------------------------------------------------
54 void wxMaracasQuantificationCT::SetSlider_Isovalue_Opacity(int isovalue,int opacity){
55 _3DQuantif->SetSlider_Isovalue_Opacity(isovalue,opacity);
57 //----------------------------------------------------------------------------
58 void wxMaracasQuantificationCT::RegenerateAll(bool all){
59 if (_3DQuantif!=NULL){
60 _3DQuantif->Clean3D(true);
62 _mar->RegenerateAxis();
64 _mar->RecalculateAxis();
66 _3DQuantif->AddAxisActors();
67 _3DQuantif->ResetAxis();
68 _3DQuantif->RefreshAxis();
71 //----------------------------------------------------------------------------
72 void wxMaracasQuantificationCT::CleanContours(){
73 if (_3DQuantif!=NULL){
74 _3DQuantif->Clean3D(false);
75 _mar->ClearContours();
76 _3DQuantif->ResetAxis();
77 _3DQuantif->RefreshAxis();
80 //----------------------------------------------------------------------------
81 void wxMaracasQuantificationCT::RegenerateSignal(){
82 if (_3DQuantif!=NULL){
83 _3DQuantif->Clean3D(false);
84 _mar->RegenerateSignal();
85 _3DQuantif->ResetAxis();
86 _3DQuantif->RefreshAxis();
89 //----------------------------------------------------------------------------
90 int wxMaracasQuantificationCT::GetActualSlice()
92 return this->_3DQuantif->GetActualSlice();
94 //----------------------------------------------------------------------------
95 void wxMaracasQuantificationCT::SetActualSlice(int slice)
97 this->_3DQuantif->SetActualSlice(slice);
99 //----------------------------------------------------------------------------
102 // EOF - wxMaracasQuantification.cxx