- public:
- TestGLCanvas(wxWindow *parent, const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "TestGLCanvas");
- ~TestGLCanvas(void);
-
- void OnPaint(wxPaintEvent& event);
- void OnSize(wxSizeEvent& event);
- void OnEraseBackground(wxEraseEvent& event);
- void LoadLWO( const wxString &filename);
- void OnMouse( wxMouseEvent& event );
- void InitGL(void);
-
- mesh_info info;
- bool block;
-
-DECLARE_EVENT_TABLE()
+public:
+ TestGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxString& name = wxT("TestGLCanvas"));
+
+ ~TestGLCanvas();
+
+ void LoadDXF(const wxString& filename);
+
+protected:
+ void OnPaint(wxPaintEvent& event);
+ void OnSize(wxSizeEvent& event);
+ void OnEraseBackground(wxEraseEvent& event);
+ void OnMouse(wxMouseEvent& event);
+
+private:
+ void InitGL();
+ void ResetProjectionMode();
+
+ GLData m_gldata;
+ DXFRenderer m_renderer;
+
+ DECLARE_EVENT_TABLE()