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