KOSMIndoorMap::MapItem

Search for usage in LXR

#include <mapitem.h>

Inheritance diagram for KOSMIndoorMap::MapItem:

Properties

QString errorMessage
 
KOSMIndoorMap::FloorLevelModelfloorLevels
 
bool hasError
 
KOSMIndoorMap::OSMElement hoveredElement
 
KOSMIndoorMap::MapLoaderloader
 
KOSMIndoorMap::MapData mapData
 
QVariant overlaySources
 
QString region
 
QString styleSheet
 
QString timeZone
 
KOSMIndoorMap::Viewview
 
- Properties inherited from QQuickPaintedItem
 contentsScale
 
 contentsSize
 
 fillColor
 
 renderTarget
 
 textureSize
 
- Properties inherited from QQuickItem
 activeFocus
 
 activeFocusOnTab
 
 antialiasing
 
 baselineOffset
 
 childrenRect
 
 clip
 
 containmentMask
 
 enabled
 
 focus
 
 height
 
 implicitHeight
 
 implicitWidth
 
 opacity
 
 parent
 
 rotation
 
 scale
 
 smooth
 
 state
 
 transformOrigin
 
 visible
 
 width
 
 x
 
 y
 
 z
 
- Properties inherited from QObject
 objectName
 

Signals

void currentFloorLevelChanged ()
 
void errorChanged ()
 
void hoveredElementChanged ()
 
void mapDataChanged ()
 
void overlaySourcesChanged ()
 
void regionChanged ()
 
void styleSheetChanged ()
 
void timeZoneChanged ()
 

Public Member Functions

 MapItem (QQuickItem *parent=nullptr)
 
Q_INVOKABLE KOSMIndoorMap::OSMElement elementAt (double x, double y) const
 
QString errorMessage () const
 
FloorLevelModelfloorLevelModel () const
 
bool hasError () const
 
MapLoaderloader () const
 
void paint (QPainter *painter) override
 
QString region () const
 
void setRegion (const QString &region)
 
void setStylesheetName (const QString &styleSheet)
 
void setTimeZoneId (const QString &tz)
 
QString styleSheetName () const
 
QString timeZoneId () const
 
Viewview () const
 
- Public Member Functions inherited from QQuickPaintedItem
 QQuickPaintedItem (QQuickItem *parent)
 
bool antialiasing () const const
 
QRectF contentsBoundingRect () const const
 
qreal contentsScale () const const
 
void contentsScaleChanged ()
 
QSize contentsSize () const const
 
void contentsSizeChanged ()
 
QColor fillColor () const const
 
void fillColorChanged ()
 
virtual bool isTextureProvider () const const override
 
bool mipmap () const const
 
bool opaquePainting () const const
 
PerformanceHints performanceHints () const const
 
RenderTarget renderTarget () const const
 
void renderTargetChanged ()
 
void resetContentsSize ()
 
void setAntialiasing (bool enable)
 
void setContentsScale (qreal)
 
void setContentsSize (const QSize &)
 
void setFillColor (const QColor &)
 
void setMipmap (bool enable)
 
void setOpaquePainting (bool opaque)
 
void setPerformanceHint (PerformanceHint hint, bool enabled)
 
void setPerformanceHints (PerformanceHints hints)
 
void setRenderTarget (RenderTarget target)
 
void setTextureSize (const QSize &size)
 
virtual QSGTextureProvidertextureProvider () const const override
 
QSize textureSize () const const
 
void textureSizeChanged ()
 
void update (const QRect &rect)
 
- Public Member Functions inherited from QQuickItem
 QQuickItem (QQuickItem *parent)
 
Qt::MouseButtons acceptedMouseButtons () const const
 
bool acceptHoverEvents () const const
 
bool acceptTouchEvents () const const
 
void activeFocusChanged (bool)
 
bool activeFocusOnTab () const const
 
void activeFocusOnTabChanged (bool)
 
bool antialiasing () const const
 
void antialiasingChanged (bool)
 
qreal baselineOffset () const const
 
void baselineOffsetChanged (qreal)
 
QBindable< qreal > bindableHeight ()
 
QBindable< qreal > bindableWidth ()
 
QBindable< qreal > bindableX ()
 
QBindable< qreal > bindableY ()
 
virtual QRectF boundingRect () const const
 
QQuickItemchildAt (qreal x, qreal y) const const
 
QList< QQuickItem * > childItems () const const
 
QRectF childrenRect ()
 
void childrenRectChanged (const QRectF &)
 
bool clip () const const
 
void clipChanged (bool)
 
virtual QRectF clipRect () const const
 
QObjectcontainmentMask () const const
 
void containmentMaskChanged ()
 
virtual bool contains (const QPointF &point) const const
 
QCursor cursor () const const
 
void dumpItemTree () const const
 
void enabledChanged ()
 
void ensurePolished ()
 
bool filtersChildMouseEvents () const const
 
Flags flags () const const
 
void focusChanged (bool)
 
void forceActiveFocus ()
 
void forceActiveFocus (Qt::FocusReason reason)
 
void grabMouse ()
 
QSharedPointer< QQuickItemGrabResultgrabToImage (const QSize &targetSize)
 
void grabTouchPoints (const QList< int > &ids)
 
bool hasActiveFocus () const const
 
bool hasFocus () const const
 
qreal height () const const
 
void heightChanged ()
 
qreal implicitHeight () const const
 
void implicitHeightChanged ()
 
qreal implicitWidth () const const
 
void implicitWidthChanged ()
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const const
 
bool isAncestorOf (const QQuickItem *child) const const
 
bool isEnabled () const const
 
bool isFocusScope () const const
 
bool isVisible () const const
 
bool keepMouseGrab () const const
 
bool keepTouchGrab () const const
 
QPointF mapFromGlobal (const QPointF &point) const const
 
QPointF mapFromItem (const QQuickItem *item, const QPointF &point) const const
 
QPointF mapFromScene (const QPointF &point) const const
 
QRectF mapRectFromItem (const QQuickItem *item, const QRectF &rect) const const
 
QRectF mapRectFromScene (const QRectF &rect) const const
 
QRectF mapRectToItem (const QQuickItem *item, const QRectF &rect) const const
 
QRectF mapRectToScene (const QRectF &rect) const const
 
QPointF mapToGlobal (const QPointF &point) const const
 
QPointF mapToItem (const QQuickItem *item, const QPointF &point) const const
 
QPointF mapToScene (const QPointF &point) const const
 
QQuickItemnextItemInFocusChain (bool forward)
 
qreal opacity () const const
 
void opacityChanged ()
 
void parentChanged (QQuickItem *)
 
QQuickItemparentItem () const const
 
void polish ()
 
void resetAntialiasing ()
 
void resetHeight ()
 
void resetWidth ()
 
qreal rotation () const const
 
void rotationChanged ()
 
qreal scale () const const
 
void scaleChanged ()
 
QQuickItemscopedFocusItem () const const
 
void setAcceptedMouseButtons (Qt::MouseButtons buttons)
 
void setAcceptHoverEvents (bool enabled)
 
void setAcceptTouchEvents (bool enabled)
 
void setActiveFocusOnTab (bool)
 
void setAntialiasing (bool)
 
void setBaselineOffset (qreal)
 
void setClip (bool)
 
void setContainmentMask (QObject *mask)
 
void setCursor (const QCursor &cursor)
 
void setEnabled (bool)
 
void setFiltersChildMouseEvents (bool filter)
 
void setFlag (Flag flag, bool enabled)
 
void setFlags (Flags flags)
 
void setFocus (bool focus, Qt::FocusReason reason)
 
void setFocus (bool)
 
void setHeight (qreal)
 
void setImplicitHeight (qreal)
 
void setImplicitWidth (qreal)
 
void setKeepMouseGrab (bool keep)
 
void setKeepTouchGrab (bool keep)
 
void setOpacity (qreal)
 
void setParentItem (QQuickItem *parent)
 
void setRotation (qreal)
 
void setScale (qreal)
 
void setSize (const QSizeF &size)
 
void setSmooth (bool)
 
void setState (const QString &)
 
void setTransformOrigin (TransformOrigin)
 
void setVisible (bool)
 
void setWidth (qreal)
 
void setX (qreal)
 
void setY (qreal)
 
void setZ (qreal)
 
QSizeF size () const const
 
bool smooth () const const
 
void smoothChanged (bool)
 
void stackAfter (const QQuickItem *sibling)
 
void stackBefore (const QQuickItem *sibling)
 
QString state () const const
 
void stateChanged (const QString &)
 
TransformOrigin transformOrigin () const const
 
void transformOriginChanged (TransformOrigin)
 
void ungrabMouse ()
 
void ungrabTouchPoints ()
 
void unsetCursor ()
 
void update ()
 
QQuickItemviewportItem () const const
 
void visibleChanged ()
 
qreal width () const const
 
void widthChanged ()
 
QQuickWindowwindow () const const
 
void windowChanged (QQuickWindow *window)
 
qreal x () const const
 
void xChanged ()
 
qreal y () const const
 
void yChanged ()
 
qreal z () const const
 
void zChanged ()
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from QQmlParserStatus

Protected Member Functions

void geometryChange (const QRectF &newGeometry, const QRectF &oldGeometry) override
 
- Protected Member Functions inherited from QQuickPaintedItem
virtual void itemChange (ItemChange change, const ItemChangeData &value) override
 
virtual void releaseResources () override
 
virtual QSGNodeupdatePaintNode (QSGNode *oldNode, UpdatePaintNodeData *data) override
 
- Protected Member Functions inherited from QQuickItem
virtual bool childMouseEventFilter (QQuickItem *item, QEvent *event)
 
virtual void classBegin () override
 
virtual void componentComplete () override
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual bool event (QEvent *ev) override
 
virtual void focusInEvent (QFocusEvent *)
 
virtual void focusOutEvent (QFocusEvent *)
 
bool heightValid () const const
 
virtual void hoverEnterEvent (QHoverEvent *event)
 
virtual void hoverLeaveEvent (QHoverEvent *event)
 
virtual void hoverMoveEvent (QHoverEvent *event)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
bool isComponentComplete () const const
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseUngrabEvent ()
 
virtual void touchEvent (QTouchEvent *event)
 
virtual void touchUngrabEvent ()
 
void updateInputMethod (Qt::InputMethodQueries queries)
 
virtual void updatePolish ()
 
virtual void wheelEvent (QWheelEvent *event)
 
bool widthValid () const const
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Types inherited from QQuickPaintedItem
enum  PerformanceHint
 
typedef  PerformanceHints
 
enum  RenderTarget
 
- Public Types inherited from QQuickItem
enum  Flag
 
typedef  Flags
 
enum  ItemChange
 
enum  TransformOrigin
 
- Public Types inherited from QObject
typedef  QObjectList
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QQuickPaintedItem
 FastFBOResizing
 
 FramebufferObject
 
 Image
 
 InvertedYFramebufferObject
 
- Public Attributes inherited from QQuickItem
 Bottom
 
 BottomLeft
 
 BottomRight
 
 Center
 
 ItemAcceptsDrops
 
 ItemAcceptsInputMethod
 
 ItemActiveFocusHasChanged
 
 ItemAntialiasingHasChanged
 
 ItemChildAddedChange
 
 ItemChildRemovedChange
 
 ItemClipsChildrenToShape
 
 ItemDevicePixelRatioHasChanged
 
 ItemEnabledHasChanged
 
 ItemHasContents
 
 ItemIsFocusScope
 
 ItemIsViewport
 
 ItemObservesViewport
 
 ItemOpacityHasChanged
 
 ItemParentHasChanged
 
 ItemRotationHasChanged
 
 ItemSceneChange
 
 ItemVisibleHasChanged
 
 Left
 
 Right
 
 Top
 
 TopLeft
 
 TopRight
 

Detailed Description

Map renderer for the IndoorMap QML item.

Do not use directly!

Definition at line 31 of file mapitem.h.

Property Documentation

◆ errorMessage

QString KOSMIndoorMap::MapItem::errorMessage
read

Details on the error.

Definition at line 42 of file mapitem.h.

◆ floorLevels

KOSMIndoorMap::FloorLevelModel* KOSMIndoorMap::MapItem::floorLevels
read

Definition at line 37 of file mapitem.h.

◆ hasError

bool KOSMIndoorMap::MapItem::hasError
read

There's a loading error (data not found, network issue, broken style sheet, etc).

Definition at line 40 of file mapitem.h.

◆ hoveredElement

KOSMIndoorMap::OSMElement KOSMIndoorMap::MapItem::hoveredElement
readwrite

Currently hovered element.

Definition at line 60 of file mapitem.h.

◆ loader

KOSMIndoorMap::MapLoader* KOSMIndoorMap::MapItem::loader
read

Definition at line 34 of file mapitem.h.

◆ mapData

KOSMIndoorMap::MapData KOSMIndoorMap::MapItem::mapData
read

Definition at line 44 of file mapitem.h.

◆ overlaySources

QVariant KOSMIndoorMap::MapItem::overlaySources
readwrite

Sources for overlays that should be rendered on top of the map.

Definition at line 47 of file mapitem.h.

◆ region

QString KOSMIndoorMap::MapItem::region
readwrite

ISO 3166-1/2 country or region code this map area is in.

Used for interpreting opening hours expressions.

Definition at line 52 of file mapitem.h.

◆ styleSheet

QString KOSMIndoorMap::MapItem::styleSheet
readwrite

Definition at line 36 of file mapitem.h.

◆ timeZone

QString KOSMIndoorMap::MapItem::timeZone
readwrite

IANA timezone id of the timezone this map area is in.

Used for interpreting opening hours expressions.

Definition at line 57 of file mapitem.h.

◆ view

KOSMIndoorMap::View* KOSMIndoorMap::MapItem::view
read

Definition at line 35 of file mapitem.h.

Constructor & Destructor Documentation

◆ MapItem()

MapItem::MapItem ( QQuickItem * parent = nullptr)
explicit

Definition at line 24 of file mapitem.cpp.

Member Function Documentation

◆ elementAt()

OSMElement MapItem::elementAt ( double x,
double y ) const
nodiscard

Definition at line 145 of file mapitem.cpp.

◆ errorMessage()

QString MapItem::errorMessage ( ) const
nodiscard

Definition at line 178 of file mapitem.cpp.

◆ floorLevelModel()

FloorLevelModel * MapItem::floorLevelModel ( ) const
nodiscard

Definition at line 103 of file mapitem.cpp.

◆ geometryChange()

void MapItem::geometryChange ( const QRectF & newGeometry,
const QRectF & oldGeometry )
overrideprotectedvirtual

Reimplemented from QQuickItem.

Definition at line 108 of file mapitem.cpp.

◆ hasError()

bool MapItem::hasError ( ) const
nodiscard

Definition at line 173 of file mapitem.cpp.

◆ loader()

MapLoader * MapItem::loader ( ) const
nodiscard

Definition at line 52 of file mapitem.cpp.

◆ paint()

void MapItem::paint ( QPainter * painter)
overridevirtual

Implements QQuickPaintedItem.

Definition at line 45 of file mapitem.cpp.

◆ region()

QString MapItem::region ( ) const
nodiscard

Definition at line 242 of file mapitem.cpp.

◆ setRegion()

void MapItem::setRegion ( const QString & region)

Definition at line 247 of file mapitem.cpp.

◆ setStylesheetName()

void MapItem::setStylesheetName ( const QString & styleSheet)

Definition at line 67 of file mapitem.cpp.

◆ setTimeZoneId()

void MapItem::setTimeZoneId ( const QString & tz)

Definition at line 262 of file mapitem.cpp.

◆ styleSheetName()

QString MapItem::styleSheetName ( ) const
nodiscard

Definition at line 62 of file mapitem.cpp.

◆ timeZoneId()

QString MapItem::timeZoneId ( ) const
nodiscard

Definition at line 257 of file mapitem.cpp.

◆ view()

View * MapItem::view ( ) const
nodiscard

Definition at line 57 of file mapitem.cpp.


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 Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.