]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracas_SegmentationFM3D.cxx
BUG macOs
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / wxMaracas_SegmentationFM3D.cxx
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracas_SegmentationFM3D.cxx,v $
5   Language:  C++
6   Date:      $Date: 2009/05/14 13:54:54 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11
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.
15
16 =========================================================================*/
17
18
19 #include <wx/splitter.h>
20 #include "wxMaracas_SegmentationFM3D.h"
21
22
23 //----------------------------------------------------------------------------
24 //----------------------------------------------------------------------------
25 //----------------------------------------------------------------------------
26 wxMaracas_SegmentationFM3D::wxMaracas_SegmentationFM3D( wxWindow* parent, marImageData* marimagedata,double voxelSize )
27 : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
28 {
29
30   // Create the main frame window
31         _MPR = new wxSegmentationFM3DWidget( this, marimagedata , voxelSize);
32         wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
33         szTop->Add( _MPR, 1  , wxEXPAND |  wxALL , 0 );
34         this->SetAutoLayout( true );
35         this->SetSizer( szTop );
36         szTop->Fit( this );
37         szTop->SetSizeHints( this );
38 //EEDxx2.4
39 //      FitInside();
40
41 }
42 //----------------------------------------------------------------------------
43 wxMaracas_SegmentationFM3D::~wxMaracas_SegmentationFM3D( )
44 {
45 //EEDxx2.4 DELETE
46 //      delete _MPR;
47   // Nothing
48 }
49 //----------------------------------------------------------------------------
50 void wxMaracas_SegmentationFM3D::ConfigureVTK( )
51 {
52   _MPR->ConfigureVTK();
53 }
54 //----------------------------------------------------------------------------
55 vtkMPRBaseData  *wxMaracas_SegmentationFM3D::GetVtkMPRBaseData()
56 {
57         return _MPR->GetVtkMPRBaseData();
58 }
59
60 //----------------------------------------------------------------------------
61 vtkPlane2DView *wxMaracas_SegmentationFM3D::GetVtkPlane2DView()
62 {
63         return _MPR->GetVtkPlane2DView();
64 }
65
66
67
68
69 // EOF 
70
71
72
73