1 /*=========================================================================
4 Module: $RCSfile: wxMaracas_ManualSegmentation_MPR.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 "wxMaracas_ManualSegmentation_MPR.h"
19 #include <wx/splitter.h>
22 //----------------------------------------------------------------------------
23 //----------------------------------------------------------------------------
24 //----------------------------------------------------------------------------
25 wxMaracas_ManualSegmentation_MPR::wxMaracas_ManualSegmentation_MPR( wxWindow* parent, marImageData* marimagedata,double voxelSize )
26 : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
29 // Create the main frame window
30 _MPR = new wxManualSegmentation_MPRWidget( this, marimagedata , voxelSize);
31 wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
32 szTop->Add( _MPR, 1 , wxEXPAND | wxALL , 0 );
33 this->SetAutoLayout( true );
34 this->SetSizer( szTop );
36 szTop->SetSizeHints( this );
41 //----------------------------------------------------------------------------
42 wxMaracas_ManualSegmentation_MPR::~wxMaracas_ManualSegmentation_MPR( )
48 //----------------------------------------------------------------------------
49 void wxMaracas_ManualSegmentation_MPR::ConfigureVTK( )
53 //----------------------------------------------------------------------------
54 vtkMPRBaseData *wxMaracas_ManualSegmentation_MPR::GetVtkMPRBaseData()
56 return _MPR->GetVtkMPRBaseData();
59 //----------------------------------------------------------------------------
60 vtkPlane2DView *wxMaracas_ManualSegmentation_MPR::GetVtkPlane2DView()
62 return _MPR->GetVtkPlane2DView();