00001 00002 00008 #ifndef _vuPreviewWin_h_ 00009 #define _vuPreviewWin_h_ 00010 00011 #include "vuCamera.h" 00012 #include "wxUIElements/vuGLCanvas.h" 00013 #include "wxUtilities/vuBasicUtility.h" 00014 00015 class vuPreviewWin : public vuGLCanvas 00016 { 00017 public: 00019 00022 vuPreviewWin(vuBasicUtility *parent, int size_x, int size_y); 00024 ~vuPreviewWin(); 00025 00027 00028 void attachCamera(vuCamera* cam); 00029 00031 00032 void setCubeSize(int sx, int sy, int sz); 00033 00035 void render(); 00036 00038 bool glInit(); 00039 00041 void glOnMouse(wxMouseEvent &ev); 00042 00043 protected: 00044 00046 00049 virtual void drawRepresentation(float sx, float sy, float sz); 00050 00052 vuBasicUtility *m_Parent; 00053 00055 vuVector center; 00056 00058 vuCamera *m_Camera; 00059 00061 int m_MX, m_MY, m_MZ; 00062 00063 #ifdef WIN32 00064 int m_x, m_y; 00065 #endif 00066 00067 DECLARE_EVENT_TABLE() 00068 00069 }; 00070 00071 #endif