QGIS API Documentation 4.1.0-Master (3b8ef1f72a3)
Loading...
Searching...
No Matches
qgssymbolconverterogrstyle.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssymbolconverterogrstyle.h
3 --------------------
4 begin : February 2026
5 copyright : (C) 2026 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSSYMBOLCONVERTEROGRSTYLE_H
16#define QGSSYMBOLCONVERTEROGRSTYLE_H
17
18#include "qgssymbolconverter.h"
19
20#define SIP_NO_FILE
21
30{
31 public:
33 QString name() const override;
34 QString formatName() const override;
35 QVariant toVariant( const QgsSymbol *symbol, QgsSymbolConverterContext &context ) const override;
36 std::unique_ptr< QgsSymbol > createSymbol( const QVariant &variant, QgsSymbolConverterContext &context ) const override;
37};
38
39#endif // QGSSYMBOLCONVERTEROGRSTYLE_H
QFlags< SymbolConverterCapability > SymbolConverterCapabilities
Symbol converter capabilities.
Definition qgis.h:824
An abstract base class for converting between QgsSymbol objects and QVariant representations.
virtual Qgis::SymbolConverterCapabilities capabilities() const =0
Returns the capabilities of the converter.
virtual QString name() const =0
Returns the unique name for the converter.
virtual QString formatName() const =0
Returns a translated, user-friendly name for the converter's data format.
virtual QVariant toVariant(const QgsSymbol *symbol, QgsSymbolConverterContext &context) const =0
Converts a symbol into a QVariant representation.
virtual std::unique_ptr< QgsSymbol > createSymbol(const QVariant &variant, QgsSymbolConverterContext &context) const =0
Creates a new QgsSymbol from a QVariant representation.
Represents the context in which a QgsSymbolConverter conversion occurs.
A symbol converter for converting QgsSymbol objects to and from the OGR style string format.
Abstract base class for all rendered symbols.
Definition qgssymbol.h:227