KOSMIndoorMap::LabelItem

Search for usage in LXR

KOSMIndoorMap::LabelItem Class Reference

#include <scenegraphitem.h>

Inheritance diagram for KOSMIndoorMap::LabelItem:

Public Member Functions

QRectF boundingRect (const View *view) const override
 
double casingAndFrameWidth () const
 
bool hasIcon () const
 
bool hasShield () const
 
bool hasText () const
 
QRectF iconHitBox (const View *view) const
 
QSizeF iconOutputSize (const View *view) const
 
uint8_t renderPhases () const override
 
QRectF shieldHitBox (const View *view) const
 
QRectF textHitBox (const View *view) const
 
QSizeF textOutputSize () const
 
- Public Member Functions inherited from KOSMIndoorMap::SceneGraphItemPayload
bool inHUDSpace () const
 
bool inSceneSpace () const
 

Public Attributes

bool allowIconOverlap: 1 = false
 
bool allowTextOverlap: 1 = false
 
double angle = 0.0
 
QColor casingColor = Qt::transparent
 
double casingWidth = 0.0
 
QColor color
 
QFont font
 
QColor frameColor = Qt::transparent
 
double frameWidth = 0.0
 
QColor haloColor = Qt::transparent
 
double haloRadius = 0.0
 
QIcon icon
 
Unit iconHeightUnit = Unit::Pixel
 
bool iconHidden: 1 = false
 
double iconOpacity = 1.0
 
QSizeF iconSize
 
Unit iconWidthUnit = Unit::Pixel
 
QPointF pos
 
QColor shieldColor = Qt::transparent
 
QStaticText text
 
bool textHidden: 1 = false
 
bool textIsSet: 1 = false
 
double textOffset = 0.0
 
QSizeF textOutputSizeCache
 
- Public Attributes inherited from KOSMIndoorMap::SceneGraphItemPayload
int z = 0
 

Additional Inherited Members

- Public Types inherited from KOSMIndoorMap::SceneGraphItemPayload
enum  RenderPhase : uint8_t {
  NoPhase = 0 , FillPhase = 1 , CasingPhase = 2 , StrokePhase = 4 ,
  IconPhase = 8 , LabelPhase = 16
}
 

Detailed Description

A text or icon label.

Definition at line 143 of file scenegraphitem.h.

Member Function Documentation

◆ boundingRect()

QRectF LabelItem::boundingRect ( const View * view) const
overridevirtual

Bounding box of this item in scene coordinates.

Performance trumps precision here, so estimating this slightly larger rather than computing it expensively makes sense.

Implements KOSMIndoorMap::SceneGraphItemPayload.

Definition at line 92 of file scenegraphitem.cpp.

◆ casingAndFrameWidth()

double LabelItem::casingAndFrameWidth ( ) const

Definition at line 164 of file scenegraphitem.cpp.

◆ hasIcon()

bool LabelItem::hasIcon ( ) const

Definition at line 169 of file scenegraphitem.cpp.

◆ hasShield()

bool LabelItem::hasShield ( ) const

Definition at line 174 of file scenegraphitem.cpp.

◆ hasText()

bool KOSMIndoorMap::LabelItem::hasText ( ) const
inline

Definition at line 158 of file scenegraphitem.h.

◆ iconHitBox()

QRectF LabelItem::iconHitBox ( const View * view) const

Definition at line 111 of file scenegraphitem.cpp.

◆ iconOutputSize()

QSizeF LabelItem::iconOutputSize ( const View * view) const

Definition at line 138 of file scenegraphitem.cpp.

◆ renderPhases()

uint8_t LabelItem::renderPhases ( ) const
overridevirtual

Returns in which phase this item needs to be rendered (can be multiple).

Implements KOSMIndoorMap::SceneGraphItemPayload.

Definition at line 84 of file scenegraphitem.cpp.

◆ shieldHitBox()

QRectF LabelItem::shieldHitBox ( const View * view) const

Definition at line 130 of file scenegraphitem.cpp.

◆ textHitBox()

QRectF LabelItem::textHitBox ( const View * view) const

Definition at line 118 of file scenegraphitem.cpp.

◆ textOutputSize()

QSizeF LabelItem::textOutputSize ( ) const

Definition at line 149 of file scenegraphitem.cpp.

Member Data Documentation

◆ allowIconOverlap

bool KOSMIndoorMap::LabelItem::allowIconOverlap

Definition at line 186 of file scenegraphitem.h.

◆ allowTextOverlap

bool KOSMIndoorMap::LabelItem::allowTextOverlap

Definition at line 185 of file scenegraphitem.h.

◆ angle

double KOSMIndoorMap::LabelItem::angle = 0.0

Definition at line 179 of file scenegraphitem.h.

◆ casingColor

QColor KOSMIndoorMap::LabelItem::casingColor = Qt::transparent

Definition at line 174 of file scenegraphitem.h.

◆ casingWidth

double KOSMIndoorMap::LabelItem::casingWidth = 0.0

Definition at line 173 of file scenegraphitem.h.

◆ color

QColor KOSMIndoorMap::LabelItem::color

Definition at line 162 of file scenegraphitem.h.

◆ font

QFont KOSMIndoorMap::LabelItem::font

Definition at line 163 of file scenegraphitem.h.

◆ frameColor

QColor KOSMIndoorMap::LabelItem::frameColor = Qt::transparent

Definition at line 176 of file scenegraphitem.h.

◆ frameWidth

double KOSMIndoorMap::LabelItem::frameWidth = 0.0

Definition at line 175 of file scenegraphitem.h.

◆ haloColor

QColor KOSMIndoorMap::LabelItem::haloColor = Qt::transparent

Definition at line 182 of file scenegraphitem.h.

◆ haloRadius

double KOSMIndoorMap::LabelItem::haloRadius = 0.0

Definition at line 183 of file scenegraphitem.h.

◆ icon

QIcon KOSMIndoorMap::LabelItem::icon

Definition at line 167 of file scenegraphitem.h.

◆ iconHeightUnit

Unit KOSMIndoorMap::LabelItem::iconHeightUnit = Unit::Pixel

Definition at line 171 of file scenegraphitem.h.

◆ iconHidden

bool KOSMIndoorMap::LabelItem::iconHidden

Definition at line 187 of file scenegraphitem.h.

◆ iconOpacity

double KOSMIndoorMap::LabelItem::iconOpacity = 1.0

Definition at line 169 of file scenegraphitem.h.

◆ iconSize

QSizeF KOSMIndoorMap::LabelItem::iconSize

Definition at line 168 of file scenegraphitem.h.

◆ iconWidthUnit

Unit KOSMIndoorMap::LabelItem::iconWidthUnit = Unit::Pixel

Definition at line 170 of file scenegraphitem.h.

◆ pos

QPointF KOSMIndoorMap::LabelItem::pos

Definition at line 161 of file scenegraphitem.h.

◆ shieldColor

QColor KOSMIndoorMap::LabelItem::shieldColor = Qt::transparent

Definition at line 177 of file scenegraphitem.h.

◆ text

QStaticText KOSMIndoorMap::LabelItem::text

Definition at line 164 of file scenegraphitem.h.

◆ textHidden

bool KOSMIndoorMap::LabelItem::textHidden

Definition at line 188 of file scenegraphitem.h.

◆ textIsSet

bool KOSMIndoorMap::LabelItem::textIsSet

Definition at line 189 of file scenegraphitem.h.

◆ textOffset

double KOSMIndoorMap::LabelItem::textOffset = 0.0

Definition at line 180 of file scenegraphitem.h.

◆ textOutputSizeCache

QSizeF KOSMIndoorMap::LabelItem::textOutputSizeCache
mutable

Definition at line 165 of file scenegraphitem.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.