1 /*=========================================================================
4 Module: $RCSfile: wxMaracasImageBrowser.cxx,v $
6 Date: $Date: 2008/10/31 16:32:10 $
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 =========================================================================*/
19 #include "wxMaracasImageBrowser.h"
20 //----------------------------------------------------------------------------
21 wxMaracasImageBrowser::wxMaracasImageBrowser( wxFrame* parent, marInterface* mar, wxWindowID id )
22 : wxPanel( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL )
26 _view_image = new wxImageViewerWidgetRoi( this, -1 );
27 //parent->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, _view_image->_bboxEnabled);
29 wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
30 szTop->Add( _view_image, 1, wxEXPAND | wxALL, 10 );
31 SetAutoLayout( true );
34 szTop->SetSizeHints( this );
37 //----------------------------------------------------------------------------
38 wxMaracasImageBrowser::~wxMaracasImageBrowser()
43 //----------------------------------------------------------------------------
44 void wxMaracasImageBrowser::LoadData( vtkImageData *imagedata )
47 // _mar->_dicom->loadActualSerie();
48 // vtkImageData *dummy = _mar->_dicom->getVolume( )->castVtk();
50 //dummy->GetScalarRange( range );
52 _view_image->ConstructVTK( imagedata );
53 //_view_image->ConstructVTK( (vtkImageData *)_mar->_dicom->getVolume( ));
54 //^ this is not working ??? I don't understand why, some VTK pipeline mystery
56 //----------------------------------------------------------------------------
57 void wxMaracasImageBrowser::GetROI( int ext[6] )
59 _view_image->GetROI( ext );
62 // EOF - wxImageBrowser.cxx