wxMaracasFrame.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__FRAME__HXX__
00019 #define __WX__MARACAS__FRAME__HXX__
00020
00021 #include <wx/wx.h>
00022 #include <wx/frame.h>
00023 #include "marTypes.h"
00024 #include "wxMaracas3DBrowser.h"
00025 #include "wxMaracasQuantification.h"
00026 #include <kernel/marSimpleDicom.h>
00027
00028 class marInterface;
00029
00036 class MAR_INTERFACEWX_EXPORT wxMaracasFrame: public wxFrame
00037 {
00038 public:
00039
00040 wxMaracasFrame( wxFrame *parent, wxWindowID id = -1,
00041 marInterface* mar = NULL, marSimpleDicom *simpleDicom=NULL, char *dictionaryFileName=NULL,
00042 const wxString& title = wxT("MARACAS: MAgnetic Resonance Angiography Computer ASsisted analysis"),
00043 const wxPoint& pos = wxDefaultPosition,
00044 const wxSize& size = wxDefaultSize,
00045 long style = wxDEFAULT_FRAME_STYLE);
00046
00047 void OnDeleteAxis(wxCommandEvent &event);
00048 void OnNewAxis(wxCommandEvent &event);
00049
00050 void RecreateToolbar( );
00051
00052 void OnAboutCreatis( wxCommandEvent& event );
00053 void OnQuit( wxCloseEvent& event );
00054
00055 void OnParameters( wxCommandEvent& event );
00056
00057 void OnStartExperiment( wxCommandEvent& event );
00058
00059 void OnQuant (wxCommandEvent& event );
00060
00061 void OnRegenerateAll( wxCommandEvent& event );
00062 void OnRegenerateSplineAxe( wxCommandEvent& event );
00063 void OnCleanContours( wxCommandEvent& event );
00064 void OnRegenerateSignal( wxCommandEvent& event );
00065
00066
00067
00068 wxMaracas3DBrowser* Getwxmaracas3dbrowser() { return _wxmaracas3dbrowser; }
00069 wxMaracasQuantification* Getwxmaracasquantification() { return _wxmaracasquantification; }
00070
00071 private:
00072 wxPanel *_actual_panel;
00073 wxGauge *_progressGauge;
00074 marInterface *_mar;
00075 marSimpleDicom *_marSimpleDicom;
00076
00077 wxMaracas3DBrowser *_wxmaracas3dbrowser;
00078 wxMaracasQuantification *_wxmaracasquantification;
00079
00080 DECLARE_EVENT_TABLE( );
00081
00082 void DeletePanels();
00083 };
00084
00085 static const long TOOLBAR_STYLE = wxNO_BORDER | wxTB_FLAT | wxTB_DOCKABLE | wxTB_HORIZONTAL;
00086
00087 enum
00088 {
00090 ID_TOOLBAR = 200,
00091 ID_TOOLBAR_DATA_BROWSER,
00092 ID_TOOLBAR_PARAMETERS,
00093 ID_TOOLBAR_IMAGE_BROWSER,
00094 ID_TOOLBAR_3D_BROWSER,
00095 ID_TOOLBAR_PLANS,
00096 ID_TOOLBAR_QUANT,
00097 ID_TOOLBAR_ROTATE,
00098 ID_TOOLBAR_BRIGHT,
00099 ID_TOOLBAR_PAN,
00100 ID_TOOLBAR_ZOOM,
00101 ID_TOOLBAR_CLEAR,
00102 ID_TOOLBAR_INTENSITY,
00103 ID_TOOLBAR_HELP,
00104 };
00105
00106 #endif // __WX__MARACAS__FRAME__HXX__