wxMaracasImageBrowser.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxMaracasImageBrowser.cxx,v $
00005   Language:  C++
00006   Date:      $Date: 2009/05/14 13:54:54 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright: (c) 2002, 2003
00010   License:
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notice for more information.
00015 
00016 =========================================================================*/
00017 
00018 #include <wx/image.h>
00019 #include "wxMaracasImageBrowser.h"
00020 //----------------------------------------------------------------------------
00021 wxMaracasImageBrowser::wxMaracasImageBrowser( wxFrame* parent, marInterface* mar, wxWindowID id )
00022     : wxPanel( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL )
00023 {
00024 //    _mar = mar;
00025 
00026     _view_image = new wxImageViewerWidgetRoi( this, -1 );
00027     //parent->GetToolBar()->EnableTool(ID_TOOLBAR_3D_BROWSER, _view_image->_bboxEnabled);
00028 
00029     wxBoxSizer* szTop = new wxBoxSizer( wxVERTICAL );
00030     szTop->Add( _view_image, 1, wxEXPAND | wxALL, 10 );
00031     SetAutoLayout( true );
00032     SetSizer( szTop );
00033     szTop->Fit( this );
00034     szTop->SetSizeHints( this );
00035 
00036 }
00037 //----------------------------------------------------------------------------
00038 wxMaracasImageBrowser::~wxMaracasImageBrowser()
00039 {
00040   delete _view_image;
00041 //  delete szTop
00042 }
00043 //----------------------------------------------------------------------------
00044 void wxMaracasImageBrowser::LoadData( vtkImageData *imagedata )
00045 {
00046 
00047 //    _mar->_dicom->loadActualSerie();
00048 //    vtkImageData *dummy = _mar->_dicom->getVolume( )->castVtk();
00049     //float range[2];
00050     //dummy->GetScalarRange( range );
00051 
00052     _view_image->ConstructVTK( imagedata );
00053     //_view_image->ConstructVTK(  (vtkImageData *)_mar->_dicom->getVolume( ));
00054     //^ this is not working ??? I don't understand why, some VTK pipeline mystery
00055 }
00056 //----------------------------------------------------------------------------
00057 void wxMaracasImageBrowser::GetROI( int ext[6] )
00058 {
00059     _view_image->GetROI( ext );
00060 }
00061 
00062 // EOF - wxImageBrowser.cxx

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1