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

Allow to apply visual effects on the whole Stellarium viewport.

Member Function Documentation

◆ alterBuffer()

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

Alter the GL frame buffer, this method must not display anything.

The default implementation does nothing.

◆ distortXY()

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

Distort an x,y position according to the distortion.

The default implementation does nothing.

Reimplemented in StelViewportDistorterFisheyeToSphericMirror.

◆ paintViewportBuffer()

virtual void StelViewportEffect::paintViewportBuffer ( const QOpenGLFramebufferObject *  buf) const
virtual

Draw the viewport on the screen.

Parameters
bufthe GL frame buffer containing the Stellarium viewport already drawn. The default implementation paints the buffer on the fullscreen.

Reimplemented in StelViewportDistorterFisheyeToSphericMirror.