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

C:/Documents/projects/nerek/nviz-3d/nviz3d.h

Go to the documentation of this file.
00001 ///////////////////////////////////////////////////////////////////////////////
00002 // Name:        nviz3d.h
00003 // Purpose:     3D Visualization Library
00004 // Author:      Chad Rempp
00005 // Modified by:
00006 // Created:     06-01-03
00007 // Copyright:   (c) Chad Rempp 2003
00008 // Licence:     GNU Public License
00009 ///////////////////////////////////////////////////////////////////////////////
00010 
00011 #ifndef _NVIZ3D_H_
00012 #define _NVIZ3D_H_
00013 
00014 #include "wx/glcanvas.h"
00015 #include "GL/glu.h"
00016 
00017 //-----------------------------------------------------------------------------
00018 //  NViz3DApp class Definition
00019 //-----------------------------------------------------------------------------
00020 class Nviz3DApp: public wxApp
00021 {
00022 public:
00023     bool OnInit(void);
00024 };
00025 
00026 //-----------------------------------------------------------------------------
00027 //  NVizFrame class Definition
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 //  NViz3DCanvas class Definition
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 //  Menu Item enum
00077 //-----------------------------------------------------------------------------
00078 
00079 #endif
00080 

Generated on Fri Jun 6 22:02:11 2003 for NeReK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002