33#ifndef _C3D_MODEL_VIEWER_H_
34#define _C3D_MODEL_VIEWER_H_
73 void Set3DModel(
const wxString& aModelPathName );
84 void OnPaint( wxPaintEvent& event );
90#ifdef USE_OSX_MAGNIFY_EVENT
91 void OnMagnify( wxMouseEvent& event );
98 void OnLeftUp( wxMouseEvent& event );
106 DECLARE_EVENT_TABLE()
Implement a canvas based on a wxGLCanvas.
MODEL_3D * m_ogl_3dmodel
Class holder for 3d model to display on openGL.
void OnMiddleDown(wxMouseEvent &event)
void OnMouseMove(wxMouseEvent &event)
void OnEraseBackground(wxEraseEvent &event)
S3D_CACHE * m_cacheManager
Optional cache manager.
void ogl_set_arrow_material()
void Clear3DModel()
Unload the displayed 3D model.
bool m_reload_is_needed
Flag that we have a new model and it need to be reloaded when the paint is called.
void OnLeftDown(wxMouseEvent &event)
double m_BiuTo3dUnits
factor to convert the model or any other items to keep it in relation to the +/-RANGE_SCALE_3D (it is...
void OnRightClick(wxMouseEvent &event)
void Set3DModel(const S3DMODEL &a3DModel)
Set this model to be displayed.
void OnPaint(wxPaintEvent &event)
bool m_ogl_initialized
Flag if open gl was initialized.
const S3DMODEL * m_3d_model
Original 3d model data.
TRACK_BALL m_trackBallCamera
Camera used in this canvas.
wxGLContext * m_glRC
openGL context
void OnMiddleUp(wxMouseEvent &event)
void OnLeftUp(wxMouseEvent &event)
void OnMouseWheel(wxMouseEvent &event)
wxGLCanvas wrapper for HiDPI/Retina support.
Cache for storing the 3D shapes.
static const wxChar * m_logTrace
Trace mask used to enable or disable the trace output of this class.
Store the a model based on meshes and materials.
Declaration for a track ball camera.