16 namespace MAKVRinTerra
20 #ifdef DtObjectDebugger_Enable
27 unsigned color = 0xFF00FF,
61 if (k ==
"line width")
73 if (k.
name ==
"color")
78 if (k.
name ==
"line width")
87 virtual boost::optional<Attribute>
attribute(
const Key& k)
const override
91 if (k.
name ==
"color")
93 return boost::optional<Attribute>(
myColor);
96 if (k.
name ==
"line width")
98 return boost::optional<Attribute>(
myWidth);
102 return boost::none_t();
const long long myWidth
Definition: tileFeature.h:108
const long long myColor
Definition: tileFeature.h:107
virtual boost::optional< Attribute > attribute(const Key &k) const override
Get attribute at a certain key.
Definition: tileFeature.h:87
Key used to lookup attributes. The DtFeature interface is a dictionary that maps Key objects to attri...
Definition: feature.h:67
Wraps a feature object and makes sure all the callbacks are unhooked correctly In order to wrap a fea...
Definition: feature.h:300
Definition: tileFeature.h:18
static std::unique_ptr< DtFeature > CreateEmptyFeature()
Factory function for creating features with no data.
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:31
Default on in debug, off in release.
Definition: objectCounter.h:27
virtual void forEachAttribute(ForEachFunction f) const override
Calls the provided callback on each attribute.
Definition: tileFeature.h:48
const DtFeatureGeometry myGeometry
Definition: tileFeature.h:106
virtual DtTileFeature * clone() const override
Return a pointer to an object which represents the current feature. In order to enable paging and eff...
Definition: tileFeature.h:44
virtual unsigned numberOfAttributes(const Key::String &k) const override
Number of attributes with a given key.
Definition: tileFeature.h:54
String name
Definition: feature.h:100
unsigned index
Definition: feature.h:101
virtual DtFeatureGeometry geometry() const override
Get the geometry associated with this feature. GIS features each typically each associated with one g...
Definition: tileFeature.h:46
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:150
virtual bool hasAttribute(const Key &k) const override
Check to see if this feature has an attribute of a specific type.
Definition: tileFeature.h:69
DtTileFeature(const DtTileFeature &f)
Definition: tileFeature.h:36
Case insensitive string.
Definition: feature.h:70
Represents a GIS feature. Features consist of a DtFeatureGeometry (2.5D geometric vector data) and a ...
Definition: feature.h:36
Represents a feature geometry.
Definition: featureGeometry.h:40
DtTileFeature(const DtFeatureGeometry &geom, unsigned color=0xFF00FF, unsigned width=2)
Definition: tileFeature.h:25