#include <wxQuantificationWidget_base.h>
Public Member Functions | |
wxPnlManualContour (wxWindow *parent, wxQuantificationWidget_base *quantificationWidget_base) | |
void | OnContourWall (wxCommandEvent &event) |
void | OnContourLumen (wxCommandEvent &event) |
void | OnContourHypo (wxCommandEvent &event) |
void | OnContourCalc (wxCommandEvent &event) |
void | OnReplaceContourWall (wxCommandEvent &event) |
void | OnReplaceContourLumen (wxCommandEvent &event) |
void | OnReplaceContourHypo (wxCommandEvent &event) |
void | OnReplaceContourCalc (wxCommandEvent &event) |
void | OnShowAll (wxCommandEvent &event) |
void | OnShowWall (wxCommandEvent &event) |
void | OnShowLumen (wxCommandEvent &event) |
void | OnShowCalc (wxCommandEvent &event) |
void | OnShowHypo (wxCommandEvent &event) |
Private Attributes | |
wxQuantificationWidget_base * | _quantificationWidget_base |
wxButton * | btnContourWall |
wxButton * | btnContourLumen |
wxButton * | btnContourCalc |
wxButton * | btnContourHypo |
wxButton * | btnContourAB |
wxButton * | fixContourWall |
wxButton * | fixContourLumen |
wxButton * | fixContourCalc |
wxButton * | fixContourHypo |
wxCheckBox * | cbShowAllManual |
wxCheckBox * | cbShowWall |
wxCheckBox * | cbShowLumen |
wxCheckBox * | cbShowCalc |
wxCheckBox * | cbShowHypo |
Definition at line 275 of file wxQuantificationWidget_base.h.
wxPnlManualContour::wxPnlManualContour | ( | wxWindow * | parent, | |
wxQuantificationWidget_base * | quantificationWidget_base | |||
) |
Definition at line 878 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, btnContourCalc, btnContourHypo, btnContourLumen, btnContourWall, cbShowAllManual, cbShowCalc, cbShowHypo, cbShowLumen, cbShowWall, fixContourCalc, fixContourHypo, fixContourLumen, fixContourWall, marDictionary::GetString(), OnContourCalc(), OnContourHypo(), OnContourLumen(), OnContourWall(), OnReplaceContourCalc(), OnReplaceContourHypo(), OnReplaceContourLumen(), OnReplaceContourWall(), OnShowAll(), OnShowCalc(), OnShowHypo(), OnShowLumen(), and OnShowWall().
00879 :wxPanel(parent,-1){ 00880 00881 marDictionary marDict; 00882 _quantificationWidget_base=quantificationWidget_base; 00883 00884 //EEDxx 2.6 00885 // this->SetBackgroundColour(*wxLIGHT_GREY); 00886 00887 wxStaticText *title = new wxStaticText(this,-1,wxString(marDict.GetString(803), wxConvUTF8)); // "Contour modification" 00888 // wxStaticText *blank = new wxStaticText(this,-1," "); 00889 00890 00891 wxFont font(12,wxDEFAULT ,wxNORMAL,wxBOLD); 00892 title -> SetFont(font); 00893 00894 //EEDxx 2.6 00895 // title -> SetBackgroundColour(*wxLIGHT_GREY); 00896 00897 00898 //MAZV - texts not included in marDictionary since this is not the final version 00899 btnContourWall = new wxButton( this, -1, _T("External wall \ncontour"),wxPoint(0,0),wxSize(92,40)); 00900 btnContourLumen = new wxButton( this, -1, _T("Lumen contours"),wxPoint(0,0),wxSize(92,40)); 00901 btnContourCalc = new wxButton( this, -1, _T("Calcification \ncontours"),wxPoint(0,0),wxSize(92,40)); 00902 btnContourHypo = new wxButton( this, -1, _T("Hipodense \ncontours"),wxPoint(0,0),wxSize(92,40)); 00903 00904 00905 // btnContourAB = new wxButton( this, -1, "Active Contour AB",wxPoint(0,0),wxSize(92,20)); 00906 fixContourWall = new wxButton(this, -1, _T("Replace \nExternal wall") ,wxPoint(0,0),wxSize(92,40)); 00907 fixContourLumen = new wxButton(this, -1, _T("Replace \nLumen") ,wxPoint(0,0),wxSize(92,40)); 00908 fixContourCalc = new wxButton(this, -1, _T("Replace \nCalcifications") ,wxPoint(0,0),wxSize(92,40)); 00909 fixContourHypo = new wxButton(this, -1, _T("Replace \nHipodense") ,wxPoint(0,0),wxSize(92,40)); 00910 00911 cbShowAllManual = new wxCheckBox(this,-1,_T("Show All")); 00912 cbShowWall = new wxCheckBox(this,-1,_T("Show Wall")); 00913 cbShowLumen = new wxCheckBox(this,-1,_T("Show Lumen")); 00914 cbShowCalc = new wxCheckBox(this,-1,_T("Show Calcifications")); 00915 cbShowHypo = new wxCheckBox(this,-1,_T("Show Hypodense")); 00916 00917 cbShowAllManual->SetValue(true); 00918 cbShowWall->SetValue(true); 00919 cbShowLumen->SetValue(true); 00920 cbShowCalc->SetValue(true); 00921 cbShowHypo->SetValue(true); 00922 00923 00924 wxFlexGridSizer *sizer = new wxFlexGridSizer(1); 00925 00926 wxFlexGridSizer *conts = new wxFlexGridSizer(4); 00927 wxFlexGridSizer *replace = new wxFlexGridSizer(4); 00928 wxFlexGridSizer *options = new wxFlexGridSizer(5); 00929 00930 00931 conts->Add(btnContourWall , 1, wxALL|wxEXPAND, 0); 00932 conts->Add(btnContourLumen , 1, wxALL|wxEXPAND, 0); 00933 conts->Add(btnContourCalc , 1, wxALL|wxEXPAND, 0); 00934 conts->Add(btnContourHypo , 1, wxALL|wxEXPAND, 0); 00935 //conts->Add(btnContourAB , 1, wxALL|wxEXPAND, 0); 00936 00937 replace->Add(fixContourWall , 1, wxALL|wxEXPAND, 0); 00938 replace->Add(fixContourLumen , 1, wxALL|wxEXPAND, 0); 00939 replace->Add(fixContourCalc , 1, wxALL|wxEXPAND, 0); 00940 replace->Add(fixContourHypo , 1, wxALL|wxEXPAND, 0); 00941 //replace->Add(fixContourAB , 1, wxALL|wxEXPAND, 0); 00942 00943 options->Add(cbShowAllManual , 1, wxALL|wxEXPAND, 0); 00944 options->Add(cbShowWall , 1, wxALL|wxEXPAND, 0); 00945 options->Add(cbShowLumen , 1, wxALL|wxEXPAND, 0); 00946 options->Add(cbShowCalc , 1, wxALL|wxEXPAND, 0); 00947 options->Add(cbShowHypo , 1, wxALL|wxEXPAND, 0); 00948 00949 sizer->Add(title , 1, wxALL|wxEXPAND, 10); 00950 sizer->Add(conts , 2, wxALL|wxEXPAND, 10); 00951 sizer->Add(replace , 2, wxALL|wxEXPAND, 10); //wxALIGN_CENTER_HORIZONTAL 00952 sizer->Add(options , 2, wxALL|wxEXPAND, 10); 00953 00954 this->SetSizer(sizer); 00955 this->SetSize(wxSize(400,400)); 00956 00957 Connect(btnContourWall->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnContourWall ); 00958 Connect(btnContourLumen->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnContourLumen ); 00959 Connect(btnContourCalc->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnContourCalc ); 00960 Connect(btnContourHypo->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnContourHypo ); 00961 00962 Connect(fixContourWall->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnReplaceContourWall ); 00963 Connect(fixContourLumen->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnReplaceContourLumen ); 00964 Connect(fixContourCalc->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnReplaceContourCalc ); 00965 Connect(fixContourHypo->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnReplaceContourHypo ); 00966 00967 Connect(cbShowAllManual->GetId() , wxEVT_COMMAND_CHECKBOX_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnShowAll ); 00968 Connect(cbShowWall->GetId() , wxEVT_COMMAND_CHECKBOX_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnShowWall ); 00969 Connect(cbShowLumen->GetId() , wxEVT_COMMAND_CHECKBOX_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnShowLumen ); 00970 Connect(cbShowCalc->GetId() , wxEVT_COMMAND_CHECKBOX_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnShowCalc ); 00971 Connect(cbShowHypo->GetId() , wxEVT_COMMAND_CHECKBOX_CLICKED , (wxObjectEventFunction) &wxPnlManualContour::OnShowHypo ); 00972 00973 00974 }
void wxPnlManualContour::OnContourCalc | ( | wxCommandEvent & | event | ) |
Definition at line 992 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnContourCalc().
Referenced by wxPnlManualContour().
00993 { 00994 _quantificationWidget_base->OnContourCalc(); 00995 }
void wxPnlManualContour::OnContourHypo | ( | wxCommandEvent & | event | ) |
Definition at line 987 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnContourHypo().
Referenced by wxPnlManualContour().
00988 { 00989 _quantificationWidget_base->OnContourHypo(); 00990 }
void wxPnlManualContour::OnContourLumen | ( | wxCommandEvent & | event | ) |
Definition at line 982 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnContourLumen().
Referenced by wxPnlManualContour().
00983 { 00984 _quantificationWidget_base->OnContourLumen(); 00985 }
void wxPnlManualContour::OnContourWall | ( | wxCommandEvent & | event | ) |
Definition at line 977 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnContourWall().
Referenced by wxPnlManualContour().
00978 { 00979 _quantificationWidget_base->OnContourWall(); 00980 }
void wxPnlManualContour::OnReplaceContourCalc | ( | wxCommandEvent & | event | ) |
Definition at line 1014 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnReplaceContourCalc().
Referenced by wxPnlManualContour().
01015 { 01016 _quantificationWidget_base->OnReplaceContourCalc(); 01017 }
void wxPnlManualContour::OnReplaceContourHypo | ( | wxCommandEvent & | event | ) |
Definition at line 1008 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnReplaceContourHypo().
Referenced by wxPnlManualContour().
01009 { 01010 _quantificationWidget_base->OnReplaceContourHypo(); 01011 }
void wxPnlManualContour::OnReplaceContourLumen | ( | wxCommandEvent & | event | ) |
Definition at line 1003 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnReplaceContourLumen().
Referenced by wxPnlManualContour().
01004 { 01005 _quantificationWidget_base->OnReplaceContourLumen(); 01006 }
void wxPnlManualContour::OnReplaceContourWall | ( | wxCommandEvent & | event | ) |
Definition at line 998 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, and wxQuantificationWidget_base::OnReplaceContourWall().
Referenced by wxPnlManualContour().
00999 { 01000 _quantificationWidget_base->OnReplaceContourWall(); 01001 }
void wxPnlManualContour::OnShowAll | ( | wxCommandEvent & | event | ) |
Definition at line 1020 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, cbShowAllManual, cbShowCalc, cbShowHypo, cbShowLumen, cbShowWall, and wxQuantificationWidget_base::OnShowAll().
Referenced by wxPnlManualContour().
01021 { 01022 cbShowCalc->SetValue(cbShowAllManual->GetValue()); 01023 cbShowHypo->SetValue(cbShowAllManual->GetValue()); 01024 cbShowLumen->SetValue(cbShowAllManual->GetValue()); 01025 cbShowWall->SetValue(cbShowAllManual->GetValue()); 01026 _quantificationWidget_base->OnShowAll(cbShowAllManual->GetValue()); 01027 01028 }
void wxPnlManualContour::OnShowCalc | ( | wxCommandEvent & | event | ) |
Definition at line 1042 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, cbShowCalc, and wxQuantificationWidget_base::OnShowCalc().
Referenced by wxPnlManualContour().
01043 { 01044 _quantificationWidget_base->OnShowCalc(cbShowCalc->GetValue()); 01045 }
void wxPnlManualContour::OnShowHypo | ( | wxCommandEvent & | event | ) |
Definition at line 1048 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, cbShowHypo, and wxQuantificationWidget_base::OnShowHypo().
Referenced by wxPnlManualContour().
01049 { 01050 _quantificationWidget_base->OnShowHypo(cbShowHypo->GetValue()); 01051 }
void wxPnlManualContour::OnShowLumen | ( | wxCommandEvent & | event | ) |
Definition at line 1036 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, cbShowLumen, and wxQuantificationWidget_base::OnShowLumen().
Referenced by wxPnlManualContour().
01037 { 01038 _quantificationWidget_base->OnShowLumen(cbShowLumen->GetValue()); 01039 }
void wxPnlManualContour::OnShowWall | ( | wxCommandEvent & | event | ) |
Definition at line 1031 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, cbShowWall, and wxQuantificationWidget_base::OnShowWall().
Referenced by wxPnlManualContour().
01032 { 01033 _quantificationWidget_base->OnShowWall(cbShowWall->GetValue()); 01034 }
Definition at line 293 of file wxQuantificationWidget_base.h.
Referenced by OnContourCalc(), OnContourHypo(), OnContourLumen(), OnContourWall(), OnReplaceContourCalc(), OnReplaceContourHypo(), OnReplaceContourLumen(), OnReplaceContourWall(), OnShowAll(), OnShowCalc(), OnShowHypo(), OnShowLumen(), OnShowWall(), and wxPnlManualContour().
wxButton* wxPnlManualContour::btnContourAB [private] |
Definition at line 298 of file wxQuantificationWidget_base.h.
wxButton* wxPnlManualContour::btnContourCalc [private] |
Definition at line 296 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().
wxButton* wxPnlManualContour::btnContourHypo [private] |
Definition at line 297 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().
wxButton* wxPnlManualContour::btnContourLumen [private] |
Definition at line 295 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().
wxButton* wxPnlManualContour::btnContourWall [private] |
Definition at line 294 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().
wxCheckBox* wxPnlManualContour::cbShowAllManual [private] |
Definition at line 303 of file wxQuantificationWidget_base.h.
Referenced by OnShowAll(), and wxPnlManualContour().
wxCheckBox* wxPnlManualContour::cbShowCalc [private] |
Definition at line 306 of file wxQuantificationWidget_base.h.
Referenced by OnShowAll(), OnShowCalc(), and wxPnlManualContour().
wxCheckBox* wxPnlManualContour::cbShowHypo [private] |
Definition at line 307 of file wxQuantificationWidget_base.h.
Referenced by OnShowAll(), OnShowHypo(), and wxPnlManualContour().
wxCheckBox* wxPnlManualContour::cbShowLumen [private] |
Definition at line 305 of file wxQuantificationWidget_base.h.
Referenced by OnShowAll(), OnShowLumen(), and wxPnlManualContour().
wxCheckBox* wxPnlManualContour::cbShowWall [private] |
Definition at line 304 of file wxQuantificationWidget_base.h.
Referenced by OnShowAll(), OnShowWall(), and wxPnlManualContour().
wxButton* wxPnlManualContour::fixContourCalc [private] |
Definition at line 301 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().
wxButton* wxPnlManualContour::fixContourHypo [private] |
Definition at line 302 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().
wxButton* wxPnlManualContour::fixContourLumen [private] |
Definition at line 300 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().
wxButton* wxPnlManualContour::fixContourWall [private] |
Definition at line 299 of file wxQuantificationWidget_base.h.
Referenced by wxPnlManualContour().