]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp.h
Support #1768 CREATIS Licence insertion
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / wxMaracasApp.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 /*=========================================================================
27
28   Program:   wxMaracas
29   Module:    $RCSfile: wxMaracasApp.h,v $
30   Language:  C++
31   Date:      $Date: 2012/11/15 14:14:56 $
32   Version:   $Revision: 1.2 $
33
34   Copyright: (c) 2002, 2003
35   License:
36   
37      This software is distributed WITHOUT ANY WARRANTY; without even 
38      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
39      PURPOSE.  See the above copyright notice for more information.
40
41 =========================================================================*/
42
43 #ifndef __WX__MARACAS__APP__H__
44 #define __WX__MARACAS__APP__H__
45
46 // ----------------------------------------------------------------------------
47 // wx headers inclusion.
48 // For compilers that support precompilation, includes <wx/wx.h>.
49 // ----------------------------------------------------------------------------
50 #include <wx/wxprec.h>
51 #ifdef __BORLANDC__
52 #pragma hdrstop
53 #endif
54 #ifndef WX_PRECOMP
55 #include <wx/wx.h>
56 #endif
57 #include <kernel/marInterface.h>
58 #include "wxMaracasFrame.h"
59
60 // 
61 #define SHOW_WINDOW_NORMAL 0 
62 #define SHOW_WINDOW_RESTORE 1
63 #define SHOW_WINDOW_MINIMIZED 2
64 #define SHOW_WINDOW_MAXIMIZED 3
65
66
67
68 /** 
69  * \brief Maracas main application.
70  */
71 class wxMaracasApp : public wxApp
72 {
73 public:
74         void SetVolumeData(int dimX,int dimY,int dimZ, 
75                                float spacingX, float spacingY, float spacingZ, 
76                                            float rescaleSlope, float rescaleIntercept,
77                                            unsigned short * pixels);
78         void            ShowFrame(int cmdShow);
79         bool            Initialized();
80         void            Reset();
81     bool                OnInit( );
82     int                 OnExit();
83         void            Run();
84         wxBitmap*       GetSnapshot();
85 private:
86         bool                    initialized;
87     marInterface        *_mar;
88     marSimpleDicom      *_marSimpleDicom;
89         wxMaracasFrame* m_pFrame;
90         void Initialize();
91
92 };
93
94 #endif // __WX__MARACAS__APP__H__