KOSMIndoorMap
scenegraphitem.cpp
65 | (fillBrush.style() == Qt::NoBrush && textureBrush.style() == Qt::NoBrush ? NoPhase : FillPhase);
70 return casingPen.style() != Qt::NoPen && (fillBrush.style() != Qt::NoBrush || textureBrush.style() != Qt::NoBrush);
144 const auto h = iconHeightUnit == Unit::Meter ? view->mapMetersToScreen(iconSize.height()) : iconSize.height();
145 const auto w = iconWidthUnit == Unit::Meter ? view->mapMetersToScreen(iconSize.width()) : iconSize.width();
155 textOutputSizeCache = QFontMetricsF(font).boundingRect({QPointF(0.0, 0.0), QSizeF(text.textWidth(), 1000.0)}, Qt::AlignHCenter | Qt::AlignTop | Qt::TextWordWrap, text.text()).size();
QRectF boundingRect(const View *view) const override
Bounding box of this item in scene coordinates.
Definition scenegraphitem.cpp:92
uint8_t renderPhases() const override
Returns in which phase this item needs to be rendered (can be multiple).
Definition scenegraphitem.cpp:84
QRectF boundingRect(const View *view) const override
Bounding box of this item in scene coordinates.
Definition scenegraphitem.cpp:78
uint8_t renderPhases() const override
Returns in which phase this item needs to be rendered (can be multiple).
Definition scenegraphitem.cpp:59
bool useCasingFillMode() const
Render like lines, ie casing and filling in the stroke phase, rather than the default.
Definition scenegraphitem.cpp:68
QRectF boundingRect(const View *view) const override
Bounding box of this item in scene coordinates.
Definition scenegraphitem.cpp:73
uint8_t renderPhases() const override
Returns in which phase this item needs to be rendered (can be multiple).
Definition scenegraphitem.cpp:28
QRectF boundingRect(const View *view) const override
Bounding box of this item in scene coordinates.
Definition scenegraphitem.cpp:33
virtual uint8_t renderPhases() const =0
Returns in which phase this item needs to be rendered (can be multiple).
bool inSceneSpace() const
Is this item drawn in scene coordinates (as oposed to HUD coordinates)?
Definition scenegraphitem.cpp:17
bool inHUDSpace() const
Is this item drawn in HUD coordinates (as oposed to scene coordinates)?
Definition scenegraphitem.cpp:22
double mapMetersToScene(double meters) const
Returns how many units in scene coordinate represent the distance of meters in the current view trans...
Definition view.cpp:257
double mapScreenDistanceToSceneDistance(double distance) const
Converts a distance in screen coordinates to a distance in scene coordinates.
Definition view.cpp:191
QPointF mapSceneToScreen(QPointF scenePos) const
Converts a point in scene coordinates to screen coordinates.
Definition view.cpp:175
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
Qt::BrushStyle style() const const
int alpha() const const
QRectF boundingRect(QChar ch) const const
QSizeF size(int flags, const QString &text, int tabStops, int *tabArray) const const
bool isNull() const const
QRectF boundingRect() const const
Qt::PenStyle style() const const
qreal widthF() const const
QRectF boundingRect() const const
void adjust(qreal dx1, qreal dy1, qreal dx2, qreal dy2)
qreal height() const const
void moveCenter(const QPointF &position)
void setHeight(qreal height)
void setWidth(qreal width)
QSizeF size() const const
QRectF united(const QRectF &rectangle) const const
qreal width() const const
qreal height() const const
bool isEmpty() const const
qreal width() const const
QString text() const const
qreal textWidth() const const
AlignHCenter
NoBrush
NoPen
TextWordWrap
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.