]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / wxMaracasApp.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasApp.h,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 #ifndef __WX__MARACAS__APP__H__
19 #define __WX__MARACAS__APP__H__
20
21 // ----------------------------------------------------------------------------
22 // wx headers inclusion.
23 // For compilers that support precompilation, includes <wx/wx.h>.
24 // ----------------------------------------------------------------------------
25 #include <wx/wxprec.h>
26 #ifdef __BORLANDC__
27 #pragma hdrstop
28 #endif
29 #ifndef WX_PRECOMP
30 #include <wx/wx.h>
31 #endif
32 #include <kernel/marInterface.h>
33 #include "wxMaracasFrame.h"
34
35 // 
36 #define SHOW_WINDOW_NORMAL 0 
37 #define SHOW_WINDOW_RESTORE 1
38 #define SHOW_WINDOW_MINIMIZED 2
39 #define SHOW_WINDOW_MAXIMIZED 3
40
41
42
43 /** 
44  * \brief Maracas main application.
45  */
46 class wxMaracasApp : public wxApp
47 {
48 public:
49         void SetVolumeData(int dimX,int dimY,int dimZ, 
50                                float spacingX, float spacingY, float spacingZ, 
51                                            float rescaleSlope, float rescaleIntercept,
52                                            unsigned short * pixels);
53         void            ShowFrame(int cmdShow);
54         bool            Initialized();
55         void            Reset();
56     bool                OnInit( );
57     int                 OnExit();
58         void            Run();
59         wxBitmap*       GetSnapshot();
60 private:
61         bool                    initialized;
62     marInterface        *_mar;
63     marSimpleDicom      *_marSimpleDicom;
64         wxMaracasFrame* m_pFrame;
65         void Initialize();
66
67 };
68
69 #endif // __WX__MARACAS__APP__H__