// // Copyright 2008 Simon Edwards // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library. If not, see . // namespace Marble { class GeoDataFeature : Marble::GeoDataObject { %TypeHeaderCode #include %End public: GeoDataFeature (); GeoDataFeature (const QString& name); GeoDataFeature (const Marble::GeoDataFeature& other); GeoDataFeature (const Marble::GeoDataContainer& other); GeoDataFeature (const Marble::GeoDataFolder& other); GeoDataFeature (const Marble::GeoDataDocument& other); GeoDataFeature (const Marble::GeoDataPlacemark& other); bool operator == (const Marble::GeoDataFeature&) const; virtual bool isFolder () const; virtual bool isPlacemark () const; EnumFeatureId featureId () const; enum GeoDataVisualCategory { None, Default, Unknown, SmallCity, SmallCountyCapital, SmallStateCapital, SmallNationCapital, MediumCity, MediumCountyCapital, MediumStateCapital, MediumNationCapital, BigCity, BigCountyCapital, BigStateCapital, BigNationCapital, LargeCity, LargeCountyCapital, LargeStateCapital, LargeNationCapital, Nation, Mountain, Volcano, Mons, Valley, Continent, Ocean, OtherTerrain, Crater, Mare, GeographicPole, MagneticPole, ShipWreck, AirPort, Observatory, Wikipedia, OsmSite, Coordinate, MannedLandingSite, RoboticRover, UnmannedSoftLandingSite, UnmannedHardLandingSite, LastIndex }; QString name () const; void setName (const QString& value); QString address () const; void setAddress (const QString& value); QString phoneNumber () const; void setPhoneNumber (const QString& value); QString description () const; void setDescription (const QString& value); QString styleUrl () const; void setStyleUrl (const QString& value); bool isVisible () const; void setVisible (bool value); Marble::GeoDataStyle* style () const; void setStyle (Marble::GeoDataStyle* style); Marble::GeoDataFeature::GeoDataVisualCategory visualCategory () const; void setVisualCategory (Marble::GeoDataFeature::GeoDataVisualCategory category); const QChar role () const; void setRole (const QChar& role); int popularityIndex () const; void setPopularityIndex (int index); qint64 popularity () const; void setPopularity (qint64 popularity); Marble::GeoDataStyleMap* styleMap () const; void setStyleMap (Marble::GeoDataStyleMap* map); const QSize symbolSize () const; const QPixmap symbolPixmap () const; static void resetDefaultStyles (); virtual void pack (QDataStream& stream) const; virtual void unpack (QDataStream& stream); static QFont defaultFont (); static void setDefaultFont (const QFont& font); virtual void detach (); }; // GeoDataFeature }; // Marble