StelAppGraphicsWidget.hpp   StelAppGraphicsWidget.hpp 
skipping to change at line 35 skipping to change at line 35
class StelViewportEffect; class StelViewportEffect;
//! @class StelAppGraphicsWidget //! @class StelAppGraphicsWidget
//! A QGraphicsWidget encapsulating all the Stellarium main sky view and th e embedded GUI widgets //! A QGraphicsWidget encapsulating all the Stellarium main sky view and th e embedded GUI widgets
//! such as the moving button bars. //! such as the moving button bars.
//! It manages redirection of users inputs to the core and GUI. //! It manages redirection of users inputs to the core and GUI.
class StelAppGraphicsWidget : public QGraphicsWidget class StelAppGraphicsWidget : public QGraphicsWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
StelAppGraphicsWidget(); StelAppGraphicsWidget(class StelRenderer* renderer);
~StelAppGraphicsWidget(); ~StelAppGraphicsWidget();
//! Initialize the StelAppGraphicsWidget. //! Initialize the StelAppGraphicsWidget.
void init(class QSettings* conf); void init(class QSettings* conf);
//! Paint the main sky view and the embedded GUI widgets such as the moving button bars. //! Paint the main sky view and the embedded GUI widgets such as the moving button bars.
//! This method is called automatically by the GraphicsView. //! This method is called automatically by the GraphicsView.
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem * option, QWidget* widget=0); virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem * option, QWidget* widget=0);
//! Define the type of viewport effect to use //! Define the type of viewport effect to use
skipping to change at line 64 skipping to change at line 64
protected: protected:
virtual void keyPressEvent(QKeyEvent* event); virtual void keyPressEvent(QKeyEvent* event);
virtual void keyReleaseEvent(QKeyEvent* event); virtual void keyReleaseEvent(QKeyEvent* event);
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event); virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
virtual void wheelEvent(QGraphicsSceneWheelEvent * wheelEvent); virtual void wheelEvent(QGraphicsSceneWheelEvent * wheelEvent);
virtual void resizeEvent(QGraphicsSceneResizeEvent* event); virtual void resizeEvent(QGraphicsSceneResizeEvent* event);
private: private:
//! Provides Renderer with access to paintPartial.
friend class StelAppGraphicsWidgetRenderClient;
double previousPaintTime; double previousPaintTime;
//! The time at the last time re refreshed the frame
//! Since paint may decide to stop before we finish to render a comp
lete scene, this is not necessarily the same
//! than `previousPaintTime`.
double previousPaintFrameTime;
//! The main application instance. //! The main application instance.
class StelApp* stelApp; class StelApp* stelApp;
//! The state of paintPartial method //! The state of paintPartial method
int paintState; int paintState;
//! set to true to use buffers //! Used for all graphics functionality.
bool useBuffers; class StelRenderer* renderer;
//! The framebuffer where we are currently drawing the scene
class QGLFramebufferObject* backgroundBuffer;
//! The framebuffer that we use while waiting for the drawing to be
done
class QGLFramebufferObject* foregroundBuffer;
//! Initialize the opengl buffer objects.
void initBuffers();
//! Swap the buffers
//! this should be called after we finish the paint
void swapBuffers();
//! Iterate through the drawing sequence. //! Iterate through the drawing sequence.
bool paintPartial(); bool paintPartial();
StelViewportEffect* viewportEffect; StelViewportEffect* viewportEffect;
void distortPos(QPointF* pos); void distortPos(QPointF* pos);
bool doPaint; bool doPaint;
}; };
#endif // _STELAPPGRAPHICSWIDGET_HPP_ #endif // _STELAPPGRAPHICSWIDGET_HPP_
 End of changes. 4 change blocks. 
19 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/