OSMLabelModel
#include <osmlabelmodel.h>
Inherits from QAbstractListModel
Public Types
 | 
Name | 
| enum | 
Roles { TextRole = Qt::UserRole, PositionRole, AlphaRole, HiddenRole, IsWayRole} | 
Public Signals
Public Functions
Protected Functions
 | 
Name | 
| QHash< int, QByteArray > | 
roleNames() const override | 
Public Properties
Public Attributes
Public Types Documentation
enum Roles
| Enumerator | 
Value | 
Description | 
| TextRole | 
Qt::UserRole | 
 | 
| PositionRole | 
 | 
 | 
| AlphaRole | 
 | 
 | 
| HiddenRole | 
 | 
 | 
| IsWayRole | 
 | 
 | 
Public Signals Documentation
signal controllerChanged
signal cameraChanged
signal screenSizeChanged
Public Functions Documentation
function OSMLabelModel
 | explicit OSMLabelModel(
    QObject * parent =nullptr
)
  | 
 
function ~OSMLabelModel
 | ~OSMLabelModel() override
  | 
 
function rowCount
 | int rowCount(
    const QModelIndex & index ={}
) const override
  | 
 
function data
 | QVariant data(
    const QModelIndex & index,
    int role =Qt::DisplayRole
) const override
  | 
 
function controller
 | OSMController * controller() const
  | 
 
function setController
 | void setController(
    OSMController * controller
)
  | 
 
function camera
 | Qt3DRender::QCamera * camera() const
  | 
 
function setCamera
 | void setCamera(
    Qt3DRender::QCamera * camera
)
  | 
 
function screenSize
function setScreenSize
 | void setScreenSize(
    const QSize & screenSize
)
  | 
 
function OSMLabelModel
function resetLabels
function updateLabels
Protected Functions Documentation
function roleNames
 | QHash< int, QByteArray > roleNames() const override
  | 
 
Public Property Documentation
property controller
 | OSMController * controller;
  | 
 
property camera
 | Qt3DRender::QCamera * camera;
  | 
 
property screenSize
Public Attributes Documentation
variable loader
 | KDBindings::Property< OSMLoader * > loader { nullptr };
  | 
 
variable labels
 | KDBindings::Property< std::vector< LabelData > > labels {};
  | 
 
variable camera
 | Qt3DRender::QCamera * camera;
  | 
 
variable screenSize
Updated on 2023-07-03 at 11:02:07 +0000