File indexing completed on 2025-01-05 03:59:11
0001 /* 0002 SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "GeoSceneVector.h" 0008 #include "GeoSceneTypes.h" 0009 0010 namespace Marble 0011 { 0012 0013 GeoSceneVector::GeoSceneVector( const QString& name ) 0014 : GeoSceneAbstractDataset( name ), 0015 m_sourceFile(), 0016 m_feature(), 0017 m_pen(), 0018 m_brush() 0019 { 0020 } 0021 0022 const char* GeoSceneVector::nodeType() const 0023 { 0024 return GeoSceneTypes::GeoSceneVectorType; 0025 } 0026 0027 QString GeoSceneVector::sourceFile() const 0028 { 0029 return m_sourceFile; 0030 } 0031 0032 void GeoSceneVector::setSourceFile( const QString& sourceFile ) 0033 { 0034 m_sourceFile = sourceFile; 0035 } 0036 0037 QString GeoSceneVector::feature() const 0038 { 0039 return m_feature; 0040 } 0041 0042 void GeoSceneVector::setFeature( const QString& feature ) 0043 { 0044 m_feature = feature; 0045 } 0046 0047 QPen GeoSceneVector::pen() const 0048 { 0049 return m_pen; 0050 } 0051 0052 void GeoSceneVector::setPen( const QPen& pen ) 0053 { 0054 m_pen = pen; 0055 } 0056 0057 QBrush GeoSceneVector::brush() const 0058 { 0059 return m_brush; 0060 } 0061 0062 void GeoSceneVector::setBrush( const QBrush& brush ) 0063 { 0064 m_brush = brush; 0065 } 0066 0067 }