16 namespace MAKVRinTerra
20 #ifdef DtObjectDebugger_Enable
27 unsigned color = 0xFF00FF,
65 if (k ==
"line width")
75 if (k.
name ==
"color")
78 if (k.
name ==
"line width")
89 if (k.
name ==
"color")
91 return boost::optional<Attribute>(
myColor);
94 if (k.
name ==
"line width")
96 return boost::optional<Attribute>(
myWidth);
100 return boost::none_t();
const long long myWidth
Definition: tileFeature.h:106
const long long myColor
Definition: tileFeature.h:105
Key used to lookup attributes.
Definition: feature.h:68
bool hasAttribute(const Key &k) const
Check to see if this feature has an attribute of a specific type.
Definition: tileFeature.h:71
Wraps a feature object and makes sure all the callbacks are unhooked correctly In order to wrap a fea...
Definition: feature.h:301
unsigned numberOfAttributes(const Key::String &k) const
Number of attributes with a given key.
Definition: tileFeature.h:60
DtTileFeature * clone() const
Return a pointer to an object which represents the current feature.
Definition: tileFeature.h:44
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:104
void forEachAttribute(ForEachFunction f) const
Calls the provided callback on each attribute.
Definition: tileFeature.h:54
String name
Definition: feature.h:101
unsigned index
Definition: feature.h:102
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:151
boost::optional< Attribute > attribute(const Key &k) const
Get attribute at a certain key.
Definition: tileFeature.h:85
DtTileFeature(const DtTileFeature &f)
Definition: tileFeature.h:36
DtFeatureGeometry geometry() const
Get the geometry associated with this feature.
Definition: tileFeature.h:49
static std::auto_ptr< DtFeature > CreateEmptyFeature()
Factory function for creating features with no data.
Case insensitive string.
Definition: feature.h:71
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:25