Skip to content

Class GeometryEditorsModel

ClassList > GeometryEditorsModel

Inherits the following classes: QStandardItemModel

Public Types

Type Name
enum ActionRoles
enum GeometryType

Public Properties

Type Name
property VertexModel * vertexModel

Public Signals

Type Name
signal void vertexModelChanged

Public Functions

Type Name
GeometryEditorsModel (QObject * parent=nullptr)
Q_INVOKABLE void addEditor (const QString & name, const QString & icon, const QString & toolbar, SupportedGeometries supportedGeometries=AllGeometries)
QHash< int, QByteArray > roleNames () override const
void setVertexModel (VertexModel * vertexModel)
VertexModel * vertexModel () const

Public Static Functions

Type Name
Q_INVOKABLE bool supportsGeometry (const QgsGeometry & geometry, const SupportedGeometries & supportedGeometries)

Public Types Documentation

enum ActionRoles

enum GeometryEditorsModel::ActionRoles {
    NameRole = Qt::UserRole + 1,
    IconPathRole,
    ToolbarRole,
    SupportedGeometriesRole
};

enum GeometryType

enum GeometryEditorsModel::GeometryType {
    Point = 1,
    Line = 2,
    Polygon = 4,
    AllGeometries = Point | Line | Polygon
};

Public Properties Documentation

property vertexModel [1/2]

VertexModel * GeometryEditorsModel::vertexModel;

Public Signals Documentation

signal vertexModelChanged

void GeometryEditorsModel::vertexModelChanged;

Public Functions Documentation

function GeometryEditorsModel

explicit GeometryEditorsModel::GeometryEditorsModel (
    QObject * parent=nullptr
) 

function addEditor

Q_INVOKABLE void GeometryEditorsModel::addEditor (
    const QString & name,
    const QString & icon,
    const QString & toolbar,
    SupportedGeometries supportedGeometries=AllGeometries
) 

function roleNames

QHash< int, QByteArray > GeometryEditorsModel::roleNames () override const

function setVertexModel

void GeometryEditorsModel::setVertexModel (
    VertexModel * vertexModel
) 

function vertexModel [2/2]

inline VertexModel * GeometryEditorsModel::vertexModel () const

Public Static Functions Documentation

function supportsGeometry

static Q_INVOKABLE bool GeometryEditorsModel::supportsGeometry (
    const QgsGeometry & geometry,
    const SupportedGeometries & supportedGeometries
) 


The documentation for this class was generated from the following file src/core/geometryeditorsmodel.h