File indexing completed on 2025-01-05 03:59:10
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2011 Utku Aydın <utkuaydin34@gmail.com> 0004 // 0005 0006 #ifndef MARBLE_GEOSCENEGEODATA_H 0007 #define MARBLE_GEOSCENEGEODATA_H 0008 0009 #include "digikam_export.h" 0010 #include "GeoSceneAbstractDataset.h" 0011 #include "GeoDocument.h" 0012 0013 #include <QPen> 0014 #include <QBrush> 0015 0016 namespace Marble 0017 { 0018 0019 class DIGIKAM_EXPORT GeoSceneGeodata : public GeoSceneAbstractDataset 0020 { 0021 public: 0022 explicit GeoSceneGeodata( const QString& name ); 0023 ~GeoSceneGeodata() override; 0024 const char* nodeType() const override; 0025 0026 bool operator==( const GeoSceneGeodata &other ) const; 0027 0028 QString property() const; 0029 void setProperty( const QString& property ); 0030 0031 QString sourceFile() const; 0032 void setSourceFile( const QString& sourceFile ); 0033 0034 QString colorize() const; 0035 void setColorize( const QString& colorize ); 0036 0037 qreal alpha() const; 0038 void setAlpha(qreal alpha); 0039 0040 QPen pen() const; 0041 void setPen( const QPen& pen ); 0042 0043 QBrush brush() const; 0044 void setBrush( const QBrush& brush ); 0045 0046 int renderOrder() const; 0047 void setRenderOrder( int renderOrder ); 0048 0049 QVector<QColor> colors() const; 0050 void setColors(const QVector<QColor> &colors); 0051 0052 private: 0053 QString m_property; 0054 QString m_sourceFile; 0055 QString m_colorize; 0056 qreal m_alpha; 0057 QPen m_pen; 0058 QBrush m_brush; 0059 int m_renderOrder; 0060 QVector<QColor> m_colors; 0061 }; 0062 0063 } 0064 0065 0066 #endif