00001
00002
00003
00004
00005
00006
00007
00008
00010
00011 #ifndef _NVIZ3D_H_
00012 #define _NVIZ3D_H_
00013
00014 #include "wx/wx.h"
00015 #include "wx/glcanvas.h"
00016 #include "GL/glu.h"
00017
00019
00021
00022 class NvizFrame: public wxFrame
00023 {
00024 public:
00025 NvizFrame(wxDialog *parent, const wxString& title, const wxPoint& pos,
00026 const wxSize& size, long style = wxDEFAULT_FRAME_STYLE);
00027 void OnExit(wxCommandEvent& event);
00028
00029 public:
00030 Nviz3DCanvas* glc_nvizcanvas;
00031
00032 DECLARE_EVENT_TABLE()
00033 };
00034
00036
00038
00039 {
00040 friend class NVizFrame;
00041 public:
00042 Nviz3DCanvas(wxWindow *parent, const wxWindowID id = -1,
00043 const wxPoint& pos = wxDefaultPosition,
00044 const wxSize& size = wxDefaultSize,
00045 long style = 0, const wxString& name = "TestGLCanvas");
00046 ~Nviz3DCanvas(void);
00047 void DrawNeuron(GLUquadricObj *obj, GLfloat x, GLfloat y, GLfloat z);
00048 void InitGL(void);
00049 void OnEnterWindow( wxMouseEvent& event );
00050 void OnEraseBackground(wxEraseEvent& event);
00051 void OnMouse( wxMouseEvent& event );
00052 void OnPaint(wxPaintEvent& event);
00053 void OnSize(wxSizeEvent& event);
00054 void Render( void );
00055
00056 private:
00057 bool m_init;
00058
00059 DECLARE_EVENT_TABLE()
00060 };
00061
00062 #endif
00063