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:41
double myClosestDistance
Definition: pathFeature.h:123
std::vector< DtPoint > PointVector
Definition: featureGeometry.h:75
DtPoint myClosestEdgeB
Definition: pathFeature.h:126
DtProj::CPtr myTopoProj
Definition: pathFeature.h:128
Key used to lookup attributes. The DtFeature interface is a dictionary that maps Key objects to attri...
Definition: feature.h:68
boost::shared_ptr< DtPathFeature > Ptr
Definition: pathFeature.h:20
Definition: pathFeature.h:46
bool isDeleted() const
Check to see if feature has been deleted. Note: this is not related to C++ delete or destructors...
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:180
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:151
Handle< PointType > Point
Definition: featureGeometry.h:69
Represents some coordinate system. The terms "coordinate system", "projection", "spatial reference"...
Definition: proj.h:44
boost::function< void()> DeleteCallback
User supplied callback called when feature is deleted.
Definition: feature.h:183
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:70
DtFeatureSetTemplate< DtPathFeature > DtPathFeatureSet
Definition: pathFeature.h:44
Definition: pathFeature.h:106
DtFeatureGeometry geometry() const
Get the geometry associated with this feature. GIS features each typically each associated with one g...
Definition: pathFeature.h:55
Definition: pathFeature.h:17
DtSimplePathFeature * clone() const
Return a pointer to an object which represents the current feature. In order to enable paging and eff...
Definition: pathFeature.h:76
DtProj::CPtr myLocalProj
Definition: pathFeature.h:127
DtFeatureWrapper< DtFeature > myFeature
Definition: pathFeature.h:98
Represents a GIS feature. Features consist of a DtFeatureGeometry (2.5D geometric vector data) and a ...
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. If the feature is already deleted the callback may or may not be called by the implementation of this function. The callback is guaranteed to only be called once.
Definition: pathFeature.h:81
Represents a feature geometry.
Definition: featureGeometry.h:39