1 /*=========================================================================
4 Module: $RCSfile: wxMaracasQuantification.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 "wxMaracasQuantification.h"
22 wxMaracasQuantification::wxMaracasQuantification( wxWindow* parent,
23 marInterface* mar, wxWindowID id )
24 : wxPanel( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
29 // Create the main frame window
30 _3DQuantif = new wxQuantificationWidget( this, -1 );
31 wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
32 szTop->Add( _3DQuantif, 1 , wxEXPAND | wxALL , 0 );
33 this->SetAutoLayout( true );
34 this->SetSizer( szTop );
36 szTop->SetSizeHints( this );
38 //----------------------------------------------------------------------------
39 wxMaracasQuantification::~wxMaracasQuantification( )
42 //----------------------------------------------------------------------------
43 void wxMaracasQuantification::LoadData( ){
44 _3DQuantif->ShowMARACASData( _mar );
46 //----------------------------------------------------------------------------
47 void wxMaracasQuantification::Do_Quant( ){
48 // _3DQuantif->Do_Quant( );
50 //----------------------------------------------------------------------------
51 void wxMaracasQuantification::SetSlider_Isovalue_Opacity(int isovalue,int opacity){
52 _3DQuantif->SetSlider_Isovalue_Opacity(isovalue,opacity);
54 //----------------------------------------------------------------------------
55 void wxMaracasQuantification::RegenerateAll(bool all){
56 if (_3DQuantif!=NULL){
57 _3DQuantif->Clean3D(true);
59 _mar->_experiment->RegenerateAxis();
61 _mar->_experiment->RecalculateAxis();
63 _3DQuantif->AddAxisActors();
64 _3DQuantif->ResetAxis();
65 _3DQuantif->RefreshAxis();
68 //----------------------------------------------------------------------------
69 void wxMaracasQuantification::CleanContours(){
70 if (_3DQuantif!=NULL){
71 _3DQuantif->Clean3D(false);
72 _mar->_experiment->ClearContours();
73 _3DQuantif->ResetAxis();
74 _3DQuantif->RefreshAxis();
77 //----------------------------------------------------------------------------
78 void wxMaracasQuantification::RegenerateSignal(){
79 if (_3DQuantif!=NULL){
80 _3DQuantif->Clean3D(false);
81 _mar->_experiment->RegenerateSignal();
82 _3DQuantif->ResetAxis();
83 _3DQuantif->RefreshAxis();
86 //----------------------------------------------------------------------------
88 // EOF - wxMaracasQuantification.cxx