15 namespace MAKVRinTerra
20 typedef boost::shared_ptr<DtPathFeature>
Ptr;
21 typedef boost::shared_ptr<const DtPathFeature>
CPtr;
37 virtual boost::optional<unsigned> numLanes()
const;
38 virtual boost::optional<double> width()
const;
39 virtual boost::optional<double> medianWidth()
const;
40 virtual boost::optional<std::string> roadName()
const;
41 virtual bool isClosed()
const;
63 return myFeature.attribute(key);
68 myFeature.forEachAttribute(f);
73 return myFeature.numberOfAttributes(name);
83 return myFeature.addDeleteCallback(callback);
88 return myFeature.isDeleted();
93 : myFeature(from.myFeature)
94 , myPathGeometry(from.myPathGeometry)
117 void findClosestPointOnFeature();
119 bool foundClosestFeature()
const;
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:101
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:36
double myClosestDistance
Definition: pathFeature.h:123
std::vector< DtPoint > PointVector
Definition: featureGeometry.h:69
DtPoint myClosestEdgeB
Definition: pathFeature.h:126
DtProj::CPtr myTopoProj
Definition: pathFeature.h:128
Key used to lookup attributes.
Definition: feature.h:66
boost::shared_ptr< DtPathFeature > Ptr
Definition: pathFeature.h:20
Definition: pathFeature.h:46
bool isDeleted() const
Check to see if feature has been deleted.
Definition: pathFeature.h:86
DtFeatureGeometry::Path pathGeometry() const
Definition: pathFeature.h:56
DtPoint myClosestPoint
Definition: pathFeature.h:124
DtPathFeature::CPtr myClosestFeature
Definition: pathFeature.h:122
DtFeatureGeometry::Path myPathGeometry
Definition: pathFeature.h:99
boost::optional< Attribute > attribute(const Key &key) const
have to implement all the DtFeature and functions to call the same function on myFeature, like...
Definition: pathFeature.h:61
DtFeatureGeometry::Point myEntityPoint
Definition: pathFeature.h:121
boost::function< void()> DetachCallback
Callback used to detach the user from a feature so the users callback is not called anymore...
Definition: feature.h:178
DtPoint myClosestEdgeA
Definition: pathFeature.h:125
DtFeatureGeometry::PointVector PointVector
Definition: pathFeature.h:109
Direction
Definition: pathFeature.h:23
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:149
Handle< PointType > Point
Definition: featureGeometry.h:63
Represents some coordinate system.
Definition: proj.h:44
boost::function< void()> DeleteCallback
User supplied callback called when feature is deleted.
Definition: feature.h:181
static const char * TypeName
Definition: pathFeature.h:30
boost::shared_ptr< const DtPathFeature > CPtr
Definition: pathFeature.h:21
unsigned numberOfAttributes(const Key::String &name) const
Definition: pathFeature.h:71
Definition: pathFeature.h:25
DtSimplePathFeature(const DtSimplePathFeature &from)
Definition: pathFeature.h:92
boost::shared_ptr< const DtProj > CPtr
Definition: proj.h:48
Definition: pathFeature.h:26
Handle< PathType > Path
Definition: featureGeometry.h:64
DtFeatureSetTemplate< DtPathFeature > DtPathFeatureSet
Definition: pathFeature.h:44
Definition: pathFeature.h:106
DtFeatureGeometry geometry() const
Get the geometry associated with this feature.
Definition: pathFeature.h:55
Definition: pathFeature.h:17
DtSimplePathFeature * clone() const
Return a pointer to an object which represents the current feature.
Definition: pathFeature.h:76
DtProj::CPtr myLocalProj
Definition: pathFeature.h:127
DtFeatureWrapper< DtFeature > myFeature
Definition: pathFeature.h:98
Represents a GIS feature.
Definition: feature.h:37
void forEachAttribute(ForEachFunction f) const
Calls the provided callback on each attribute.
Definition: pathFeature.h:66
DetachCallback addDeleteCallback(const DeleteCallback &callback) const
Add a user supplied callback to the feature to be called when the feature is deleted.
Definition: pathFeature.h:81
Represents a feature geometry.
Definition: featureGeometry.h:35