#include <gui.h>
Public Methods | |
netDialog (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE) | |
Public Attributes | |
wxButton * | btn_newinput |
wxButton * | btn_delinput |
wxButton * | btn_setwghts |
wxButton * | btn_train |
wxButton * | btn_run |
wxButton * | btn_setdesrd |
wxButton * | btn_showdiag |
wxButton * | btn_quit |
wxTextCtrl * | txt_bias |
wxTextCtrl * | txt_squashval |
wxStaticText * | stc_bias |
wxStaticText * | stc_squashval |
Private Methods | |
void | OnNewInput (wxCommandEvent &event) |
void | OnDelInput (wxCommandEvent &event) |
void | OnSetWghts (wxCommandEvent &event) |
void | OnSetDesrd (wxCommandEvent &event) |
void | OnTrain (wxCommandEvent &event) |
void | OnRun (wxCommandEvent &event) |
void | OnShowDiag (wxCommandEvent &event) |
void | OnQuit (wxCommandEvent &event) |
|
Definition at line 89 of file gui.cpp. References btn_delinput, btn_newinput, btn_quit, btn_run, btn_setdesrd, btn_setwghts, btn_showdiag, btn_train, netDialog_BIAS_TXT, netDialog_DELINPUT_BTN, netDialog_NEWINPUT_BTN, netDialog_QUIT_BTN, netDialog_RUN_BTN, netDialog_SETDESRD_BTN, netDialog_SETWGHTS_BTN, netDialog_SHOWDIAG_BTN, netDialog_SQUASHVAL_TXT, netDialog_TRAIN_BTN, stc_bias, stc_squashval, txt_bias, and txt_squashval.
00090 : 00091 wxDialog(parent, id, title, position, size, style) 00092 { 00093 btn_newinput = new wxButton(this, netDialog_NEWINPUT_BTN, "New Input", wxPoint(10,10), wxSize(70,17)); 00094 btn_delinput = new wxButton(this, netDialog_DELINPUT_BTN, "Delete Input", wxPoint(10,30), wxSize(70,17)); 00095 btn_setwghts = new wxButton(this, netDialog_SETWGHTS_BTN, "Set Weights", wxPoint(10,50), wxSize(70,17)); 00096 btn_train = new wxButton(this, netDialog_TRAIN_BTN, "Train", wxPoint(10,90), wxSize(70,17)); 00097 btn_run = new wxButton(this, netDialog_RUN_BTN, "Run", wxPoint(10,110), wxSize(70,17)); 00098 btn_setdesrd = new wxButton(this, netDialog_SETDESRD_BTN, "Set Desired", wxPoint(10,70), wxSize(70,17)); 00099 btn_showdiag = new wxButton(this, netDialog_SHOWDIAG_BTN, "Show Diag", wxPoint(10,170), wxSize(70,17)); 00100 btn_quit = new wxButton(this, netDialog_QUIT_BTN, "Quit", wxPoint(10,200), wxSize(70,17)); 00101 txt_bias = new wxTextCtrl(this, netDialog_BIAS_TXT, "", wxPoint(90,150), wxSize(25,22)); 00102 txt_squashval = new wxTextCtrl(this, netDialog_SQUASHVAL_TXT, "", wxPoint(90,130), wxSize(25,22)); 00103 stc_bias = new wxStaticText(this, -1, "Bias Value", wxPoint(10,150)); 00104 stc_squashval = new wxStaticText(this, -1, "Squash Value", wxPoint(10,130)); 00105 } |
|
Definition at line 111 of file gui.cpp.
00112 { 00113 } |
|
Definition at line 107 of file gui.cpp.
00108 { 00109 } |
|
Definition at line 153 of file gui.cpp.
00154 { 00155 Close(TRUE); 00156 } |
|
Definition at line 127 of file gui.cpp.
00128 { 00129 } |
|
Definition at line 119 of file gui.cpp.
00120 { 00121 } |
|
Definition at line 115 of file gui.cpp.
00116 { 00117 } |
|
Definition at line 131 of file gui.cpp.
00132 { 00133 wxFrame *dlg_gldiagram = new wxFrame(this, -1, "Network Diagram", 00134 wxPoint(50,50), wxSize(450,340)); 00135 wxGLCanvas *glc_netdiag = new wxGLCanvas(dlg_gldiagram, -1, wxPoint(0,0), wxSize(200,200)); 00136 dlg_gldiagram->Show(TRUE); 00137 glc_netdiag->SetCurrent(); 00138 00139 glClearColor(0.0, 0.0, 0.0, 0.0); 00140 glViewport(0, 0, (GLint)200, (GLint)200); 00141 glColor3f(1.0, 1.0, 1.0); 00142 glBegin(GL_POLYGON); 00143 glVertex2f(-0.5, -0.5); 00144 glVertex2f(-0.5, 0.5); 00145 glVertex2f(0.5, 0.5); 00146 glVertex2f(0.5, -0.5); 00147 glEnd(); 00148 glFlush(); 00149 00150 glc_netdiag->SwapBuffers(); 00151 } |
|
Definition at line 123 of file gui.cpp.
00124 { 00125 } |
|
Definition at line 55 of file gui.h. Referenced by netDialog. |
|
Definition at line 54 of file gui.h. Referenced by netDialog. |
|
Definition at line 61 of file gui.h. Referenced by netDialog. |
|
Definition at line 58 of file gui.h. Referenced by netDialog. |
|
Definition at line 59 of file gui.h. Referenced by netDialog. |
|
Definition at line 56 of file gui.h. Referenced by netDialog. |
|
Definition at line 60 of file gui.h. Referenced by netDialog. |
|
Definition at line 57 of file gui.h. Referenced by netDialog. |
|
Definition at line 64 of file gui.h. Referenced by netDialog. |
|
Definition at line 65 of file gui.h. Referenced by netDialog. |
|
Definition at line 62 of file gui.h. Referenced by netDialog. |
|
Definition at line 63 of file gui.h. Referenced by netDialog. |