marble/src
GeoDataFeature Class Reference
#include <GeoDataFeature.h>

Detailed Description
A base class for all geodata features.GeoDataFeature is the base class for most geodata classes that correspond to places on a map. It is never instantiated by itself, but is always used as part of a derived class.
- See also:
- GeoDataPlacemark
Definition at line 41 of file GeoDataFeature.h.
Member Enumeration Documentation
A categorization of a placemark as defined by .
..FIXME.
- Enumerator:
Definition at line 48 of file GeoDataFeature.h.
Constructor & Destructor Documentation
| GeoDataFeature::GeoDataFeature | ( | ) |
Definition at line 28 of file GeoDataFeature.cpp.
| GeoDataFeature::~GeoDataFeature | ( | ) | [virtual] |
Definition at line 49 of file GeoDataFeature.cpp.
| GeoDataFeature::GeoDataFeature | ( | const QString & | name | ) | [protected] |
Create a new GeoDataFeature with name as its name.
Definition at line 38 of file GeoDataFeature.cpp.
Member Function Documentation
| QString GeoDataFeature::name | ( | ) | const |
The name of the feature.
The name of the feature should be a short string. It is often shown directly on the map and need therefore not take up much space.
- Returns:
- The name of this feature
Definition at line 217 of file GeoDataFeature.cpp.
| void GeoDataFeature::setName | ( | const QString & | value | ) |
Set a new name for this feature.
- Parameters:
-
value the new name
Definition at line 222 of file GeoDataFeature.cpp.
| QString GeoDataFeature::address | ( | ) | const |
| void GeoDataFeature::setAddress | ( | const QString & | value | ) |
| QString GeoDataFeature::phoneNumber | ( | ) | const |
| void GeoDataFeature::setPhoneNumber | ( | const QString & | value | ) |
| QString GeoDataFeature::description | ( | ) | const |
| void GeoDataFeature::setDescription | ( | const QString & | value | ) |
| bool GeoDataFeature::isVisible | ( | ) | const |
| void GeoDataFeature::setVisible | ( | bool | value | ) |
Set a new value for visibility.
- Parameters:
-
value new value for the visibility
Definition at line 262 of file GeoDataFeature.cpp.
| GeoDataStyle * GeoDataFeature::style | ( | ) | const |
| void GeoDataFeature::setStyle | ( | GeoDataStyle * | style | ) |
Sets the style of the placemark.
- Parameters:
-
style the new style to be used.
Definition at line 290 of file GeoDataFeature.cpp.
| const GeoDataFeature::GeoDataVisualCategory GeoDataFeature::visualCategory | ( | ) | const |
| void GeoDataFeature::setVisualCategory | ( | GeoDataFeature::GeoDataVisualCategory | index | ) |
Sets the symbol index of the placemark.
- Parameters:
-
category the new category to be used.
Definition at line 300 of file GeoDataFeature.cpp.
| const QChar GeoDataFeature::role | ( | ) | const |
Return the role of the placemark.
FIXME: describe roles here!
Definition at line 305 of file GeoDataFeature.cpp.
| void GeoDataFeature::setRole | ( | const QChar & | role | ) |
Sets the role of the placemark.
- Parameters:
-
role the new role to be used.
Definition at line 310 of file GeoDataFeature.cpp.
| const int GeoDataFeature::popularityIndex | ( | ) | const |
Return the popularity index of the placemark.
The popularity index is a value which describes at which zoom level the placemark will be shown.
Definition at line 315 of file GeoDataFeature.cpp.
| void GeoDataFeature::setPopularityIndex | ( | int | index | ) |
Sets the popularity index of the placemark.
- Parameters:
-
index the new index to be used.
Definition at line 320 of file GeoDataFeature.cpp.
| const qint64 GeoDataFeature::popularity | ( | ) | const |
| void GeoDataFeature::setPopularity | ( | qint64 | popularity | ) |
Sets the popularity of the feature.
- Parameters:
-
popularity the new popularity value
Definition at line 330 of file GeoDataFeature.cpp.
| const QSize GeoDataFeature::symbolSize | ( | ) | const |
| const QPixmap GeoDataFeature::symbolPixmap | ( | ) | const |
Return the symbol of the feature as a pixmap.
Note that the pixmaps are shared between all features with the same visual category
Definition at line 343 of file GeoDataFeature.cpp.
| void GeoDataFeature::resetDefaultStyles | ( | ) | [static] |
| void GeoDataFeature::pack | ( | QDataStream & | stream | ) | const [virtual] |
Serialize the contents of the feature to stream.
Reimplemented from GeoDataObject.
Reimplemented in GeoDataContainer, and GeoDataPlacemark.
Definition at line 356 of file GeoDataFeature.cpp.
| void GeoDataFeature::unpack | ( | QDataStream & | stream | ) | [virtual] |
Unserialize the contents of the feature from stream.
Reimplemented from GeoDataObject.
Reimplemented in GeoDataContainer, and GeoDataPlacemark.
Definition at line 368 of file GeoDataFeature.cpp.
Member Data Documentation
The visual category of this feature.
- See also:
- GeoDataVisualCategory
Definition at line 224 of file GeoDataFeature.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference