StelAppGraphicsWidget.hpp   StelAppGraphicsWidget.hpp 
skipping to change at line 51 skipping to change at line 51
//! 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
//! @param effectName must be one of 'none', 'framebufferOnly', 'sph ericMirrorDistorter' //! @param effectName must be one of 'none', 'framebufferOnly', 'sph ericMirrorDistorter'
void setViewportEffect(const QString& effectName); void setViewportEffect(const QString& effectName);
//! Get the type of viewport effect currently used //! Get the type of viewport effect currently used
QString getViewportEffect() const; QString getViewportEffect() const;
//! Set whether widget repaint are necessary.
void setDoPaint(bool b) {doPaint=b;}
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:
skipping to change at line 88 skipping to change at line 91
//! Initialize the opengl buffer objects. //! Initialize the opengl buffer objects.
void initBuffers(); void initBuffers();
//! Swap the buffers //! Swap the buffers
//! this should be called after we finish the paint //! this should be called after we finish the paint
void swapBuffers(); 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;
}; };
#endif // _STELAPPGRAPHICSWIDGET_HPP_ #endif // _STELAPPGRAPHICSWIDGET_HPP_
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 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/