File indexing completed on 2024-05-19 03:51:51

0001 /*
0002     SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef MARBLE_GEOSCENEVECTOR_H
0008 #define MARBLE_GEOSCENEVECTOR_H
0009 
0010 #include <QString>
0011 #include <QPen>
0012 #include <QBrush>
0013 
0014 #include "GeoSceneAbstractDataset.h"
0015 
0016 namespace Marble
0017 {
0018 
0019 /**
0020  * @short Vector dataset stored in a layer.
0021  */
0022 
0023 class GEODATA_EXPORT GeoSceneVector : public GeoSceneAbstractDataset
0024 {
0025  public:
0026     explicit GeoSceneVector( const QString& name );
0027     const char* nodeType() const override;
0028 
0029     QString sourceFile() const;
0030     void setSourceFile( const QString& sourceFile );
0031 
0032     QString feature() const;
0033     void setFeature( const QString& feature );
0034 
0035     QPen pen() const;
0036     void setPen( const QPen& pen );
0037 
0038     QBrush brush() const;
0039     void setBrush( const QBrush& brush );
0040 
0041  private:
0042     QString m_sourceFile;
0043     QString m_feature;
0044 
0045     QPen    m_pen;
0046     QBrush  m_brush;
0047 };
0048 
0049 }
0050 
0051 #endif