]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasSuperpositionPanel.h
DFCH: ManualPaint + imageUndoRedo: Undo/Redo functionality its now working =) =)
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasSuperpositionPanel.h
index aa1baabbd2254d40acfdf9382cbbd0c87e339e6c..380bc4eb4d7d93d68a36ec7e9966fbce5c33ba25 100644 (file)
@@ -1,20 +1,42 @@
-#ifndef wxMaracasSuperpositionPanel_H_
-#define wxMaracasSuperpositionPanel_H_
+#ifndef __wxMaracasSuperpositionPanelH__
+#define __wxMaracasSuperpositionPanelH__
 
-#include "wx/wx.h"
+// -----------------------------------------------------------------------------------------------------------
+// WX headers inclusion.
+// For compilers that support precompilation, includes <wx/wx.h>.
+// -----------------------------------------------------------------------------------------------------------
+
+#include <wx/wxprec.h>
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+#ifndef WX_PRECOMP
+#include <wx/wx.h>
+#endif
+
+#include <wx/scrolwin.h>
+
+//------------------------------------------------------------------------------------------------------------
+// Includes
+//------------------------------------------------------------------------------------------------------------
+
+#include "wxMaracas_N_ViewersWidget.h"
+#include "vtkImageData.h"
+#include "wxVtkBaseView.h"
 
 //------------------------------------------------------------------------------------------------------------
 // Class definition
 //------------------------------------------------------------------------------------------------------------
 
-class wxMaracasSuperpositionPanel : public wxPanel
+class creaMaracasVisu_EXPORT wxMaracasSuperpositionPanel : public wxPanel
 {
 
 public:
 
-       wxMaracasSuperpositionPanel( std::vector<vtkImageData*> imgs, int type, wxWindow *parent, 
-               const wxPoint& pos=wxDefaultPosition, const wxSize& size = wxDefaultSize, long style= wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER, 
-               int vertStart=1, int vertEnd=1, int horzStart=1, int horzEnd=1 );
+       wxMaracasSuperpositionPanel( std::vector<vtkImageData*> imgs, int type, wxWindow *parent, const wxPoint& pos=wxDefaultPosition, 
+       const wxSize& size = wxDefaultSize,long style= wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER, int vertStart=1, int vertEnd=1, 
+       int horzStart=1, int horzEnd=1 );
+
 
        ~wxMaracasSuperpositionPanel(); 
 
@@ -22,14 +44,47 @@ public:
 // Creational and initialization methods
 //------------------------------------------------------------------------------------------------------------
        
-       void createViewPanel();
+       void createSuperpositionPanel();
+
+//------------------------------------------------------------------------------------------------------------
+//  Other functional methods
+//------------------------------------------------------------------------------------------------------------
 
+       void getSpacing( double * spacing );
+
+       wxVtkBaseView* GetWxVtkBaseView();
+       wxVtkMPR2DView * GetwxVtkMPR2DView();
+       vtkImageData * GetshowingVID();
+       int GetImageDataSizeZ();
+       void RefreshInterface();
+       void ChangeImage(vtkImageData* img);
        
+       void    SetVisibleAxis(bool ok);
+       int             GetX();
+       int             GetY();
+       int             GetZ();
+       void    Refresh();      
        
 
 private:
 
+       std::vector<vtkImageData*> _images;
+       
+       
+       int _type;
+       
+       /*
+       * Represents the panel for viewing
+       */
+       wxMaracas_N_ViewersWidget * theViewPanel;
+       
+       /*
+       * Represents the outer sizer of the IRMViewPanel
+       */
+       wxFlexGridSizer* outSizer;
 
+       double last_spacing[3];
+       
 };
 
-#endif /*wxMaracasSuperpositionPanel_H_*/
+#endif /*__wxMaracasSuperpositionPanelH__*/