wxMaracasApp.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxMaracasApp.h,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 #ifndef __WX__MARACAS__APP__H__
00019 #define __WX__MARACAS__APP__H__
00020 
00021 // ----------------------------------------------------------------------------
00022 // wx headers inclusion.
00023 // For compilers that support precompilation, includes <wx/wx.h>.
00024 // ----------------------------------------------------------------------------
00025 #include <wx/wxprec.h>
00026 #ifdef __BORLANDC__
00027 #pragma hdrstop
00028 #endif
00029 #ifndef WX_PRECOMP
00030 #include <wx/wx.h>
00031 #endif
00032 #include <kernel/marInterface.h>
00033 #include "wxMaracasFrame.h"
00034 
00035 // 
00036 #define SHOW_WINDOW_NORMAL 0 
00037 #define SHOW_WINDOW_RESTORE 1
00038 #define SHOW_WINDOW_MINIMIZED 2
00039 #define SHOW_WINDOW_MAXIMIZED 3
00040 
00041 
00042 
00046 class wxMaracasApp : public wxApp
00047 {
00048 public:
00049         void SetVolumeData(int dimX,int dimY,int dimZ, 
00050                                float spacingX, float spacingY, float spacingZ, 
00051                                            float rescaleSlope, float rescaleIntercept,
00052                                            unsigned short * pixels);
00053         void            ShowFrame(int cmdShow);
00054         bool            Initialized();
00055         void            Reset();
00056     bool                OnInit( );
00057     int                 OnExit();
00058         void            Run();
00059         wxBitmap*       GetSnapshot();
00060 private:
00061         bool                    initialized;
00062     marInterface        *_mar;
00063     marSimpleDicom      *_marSimpleDicom;
00064         wxMaracasFrame* m_pFrame;
00065         void Initialize();
00066 
00067 };
00068 
00069 #endif // __WX__MARACAS__APP__H__

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1