1 /*=========================================================================
4 Module: $RCSfile: wxMaracasMPR.cxx,v $
6 Date: $Date: 2008/10/31 16:32:10 $
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 "wxMaracasMPR.h"
21 wxMaracasMPR::wxMaracasMPR( wxWindow* parent,
22 marImageData* marimagedata , double voxelSize)
23 : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
26 wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
27 _MPR = new wxMPRWidget( this, marimagedata , voxelSize);
28 szTop->Add( _MPR, 1 , wxGROW | wxALL , 0 );
29 this->SetAutoLayout( true );
30 this->SetSizer( szTop );
32 // szTop->SetSizeHints( this );
34 //----------------------------------------------------------------------------
35 wxMaracasMPR::~wxMaracasMPR( )
37 if (_MPR!=NULL) { delete _MPR; }
39 //----------------------------------------------------------------------------
40 void wxMaracasMPR::ConfigureVTK( )
42 if (_MPR!=NULL ) {_MPR->ConfigureVTK(); }
44 //----------------------------------------------------------------------------
45 vtkMPRBaseData *wxMaracasMPR::GetVtkMPRBaseData()
47 return _MPR->GetVtkMPRBaseData();
49 //----------------------------------------------------------------------------
50 vtkPlane2DView *wxMaracasMPR::GetVtkPlane2DView()
52 return _MPR->GetVtkPlane2DView();
54 //----------------------------------------------------------------------------
55 wxVtkMPR3DView *wxMaracasMPR::GetWxvtkmpr3Dview_BB()
57 return _MPR->GetWxvtkmpr3Dview_BB();
60 //----------------------------------------------------------------------------
61 void wxMaracasMPR::RefreshView()
67 // EOF - wxMaracasMPR.cxx