src/glRenderer.h

changeset 1113
5f3139c802bf
parent 1111
471572db2fe1
child 1119
749fdf61b5cd
equal deleted inserted replaced
1112:d1d8be74275b 1113:5f3139c802bf
78 QColor backgroundColor() const; 78 QColor backgroundColor() const;
79 Camera camera() const; 79 Camera camera() const;
80 const CameraInfo& cameraInfo(Camera camera) const; 80 const CameraInfo& cameraInfo(Camera camera) const;
81 QString cameraName(Camera camera) const; 81 QString cameraName(Camera camera) const;
82 QByteArray capturePixels(); 82 QByteArray capturePixels();
83 void compileObject(LDObject* obj);
84 GLCompiler* compiler() const; 83 GLCompiler* compiler() const;
85 QString currentCameraName() const; 84 QString currentCameraName() const;
86 void drawGLScene(); 85 void drawGLScene();
87 void forgetObject(LDObject* obj); 86 void forgetObject(LDObject* obj);
88 Axis getCameraAxis(bool y, Camera camid = (Camera) -1); 87 Axis getCameraAxis(bool y, Camera camid = (Camera) -1);
89 void hardRefresh();
90 void highlightCursorObject(); 88 void highlightCursorObject();
91 void initGLData(); 89 void initGLData();
92 bool isDrawOnly() const; 90 bool isDrawOnly() const;
93 bool isPicking() const; 91 bool isPicking() const;
94 Qt::KeyboardModifiers keyboardModifiers() const; 92 Qt::KeyboardModifiers keyboardModifiers() const;
93 const Model* model() const;
95 bool mouseHasMoved() const; 94 bool mouseHasMoved() const;
96 QPoint const& mousePosition() const; 95 QPoint const& mousePosition() const;
97 QPointF const& mousePositionF() const; 96 QPointF const& mousePositionF() const;
98 void needZoomToFit(); 97 void needZoomToFit();
99 LDObject* objectAtCursor() const; 98 LDObject* objectAtCursor() const;
110 double virtualHeight() const; 109 double virtualHeight() const;
111 double virtualWidth() const; 110 double virtualWidth() const;
112 void zoomNotch(bool inward); 111 void zoomNotch(bool inward);
113 112
114 static const QPen thinBorderPen; 113 static const QPen thinBorderPen;
114
115 signals:
116 void objectHighlightingChanged(LDObject* object);
115 117
116 protected: 118 protected:
117 void initializeGL(); 119 void initializeGL();
118 void keyPressEvent(QKeyEvent* event); 120 void keyPressEvent(QKeyEvent* event);
119 void keyReleaseEvent(QKeyEvent* event); 121 void keyReleaseEvent(QKeyEvent* event);

mercurial