marble
GeoLineStringGraphicsItem.cpp
Go to the documentation of this file.
22 GeoLineStringGraphicsItem::GeoLineStringGraphicsItem( const GeoDataFeature *feature, const GeoDataLineString* lineString )
55 if ( float( viewport->radius() ) / EARTH_RADIUS * style()->lineStyle().physicalWidth() < style()->lineStyle().width() )
58 currentPen.setWidthF( float( viewport->radius() ) / EARTH_RADIUS * style()->lineStyle().physicalWidth() );
Qt::PenCapStyle capStyle() const
Return the current pen cap style.
Definition: GeoDataLineStyle.cpp:115
const GeoDataLineString * m_lineString
Definition: GeoLineStringGraphicsItem.h:35
Qt::PenStyle style() const
void setBackgroundMode(Qt::BGMode mode)
void setStyle(Qt::PenStyle style)
const QBrush & background() const
void setLineString(const GeoDataLineString *lineString)
Definition: GeoLineStringGraphicsItem.cpp:28
void setBackground(const QBrush &brush)
Qt::PenStyle penStyle() const
Return the current pen cap style.
Definition: GeoDataLineStyle.cpp:125
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
virtual void paint(GeoPainter *painter, const ViewportParams *viewport)
Paints the item using the given GeoPainter.
Definition: GeoLineStringGraphicsItem.cpp:38
void save()
Definition: GeoGraphicsItem.h:30
const GeoDataFeature * feature() const
Returns the placemark for that item.
Definition: GeoGraphicsItem.cpp:62
void setAlpha(int alpha)
void drawPolyline(const GeoDataLineString &lineString, const QString &labelText=QString(), LabelPositionFlags labelPositionFlags=LineCenter)
Draws a given line string (a "polyline").
Definition: GeoPainter.cpp:474
GeoDataLineStyle & lineStyle()
Return the label style of this style.
Definition: GeoDataStyle.cpp:143
void setCapStyle(Qt::PenCapStyle style)
QColor color() const
void setFont(const QFont &font)
void setDashPattern(const QVector< qreal > &pattern)
void setPen(const QColor &color)
Definition: MarbleGlobal.h:113
void setWidthF(qreal width)
Definition: MarbleGlobal.h:111
Definition: MarbleGlobal.h:112
void setColor(const QColor &color)
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
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.
void restore()
Qt::PenCapStyle capStyle() const
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the bounding box covered by the item.
Definition: GeoLineStringGraphicsItem.cpp:33
qreal widthF() const
GeoLineStringGraphicsItem(const GeoDataFeature *feature, const GeoDataLineString *lineString)
Definition: GeoLineStringGraphicsItem.cpp:22
float physicalWidth() const
Return the current physical width of the line.
Definition: GeoDataLineStyle.cpp:105
void setColor(const QColor &color)
const QPen & pen() const
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the smallest latLonAltBox that contains the LineString.
Definition: GeoDataLineString.cpp:580
QColor paintedColor() const
Returns the color that should be painted: Either color() or a randomized version of it...
Definition: GeoDataColorStyle.cpp:103
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.