16 namespace MAKVRinTerra
25 unsigned color = 0xFF00FF,
63 if (k ==
"line width")
73 if (k.
name ==
"color")
76 if (k.
name ==
"line width")
87 if (k.
name ==
"color")
89 return boost::optional<Attribute>(
myColor);
92 if (k.
name ==
"line width")
94 return boost::optional<Attribute>(
myWidth);
98 return boost::none_t();
const long long myWidth
Definition: tileFeature.h:104
const long long myColor
Definition: tileFeature.h:103
Key used to lookup attributes.
Definition: feature.h:66
bool hasAttribute(const Key &k) const
Check to see if this feature has an attribute of a specific type.
Definition: tileFeature.h:69
Wraps a feature object and makes sure all the callbacks are unhooked correctly In order to wrap a fea...
Definition: feature.h:299
unsigned numberOfAttributes(const Key::String &k) const
Number of attributes with a given key.
Definition: tileFeature.h:58
DtTileFeature * clone() const
Return a pointer to an object which represents the current feature.
Definition: tileFeature.h:42
Definition: tileFeature.h:18
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:265
Default on in debug, off in release.
Definition: objectCounter.h:31
const DtFeatureGeometry myGeometry
Definition: tileFeature.h:102
void forEachAttribute(ForEachFunction f) const
Calls the provided callback on each attribute.
Definition: tileFeature.h:52
String name
Definition: feature.h:99
unsigned index
Definition: feature.h:100
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:149
boost::optional< Attribute > attribute(const Key &k) const
Get attribute at a certain key.
Definition: tileFeature.h:83
DtTileFeature(const DtTileFeature &f)
Definition: tileFeature.h:34
DtFeatureGeometry geometry() const
Get the geometry associated with this feature.
Definition: tileFeature.h:47
static std::auto_ptr< DtFeature > CreateEmptyFeature()
Factory function for creating features with no data.
Case insensitive string.
Definition: feature.h:69
Represents a GIS feature.
Definition: feature.h:37
Represents a feature geometry.
Definition: featureGeometry.h:35
DtTileFeature(const DtFeatureGeometry &geom, unsigned color=0xFF00FF, unsigned width=2)
Definition: tileFeature.h:23