]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasProcessingCT.cxx
BUG macOs
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / wxMaracasProcessingCT.cxx
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasProcessingCT.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 #include "wxMaracasProcessingCT.h"
19
20
21 wxMaracasProcessingCT::wxMaracasProcessingCT( wxWindow* parent, marInterfaceCT *mar )
22 : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
23 {
24   // Create the main frame window
25   _processingCTWidget = new wxProcessingCTWidget( this, mar );
26   wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
27   szTop->Add( _processingCTWidget, 1  , wxALL|wxGROW , 0 );
28 //  szTop->Fit( this );
29 //  szTop->SetSizeHints( this );
30   this->SetSizer( szTop );
31   this->SetAutoLayout( true );
32   this->Layout();
33 }
34 //----------------------------------------------------------------------------
35 wxMaracasProcessingCT::~wxMaracasProcessingCT( )
36 {
37   // Nothing
38 }
39 //----------------------------------------------------------------------------
40 void wxMaracasProcessingCT::ConfigureVTK( marImageData *marimagedata, int x, int y, int z )
41 {
42   _processingCTWidget->ConfigureVTK(marimagedata,  x,  y,  z );
43 }
44 //----------------------------------------------------------------------------
45 void wxMaracasProcessingCT::SetThreshold(int min,int max)
46 {
47         _processingCTWidget->SetThreshold(min,max);
48 }
49 //----------------------------------------------------------------------------
50 void wxMaracasProcessingCT::GetThreshold(int *min,int *max)
51 {
52         _processingCTWidget->GetThreshold(min,max);
53 }
54 //----------------------------------------------------------------------------
55 void wxMaracasProcessingCT::Refresh()
56 {
57         _processingCTWidget->Refresh();
58 }
59 //----------------------------------------------------------------------------
60
61
62 // EOF - wxMaracasProcessingCT.cxx
63
64
65
66