marble
TextureColorizer.cpp
Go to the documentation of this file.
182 void TextureColorizer::drawIndividualDocument( GeoPainter *painter, const GeoDataDocument *document )
193 const GeoDataLineString *child = static_cast<const GeoDataLineString*>( placemark->geometry() );
204 const GeoDataLinearRing *child = static_cast<const GeoDataLinearRing*>( placemark->geometry() );
228 void TextureColorizer::colorize( QImage *origimg, const ViewportParams *viewport, MapQuality mapQuality )
272 yBottom = ( imgry + yCenterOffset + radius > imgheight )? imgheight : imgry + yCenterOffset + radius;
277 yBottom = ( imgry + 2 * radius + yCenterOffset > imgheight )? imgheight : imgry + 2 * radius + yCenterOffset;
uchar * scanLine(int i)
static void drawIndividualDocument(GeoPainter *painter, const GeoDataDocument *document)
Definition: TextureColorizer.cpp:182
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataGeometry.cpp:77
const char * GeoDataLinearRingType
Definition: GeoDataTypes.cpp:52
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
void drawPolygon(const GeoDataLinearRing &linearRing, Qt::FillRule fillRule=Qt::OddEvenFill)
Draws a given linear ring (a "polygon without holes").
Definition: GeoPainter.cpp:560
bool end()
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition: GeoDataLinearRing.h:68
void setRenderHint(RenderHint hint, bool on)
const char * GeoDataPolygonType
Definition: GeoDataTypes.cpp:69
TextureColorizer(const QString &seafile, const QString &landfile)
Definition: TextureColorizer.cpp:70
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
QVector< GeoDataFeature * >::ConstIterator constBegin() const
Definition: GeoDataContainer.cpp:341
void setColorAt(qreal position, const QColor &color)
void setShowRelief(bool show)
Definition: TextureColorizer.cpp:160
void colorize(QImage *origimg, const ViewportParams *viewport, MapQuality mapQuality)
Definition: TextureColorizer.cpp:228
const char * GeoDataPlacemarkType
Definition: GeoDataTypes.cpp:66
bool isVisible() const
Return whether this feature is visible or not.
Definition: GeoDataFeature.cpp:656
void addLandDocument(const GeoDataDocument *landDocument)
Definition: TextureColorizer.cpp:155
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
void addSeaDocument(const GeoDataDocument *seaDocument)
Definition: TextureColorizer.cpp:150
double toDouble(bool *ok) const
GeoDataGeometry * geometry()
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:152
This file contains the headers for ViewParameters.
void drawRect(const QRectF &rectangle)
int elapsed() const
bool atEnd() const
void fill(uint pixelValue)
QVector< GeoDataFeature * >::ConstIterator constEnd() const
Definition: GeoDataContainer.cpp:346
void setPen(const QColor &color)
int width() const
void setBrush(const QBrush &brush)
const char * GeoDataLineStringType
Definition: GeoDataTypes.cpp:53
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
void drawTextureMap(GeoPainter *painter)
Definition: TextureColorizer.cpp:211
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
This file contains the headers for ViewportParams.
qreal centerLatitude() const
Definition: ViewportParams.cpp:294
QString mid(int position, int n) const
QSize size() const
QString left(int n) const
void start()
int height() const
QTextStream & operator<<(QTextStream &stream, const RoutingInstruction &i)
Definition: RoutingInstruction.cpp:461
bool begin(QPaintDevice *device)
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void setPixel(const QRgb *coastData, QRgb *writeData, int bump, uchar grey)
Definition: TextureColorizer.cpp:355
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.