wxMaracasSuperpositionPanel.h

Go to the documentation of this file.
00001 #ifndef __wxMaracasSuperpositionPanelH__
00002 #define __wxMaracasSuperpositionPanelH__
00003 
00004 // -----------------------------------------------------------------------------------------------------------
00005 // WX headers inclusion.
00006 // For compilers that support precompilation, includes <wx/wx.h>.
00007 // -----------------------------------------------------------------------------------------------------------
00008 
00009 #include <wx/wxprec.h>
00010 #ifdef __BORLANDC__
00011 #pragma hdrstop
00012 #endif
00013 #ifndef WX_PRECOMP
00014 #include <wx/wx.h>
00015 #endif
00016 
00017 #include <wx/scrolwin.h>
00018 
00019 //------------------------------------------------------------------------------------------------------------
00020 // Includes
00021 //------------------------------------------------------------------------------------------------------------
00022 
00023 #include "wxMaracas_N_ViewersWidget.h"
00024 #include "vtkImageData.h"
00025 #include "wxVtkBaseView.h"
00026 
00027 //------------------------------------------------------------------------------------------------------------
00028 // Class definition
00029 //------------------------------------------------------------------------------------------------------------
00030 
00031 class creaMaracasVisu_EXPORT wxMaracasSuperpositionPanel : public wxPanel
00032 {
00033 
00034 public:
00035 
00036         wxMaracasSuperpositionPanel( std::vector<vtkImageData*> imgs, int type, wxWindow *parent, const wxPoint& pos=wxDefaultPosition, 
00037         const wxSize& size = wxDefaultSize,long style= wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER, int vertStart=1, int vertEnd=1, 
00038         int horzStart=1, int horzEnd=1 );
00039 
00040 
00041         ~wxMaracasSuperpositionPanel(); 
00042 
00043 //------------------------------------------------------------------------------------------------------------
00044 // Creational and initialization methods
00045 //------------------------------------------------------------------------------------------------------------
00046         
00047         void createSuperpositionPanel();
00048 
00049 //------------------------------------------------------------------------------------------------------------
00050 //  Other functional methods
00051 //------------------------------------------------------------------------------------------------------------
00052 
00053         void getSpacing( double * spacing );
00054 
00055         wxVtkBaseView* GetWxVtkBaseView();
00056         wxVtkMPR2DView * GetwxVtkMPR2DView();
00057         vtkImageData * GetshowingVID();
00058         int GetImageDataSizeZ();
00059         void RefreshInterface();
00060         void ChangeImage(vtkImageData* img);
00061         
00062         void    SetVisibleAxis(bool ok);
00063         int             GetX();
00064         int             GetY();
00065         int             GetZ();
00066         void    Refresh();      
00067         
00068 
00069 private:
00070 
00071         std::vector<vtkImageData*> _images;
00072         
00073         
00074         int _type;
00075         
00076         /*
00077         * Represents the panel for viewing
00078         */
00079         wxMaracas_N_ViewersWidget * theViewPanel;
00080         
00081         /*
00082         * Represents the outer sizer of the IRMViewPanel
00083         */
00084         wxFlexGridSizer* outSizer;
00085 
00086         double last_spacing[3];
00087         
00088 };
00089 
00090 #endif /*__wxMaracasSuperpositionPanelH__*/

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1