Stellarium  0.17.0
Public Member Functions
StelViewportEffect Class Reference

Allow to apply visual effects on the whole Stellarium viewport. More...

#include <StelViewportEffect.hpp>

Public Member Functions

virtual QString getName ()
 
virtual void alterBuffer (QOpenGLFramebufferObject *) const
 Alter the GL frame buffer, this method must not display anything. More...
 
virtual void paintViewportBuffer (const QOpenGLFramebufferObject *buf) const
 Draw the viewport on the screen. More...
 
virtual void distortXY (float &x, float &y) const
 Distort an x,y position according to the distortion. More...
 

Detailed Description

Member Function Documentation

virtual void StelViewportEffect::alterBuffer ( QOpenGLFramebufferObject *  ) const
inlinevirtual

The default implementation does nothing.

virtual void StelViewportEffect::distortXY ( float &  x,
float &  y 
) const
inlinevirtual

The default implementation does nothing.

Reimplemented in StelViewportDistorterFisheyeToSphericMirror.

virtual void StelViewportEffect::paintViewportBuffer ( const QOpenGLFramebufferObject *  buf) const
virtual
Parameters
bufthe GL frame buffer containing the Stellarium viewport alreay drawn. The default implementation paints the buffer on the fullscreen.

Reimplemented in StelViewportDistorterFisheyeToSphericMirror.