wxMaracasApp.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __WX__MARACAS__APP__H__
00019 #define __WX__MARACAS__APP__H__
00020
00021
00022
00023
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__