Marble

GeoSceneGeodata.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2011 Utku Aydın <[email protected]>
4 //
5 
6 #ifndef MARBLE_GEOSCENEGEODATA_H
7 #define MARBLE_GEOSCENEGEODATA_H
8 
9 #include <geodata_export.h>
10 #include "GeoSceneAbstractDataset.h"
11 #include "GeoDocument.h"
12 
13 #include <QPen>
14 #include <QBrush>
15 
16 namespace Marble
17 {
18 
19 class GEODATA_EXPORT GeoSceneGeodata : public GeoSceneAbstractDataset
20 {
21  public:
22  explicit GeoSceneGeodata( const QString& name );
23  ~GeoSceneGeodata() override;
24  const char* nodeType() const override;
25 
26  bool operator==( const GeoSceneGeodata &other ) const;
27 
28  QString property() const;
29  void setProperty( const QString& property );
30 
31  QString sourceFile() const;
32  void setSourceFile( const QString& sourceFile );
33 
34  QString colorize() const;
35  void setColorize( const QString& colorize );
36 
37  qreal alpha() const;
38  void setAlpha(qreal alpha);
39 
40  QPen pen() const;
41  void setPen( const QPen& pen );
42 
43  QBrush brush() const;
44  void setBrush( const QBrush& brush );
45 
46  int renderOrder() const;
47  void setRenderOrder( int renderOrder );
48 
49  QVector<QColor> colors() const;
50  void setColors(const QVector<QColor> &colors);
51 
52  private:
53  QString m_property;
54  QString m_sourceFile;
55  QString m_colorize;
56  qreal m_alpha;
57  QPen m_pen;
58  QBrush m_brush;
59  int m_renderOrder;
60  QVector<QColor> m_colors;
61 };
62 
63 }
64 
65 
66 #endif
QCA_EXPORT void setProperty(const QString &name, const QVariant &value)
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.