marble
EquirectScanlineTextureMapper.cpp
Go to the documentation of this file.
35 RenderJob( StackedTileLoader *tileLoader, int tileLevel, QImage *canvasImage, const ViewportParams *viewportParams, MapQuality mapQuality, int yTop, int yBottom );
49 EquirectScanlineTextureMapper::RenderJob::RenderJob( StackedTileLoader *tileLoader, int tileLevel, QImage *canvasImage, const ViewportParams *viewport, MapQuality mapQuality, int yTop, int yBottom )
76 const QImage::Format optimalFormat = ScanlineTextureMapperContext::optimalCanvasImageFormat( viewport );
103 void EquirectScanlineTextureMapper::mapTexture( const ViewportParams *viewport, int tileZoomLevel, MapQuality mapQuality )
136 QRunnable *const job = new RenderJob( m_tileLoader, tileZoomLevel, &m_canvasImage, viewport, mapQuality, yStart, yEnd );
167 const float pixel2Rad = 1.0/rad2Pixel; // FIXME chainging to qreal may crash Marble when the equator is visible
uchar * scanLine(int i)
void interpolate(MarbleWidget *widget, qreal value)
Definition: examples/cpp/animation-video/main.cpp:68
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
virtual void mapTexture(GeoPainter *painter, const ViewportParams *viewport, int tileZoomLevel, const QRect &dirtyRect, TextureColorizer *texColorizer)
Definition: EquirectScanlineTextureMapper.cpp:69
void colorize(QImage *origimg, const ViewportParams *viewport, MapQuality mapQuality)
Definition: TextureColorizer.cpp:228
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
EquirectScanlineTextureMapper(StackedTileLoader *tileLoader)
Definition: EquirectScanlineTextureMapper.cpp:61
maxThreadCount
void fill(uint pixelValue)
bool mapCoversViewport() const
Definition: ViewportParams.cpp:398
static QImage::Format optimalCanvasImageFormat(const ViewportParams *viewport)
Definition: ScanlineTextureMapperContext.cpp:429
QFuture< T > run(Function function,...)
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void drawImage(const GeoDataCoordinates ¢erPosition, const QImage &image)
Draws an image at the given position. The image is placed with its center located at the given center...
Definition: GeoPainter.cpp:428
Definition: TextureColorizer.h:33
This file contains the headers for ViewportParams.
qreal centerLatitude() const
Definition: ViewportParams.cpp:294
void waitForDone()
bool m_repaintNeeded
Definition: TextureMapperInterface.h:42
static int interpolationStep(const ViewportParams *viewport, MapQuality mapQuality)
Definition: ScanlineTextureMapperContext.cpp:401
QSize size() const
int height() const
void start(QRunnable *runnable, int priority)
Format format() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.