1 /*=========================================================================
4 Module: $RCSfile: wxMaracas3DBrowser.cxx,v $
6 Date: $Date: 2008/10/31 16:32:09 $
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 "wxMaracas3DBrowser.h"
22 wxMaracas3DBrowser::wxMaracas3DBrowser( wxWindow* parent, marInterface* mar, wxWindowID id , int id_toolbar_plans )
23 : wxPanel( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL )
27 _3DSurf = new wxSurfaceWidget( this, -1 );
28 _3DSurf->SetId_toolbar_plans(id_toolbar_plans);
30 wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
31 szTop->Add( _3DSurf, 1, wxEXPAND | wxALL, 0 );
33 this->SetAutoLayout( true );
34 this->SetSizer( szTop );
36 // szTop->Fit( this );
37 szTop->SetSizeHints( this );
40 //----------------------------------------------------------------------------
41 void wxMaracas3DBrowser::LoadData( ){
42 _3DSurf->ShowMARACASData( _mar );
44 //----------------------------------------------------------------------------
45 int wxMaracas3DBrowser::GetIsovalue(){
48 result=_3DSurf->GetIsovalue();
52 //----------------------------------------------------------------------------
53 int wxMaracas3DBrowser::GetOpacity(){
56 result=_3DSurf->GetOpacity();
60 //----------------------------------------------------------------------------
61 void wxMaracas3DBrowser::RegenerateAll(bool all){
65 _mar->_experiment->RegenerateAxis();
67 _mar->_experiment->RecalculateAxis();
69 _3DSurf->AddAxisActors();
70 _3DSurf->RefreshAxis();
73 //----------------------------------------------------------------------------
75 // EOF - wxMaracas3DBrowser.cxx