Stellarium  HEAD
Public Member Functions
StelViewportDistorterFisheyeToSphericMirror Class Reference

Public Member Functions

 StelViewportDistorterFisheyeToSphericMirror (int screen_w, int screen_h)
 
QString getName () const override
 
void paintViewportBuffer (const QOpenGLFramebufferObject *buf) const override
 Draw the viewport on the screen. More...
 
void distortXY (qreal &x, qreal &y) const override
 Distort an x,y position according to the distortion. More...
 
- Public Member Functions inherited from StelViewportEffect
virtual void alterBuffer (QOpenGLFramebufferObject *) const
 Alter the GL frame buffer, this method must not display anything. More...
 

Member Function Documentation

◆ distortXY()

void StelViewportDistorterFisheyeToSphericMirror::distortXY ( qreal &  x,
qreal &  y 
) const
overridevirtual

Distort an x,y position according to the distortion.

The default implementation does nothing.

Reimplemented from StelViewportEffect.

◆ paintViewportBuffer()

void StelViewportDistorterFisheyeToSphericMirror::paintViewportBuffer ( const QOpenGLFramebufferObject *  buf) const
overridevirtual

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 from StelViewportEffect.