Warning, /education/marble/src/bindings/python/sip/GeoDataFeature.sip is written in an unsupported language. File is not indexed.
0001 // 0002 // Copyright 2008 Simon Edwards <simon@simonzone.com> 0003 // 0004 // This library is free software; you can redistribute it and/or 0005 // modify it under the terms of the GNU Lesser General Public 0006 // License as published by the Free Software Foundation; either 0007 // version 2.1 of the License, or (at your option) any later version. 0008 // 0009 // This library is distributed in the hope that it will be useful, 0010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 // Lesser General Public License for more details. 0013 // 0014 // You should have received a copy of the GNU Lesser General Public 0015 // License along with this library. If not, see <http://www.gnu.org/licenses/>. 0016 // 0017 0018 namespace Marble 0019 { 0020 0021 class GeoDataFeature : Marble::GeoDataObject 0022 { 0023 %TypeHeaderCode 0024 #include <GeoDataFeature.h> 0025 %End 0026 0027 public: 0028 GeoDataFeature (); 0029 GeoDataFeature (const QString& name); 0030 GeoDataFeature (const Marble::GeoDataFeature& other); 0031 Marble::EnumFeatureId featureId () const; 0032 0033 enum GeoDataVisualCategory 0034 { 0035 None, 0036 Default, 0037 Unknown, 0038 SmallCity, 0039 SmallCountyCapital, 0040 SmallStateCapital, 0041 SmallNationCapital, 0042 MediumCity, 0043 MediumCountyCapital, 0044 MediumStateCapital, 0045 MediumNationCapital, 0046 BigCity, 0047 BigCountyCapital, 0048 BigStateCapital, 0049 BigNationCapital, 0050 LargeCity, 0051 LargeCountyCapital, 0052 LargeStateCapital, 0053 LargeNationCapital, 0054 Nation, 0055 Mountain, 0056 Volcano, 0057 Mons, 0058 Valley, 0059 Continent, 0060 Ocean, 0061 OtherTerrain, 0062 Crater, 0063 Mare, 0064 GeographicPole, 0065 MagneticPole, 0066 ShipWreck, 0067 AirPort, 0068 Observatory, 0069 Wikipedia, 0070 OsmSite, 0071 Coordinate, 0072 MannedLandingSite, 0073 RoboticRover, 0074 UnmannedSoftLandingSite, 0075 UnmannedHardLandingSite, 0076 Folder, 0077 Bookmark, 0078 NaturalWater, 0079 NaturalWood, 0080 HighwaySteps, 0081 HighwayUnknown, 0082 HighwayPath, 0083 HighwayTrack, 0084 HighwayPedestrian, 0085 HighwayService, 0086 HighwayRoad, 0087 HighwayTertiaryLink, 0088 HighwayTertiary, 0089 HighwaySecondaryLink, 0090 HighwaySecondary, 0091 HighwayPrimaryLink, 0092 HighwayPrimary, 0093 HighwayTrunkLink, 0094 HighwayTrunk, 0095 HighwayMotorwayLink, 0096 HighwayMotorway, 0097 Building, 0098 AccomodationCamping, 0099 AccomodationHostel, 0100 AccomodationHotel, 0101 AccomodationMotel, 0102 AccomodationYouthHostel, 0103 AmenityLibrary, 0104 EducationCollege, 0105 EducationSchool, 0106 EducationUniversity, 0107 FoodBar, 0108 FoodBiergarten, 0109 FoodCafe, 0110 FoodFastFood, 0111 FoodPub, 0112 FoodRestaurant, 0113 HealthDoctors, 0114 HealthHospital, 0115 HealthPharmacy, 0116 MoneyAtm, 0117 MoneyBank, 0118 ShoppingBeverages, 0119 ShoppingHifi, 0120 ShoppingSupermarket, 0121 TouristAttraction, 0122 TouristCastle, 0123 TouristCinema, 0124 TouristMonument, 0125 TouristMuseum, 0126 TouristRuin, 0127 TouristTheatre, 0128 TouristThemePark, 0129 TouristViewPoint, 0130 TouristZoo, 0131 TransportAerodrome, 0132 TransportAirportTerminal, 0133 TransportBusStation, 0134 TransportBusStop, 0135 TransportCarShare, 0136 TransportFuel, 0137 TransportParking, 0138 TransportRentalBicycle, 0139 TransportRentalCar, 0140 TransportTaxiRank, 0141 TransportTrainStation, 0142 TransportTramStop, 0143 ReligionPlaceOfWorship, 0144 ReligionBahai, 0145 ReligionBuddhist, 0146 ReligionChristian, 0147 ReligionHindu, 0148 ReligionJain, 0149 ReligionJewish, 0150 ReligionShinto, 0151 ReligionSikh, 0152 LeisurePark, 0153 LanduseAllotments, 0154 LanduseBasin, 0155 LanduseCemetery, 0156 LanduseCommercial, 0157 LanduseConstruction, 0158 LanduseFarmland, 0159 LanduseFarmyard, 0160 LanduseGarages, 0161 LanduseGrass, 0162 LanduseIndustrial, 0163 LanduseLandfill, 0164 LanduseMeadow, 0165 LanduseMilitary, 0166 LanduseQuarry, 0167 LanduseRailway, 0168 LanduseReservoir, 0169 LanduseResidential, 0170 LanduseRetail, 0171 RailwayRail, 0172 RailwayTram, 0173 RailwayLightRail, 0174 RailwayAbandoned, 0175 RailwaySubway, 0176 RailwayPreserved, 0177 RailwayMiniature, 0178 RailwayConstruction, 0179 RailwayMonorail, 0180 RailwayFunicular, 0181 Satellite, 0182 LastIndex 0183 }; 0184 0185 QString name () const; 0186 void setName (const QString& value); 0187 QString address () const; 0188 void setAddress (const QString& value); 0189 QString phoneNumber () const; 0190 void setPhoneNumber (const QString& value); 0191 QString description () const; 0192 void setDescription (const QString& value); 0193 QString styleUrl () const; 0194 void setStyleUrl (const QString& value); 0195 bool isVisible () const; 0196 void setVisible (bool value); 0197 const Marble::GeoDataStyle* style () const; 0198 Marble::GeoDataFeature::GeoDataVisualCategory visualCategory () const; 0199 void setVisualCategory (Marble::GeoDataFeature::GeoDataVisualCategory category); 0200 //ig const QChar role () const; 0201 qint64 popularity () const; 0202 void setPopularity (qint64 popularity); 0203 const Marble::GeoDataStyleMap* styleMap () const; 0204 const QSize symbolSize () const; 0205 static void resetDefaultStyles (); 0206 virtual void pack (QDataStream& stream) const; 0207 virtual void unpack (QDataStream& stream); 0208 static QFont defaultFont (); 0209 static void setDefaultFont (const QFont& font); 0210 virtual void detach (); 0211 0212 virtual ~GeoDataFeature (); 0213 virtual const char* nodeType () const; 0214 bool descriptionIsCDATA () const; 0215 void setDescriptionCDATA (bool cdata); 0216 Marble::GeoDataRegion& region () const; 0217 void setRegion (const Marble::GeoDataRegion& region); 0218 protected: 0219 //ig GeoDataFeature (GeoDataFeaturePrivate* priv); 0220 public: 0221 //ig Marble::GeoDataTimeSpan& timeSpan () const; 0222 //ig GeoDataTimeStamp& timeStamp () const; 0223 //ig GeoDataExtendedData& extendedData () const; 0224 //ig void setExtendedData (const GeoDataExtendedData& extendedData); 0225 void setRole (const QString& role); 0226 static Marble::GeoDataFeature::GeoDataVisualCategory OsmVisualCategory (const QString& keyValue); 0227 bool isGloballyVisible () const; 0228 const QImage symbol () const; 0229 int zoomLevel () const; 0230 void setZoomLevel (int index); 0231 static QColor defaultLabelColor (); 0232 static void setDefaultLabelColor (const QColor& color); 0233 void setStyleMap (const Marble::GeoDataStyleMap* map); 0234 const Marble::GeoDataAbstractView* abstractView () const; 0235 //ig Marble::GeoDataAbstractView* abstractView (); 0236 void setAbstractView (Marble::GeoDataAbstractView* abstractView); 0237 void setTimeSpan (const Marble::GeoDataTimeSpan& timeSpan); 0238 void setTimeStamp (const Marble::GeoDataTimeStamp& timeStamp); 0239 void setStyle (Marble::GeoDataStyle* style); 0240 }; 0241 // GeoDataFeature 0242 0243 }; 0244 // Marble 0245 0246