]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/wxMaracas_ManualTree_MPR.cxx
creaMaracasVisu Library
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / wxMaracas_ManualTree_MPR.cxx
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracas_ManualTree_MPR.cxx,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:11 $
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 #include "wxMaracas_ManualTree_MPR.h"
19 #include <wx/splitter.h>
20
21
22 //----------------------------------------------------------------------------
23 //----------------------------------------------------------------------------
24 //----------------------------------------------------------------------------
25 wxMaracas_ManualTree_MPR::wxMaracas_ManualTree_MPR( wxWindow* parent, marImageData* marimagedata,double voxelSize )
26 : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
27 {
28
29   // Create the main frame window
30         _MPR = new wxManualTree_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 );
35         szTop->Fit( this );
36         szTop->SetSizeHints( this );
37 //EEDxx2.4
38 //      FitInside();
39
40 }
41 //----------------------------------------------------------------------------
42 wxMaracas_ManualTree_MPR::~wxMaracas_ManualTree_MPR( )
43 {
44 //EEDxx2.4 DELETE
45 //      delete _MPR;
46   // Nothing
47 }
48 //----------------------------------------------------------------------------
49 void wxMaracas_ManualTree_MPR::ConfigureVTK( )
50 {
51   _MPR->ConfigureVTK();
52 }
53 //----------------------------------------------------------------------------
54 vtkMPRBaseData  *wxMaracas_ManualTree_MPR::GetVtkMPRBaseData()
55 {
56         return _MPR->GetVtkMPRBaseData();
57 }
58
59 //----------------------------------------------------------------------------
60 vtkPlane2DView *wxMaracas_ManualTree_MPR::GetVtkPlane2DView()
61 {
62         return _MPR->GetVtkPlane2DView();
63 }
64
65 //----------------------------------------------------------------------------
66 manualContourModel *wxMaracas_ManualTree_MPR::GetManualContourModel()
67 {
68         return _MPR->GetManualContourModel();
69 }
70
71
72
73
74 // EOF - wxMaracasMPR.cxx
75
76
77
78