1 /*=========================================================================
4 Module: $RCSfile: wxMaracasMPR.cxx,v $
6 Date: $Date: 2009/05/14 13:54:31 $
7 Version: $Revision: 1.4 $
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() throw(char*)
58 throw "wxVtkMPR3DView *wxMaracasMPR::GetWxvtkmpr3Dview_BB() _MPR =NULL";
60 if(_MPR->GetWxvtkmpr3Dview_BB() ==NULL){
61 throw "wxVtkMPR3DView *wxMaracasMPR::GetWxvtkmpr3Dview_BB() _MPR->GetWxvtkmpr3Dview_BB()=NULL";
63 return _MPR->GetWxvtkmpr3Dview_BB();
66 //----------------------------------------------------------------------------
67 void wxMaracasMPR::RefreshView()
72 void wxMaracasMPR::setImageData(vtkImageData *img, double voxelsize){
73 _MPR->setImageData(img, voxelsize);
77 // EOF - wxMaracasMPR.cxx