Stellarium 0.13.2
List of all members | 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

Allow to apply visual effects on the whole Stellarium viewport.

Definition at line 30 of file StelViewportEffect.hpp.

Member Function Documentation

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

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

The default implementation does nothing.

Definition at line 38 of file StelViewportEffect.hpp.

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

Distort an x,y position according to the distortion.

The default implementation does nothing.

Reimplemented in StelViewportDistorterFisheyeToSphericMirror.

Definition at line 45 of file StelViewportEffect.hpp.

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

Draw the viewport on the screen.

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

Reimplemented in StelViewportDistorterFisheyeToSphericMirror.


The documentation for this class was generated from the following file: