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 #include "GeoSceneGeodata.h"
0007 
0008 #include "GeoSceneTypes.h"
0009 
0010 #include "digikam_debug.h"
0011 
0012 namespace Marble
0013 {
0014 GeoSceneGeodata::GeoSceneGeodata( const QString& name )
0015     : GeoSceneAbstractDataset( name ),
0016       m_sourceFile( QString() ),
0017       m_alpha( 1.0 ),
0018       m_pen( QPen( Qt::NoPen ) ),
0019       m_brush( QBrush( Qt::transparent ) ),
0020       m_renderOrder( 0 )
0021 {
0022 }
0023 
0024 GeoSceneGeodata::~GeoSceneGeodata()
0025 {
0026 }
0027 
0028 const char* GeoSceneGeodata::nodeType() const
0029 {
0030     return GeoSceneTypes::GeoSceneGeodataType;
0031 }
0032 
0033 bool GeoSceneGeodata::operator==( const GeoSceneGeodata &other ) const
0034 {
0035     return m_sourceFile == other.sourceFile()
0036             && m_pen == other.pen()
0037             && m_brush == other.brush();
0038 }
0039 
0040 QString GeoSceneGeodata::property() const
0041 {
0042     return m_property;
0043 }
0044 
0045 void GeoSceneGeodata::setProperty( const QString& property )
0046 {
0047     m_property = property;
0048 }
0049 
0050 QString GeoSceneGeodata::sourceFile() const
0051 {
0052     return m_sourceFile;
0053 }
0054 
0055 void GeoSceneGeodata::setSourceFile(const QString& sourceFile)
0056 {
0057     m_sourceFile = sourceFile;
0058 }
0059 
0060 QString GeoSceneGeodata::colorize() const
0061 {
0062     return m_colorize;
0063 }
0064 
0065 void GeoSceneGeodata::setColorize( const QString& colorize )
0066 {
0067     m_colorize = colorize;
0068 }
0069 
0070 QPen GeoSceneGeodata::pen() const
0071 {
0072     return m_pen;
0073 }
0074 
0075 void GeoSceneGeodata::setAlpha(qreal alpha)
0076 {
0077     m_alpha = alpha;
0078 }
0079 
0080 qreal GeoSceneGeodata::alpha() const
0081 {
0082     return m_alpha;
0083 }
0084 
0085 void GeoSceneGeodata::setPen( const QPen& pen )
0086 {
0087     m_pen = pen;
0088 }
0089 
0090 QBrush GeoSceneGeodata::brush() const
0091 {
0092     return m_brush;
0093 }
0094 
0095 void GeoSceneGeodata::setBrush( const QBrush& brush )
0096 {
0097     m_brush = brush;
0098 }
0099 
0100 int GeoSceneGeodata::renderOrder() const
0101 {
0102     return m_renderOrder;
0103 }
0104 
0105 void GeoSceneGeodata::setRenderOrder( int renderOrder )
0106 {
0107     m_renderOrder = renderOrder;
0108 }
0109 
0110 QVector<QColor> GeoSceneGeodata::colors() const
0111 {
0112     return m_colors;
0113 }
0114 
0115 void GeoSceneGeodata::setColors(const QVector<QColor> &colors)
0116 {
0117     m_colors = colors;
0118 }
0119 
0120 }