Stellarium  HEAD
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 () const
 
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 (qreal &x, qreal &y) const
 Distort an x,y position according to the distortion. More...
 

Detailed Description

Member Function Documentation

◆ alterBuffer()

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

The default implementation does nothing.

◆ distortXY()

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

The default implementation does nothing.

Reimplemented in StelViewportDistorterFisheyeToSphericMirror.

◆ paintViewportBuffer()

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.