41 void setBackground (); |
41 void setBackground (); |
42 void pick (uint uMouseX, uint uMouseY, bool bAdd); |
42 void pick (uint uMouseX, uint uMouseY, bool bAdd); |
43 QColor getMainColor (); |
43 QColor getMainColor (); |
44 void recompileObject (LDObject* obj); |
44 void recompileObject (LDObject* obj); |
45 void refresh (); |
45 void refresh (); |
46 void updateSelFlash(); |
46 void updateSelFlash (); |
|
47 void resetAngles (); |
47 |
48 |
48 double fRotX, fRotY, fRotZ; |
49 double rotX, rotY, rotZ; |
|
50 double panX, panY; |
49 QPoint lastPos; |
51 QPoint lastPos; |
50 double fZoom; |
52 double zoom; |
51 bool bPicking; |
53 bool picking; |
52 |
54 |
53 protected: |
55 protected: |
54 void initializeGL (); |
56 void initializeGL (); |
55 void resizeGL (int w, int h); |
57 void resizeGL (int w, int h); |
56 void paintGL (); |
58 void paintGL (); |
57 |
59 |
58 void mousePressEvent (QMouseEvent* event); |
60 void mousePressEvent (QMouseEvent* ev); |
59 void mouseMoveEvent (QMouseEvent* event); |
61 void mouseMoveEvent (QMouseEvent* ev); |
60 void mouseReleaseEvent (QMouseEvent* event); |
62 void mouseReleaseEvent (QMouseEvent* ev); |
61 void keyPressEvent (QKeyEvent* qEvent); |
63 void keyPressEvent (QKeyEvent* ev); |
62 void keyReleaseEvent (QKeyEvent* qEvent); |
64 void keyReleaseEvent (QKeyEvent* ev); |
63 void wheelEvent (QWheelEvent* ev); |
65 void wheelEvent (QWheelEvent* ev); |
64 |
66 |
65 private: |
67 private: |
66 std::vector<GLuint> uaObjLists; |
68 std::vector<GLuint> uaObjLists; |
67 void compileOneObject (LDObject* obj); |
69 void compileOneObject (LDObject* obj); |