Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

nviz3d.h

Go to the documentation of this file.
00001 
00002 // Name:        nviz3d.h
00003 // Purpose:     3D Visualization Header
00004 // Author:      Chad Rempp
00005 // Modified by: Chad Rempp
00006 // Created:     06-01-03
00007 // Copyright:   (c) Chad Rempp 2003
00008 // Licence:     GNU Public License
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 //  NVizFrame class Definition
00021 class Nviz3DCanvas;
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 //  NViz3DCanvas class Definition
00038 class Nviz3DCanvas: public wxGLCanvas
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 

Generated on Mon Jun 23 23:09:52 2003 for NeReK Documentation by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002