15 namespace MAKVRinTerra
30 typedef boost::shared_ptr<DtAreaFeature>
Ptr;
31 typedef boost::shared_ptr<const DtAreaFeature>
CPtr;
57 const std::string& type,
double buffer=0,
bool clip=
false);
59 bool operator<(
const Config& other)
const;
67 std::string label()
const;
71 const DtQuery& query,
const boost::optional<DtFeatureGeometry>&,
DtLoadType)
const;
73 bool loaded(
double)
const;
75 unsigned numberOfFeatures()
const;
83 void addEnclosingGeometry(
const boost::optional<DtFeatureGeometry>& geom);
97 typedef boost::shared_ptr<DtFeatureWrapper>
Ptr;
98 typedef boost::shared_ptr<const DtFeatureWrapper>
CPtr;
107 return myWrapper.wrappedFeature().area();
117 myWrapper.forEachAttribute(func);
122 return myWrapper.numberOfAttributes(str);
127 return myWrapper.attribute(key);
132 return myWrapper.addDeleteCallback(callback);
137 return myWrapper.isDeleted();
142 myWrapper.setDeleted();
146 : myWrapper(from.myWrapper)
161 : myWrapper(f.
clone())
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:101
boost::function< void(const Feature &)> ForEachFunction
Callback type type for iterating through features.
Definition: featureSet.h:151
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:36
Feature which has been processed to be an area.
Definition: areaFeature.h:21
DtFeatureWrapper(const DtFeatureWrapper &from)
Definition: areaFeature.h:145
boost::scoped_ptr< DtFeatureSet > myFeatureSet
Definition: areaFeature.h:85
boost::function< void()> DetachCallback
Callback type for disconnecting other callbacks.
Definition: featureSet.h:123
bool clip
Clip features to page table cells.
Definition: areaFeature.h:54
boost::shared_ptr< const DtFeatureWrapper > CPtr
Definition: areaFeature.h:98
Key used to lookup attributes.
Definition: feature.h:66
DtProj::CPtr myProjection
Definition: areaFeature.h:87
Wraps a feature object and makes sure all the callbacks are unhooked correctly In order to wrap a fea...
Definition: feature.h:299
DtFeatureWrapper * clone() const
Definition: feature.h:372
double buffer
Meters to buffer object.
Definition: areaFeature.h:51
DtFeatureWrapper< DtFeature, DtAreaFeature > myWrapper
Definition: areaFeature.h:166
void forEachAttribute(ForEachFunction func) const
Calls the provided callback on each attribute.
Definition: areaFeature.h:115
DtFeatureWrapper(const DtAreaFeature::Ptr &f)
Definition: areaFeature.h:155
boost::optional< Attribute > attribute(const Key &key) const
Get attribute at a certain key.
Definition: areaFeature.h:125
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:265
Default on in debug, off in release.
Definition: objectCounter.h:31
Definition: featureGeometry.h:54
Config myConfig
Definition: areaFeature.h:88
DtFeatureSetTemplate< DtAreaFeature > DtAreaFeatureSet
Definition: areaFeature.h:39
boost::shared_ptr< const DtAreaFeature > CPtr
Definition: areaFeature.h:31
static const char * TypeName
"area"
Definition: areaFeature.h:28
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
DetachCallback addDeleteCallback(const DeleteCallback &callback) const
Add a user supplied callback to the feature to be called when the feature is deleted.
Definition: areaFeature.h:130
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:149
Definition: areaFeature.h:41
Represents some coordinate system.
Definition: proj.h:44
Represents a set of characeters a DtFeature object can have.
Definition: query.h:38
boost::function< void()> DeleteCallback
User supplied callback called when feature is deleted.
Definition: feature.h:181
DtFeatureWrapper * clone() const
Return a pointer to an object which represents the current feature.
Definition: areaFeature.h:100
DtFeatureWrapper(const DtAreaFeature &f)
Definition: areaFeature.h:160
void setDeleted()
Definition: areaFeature.h:140
boost::shared_ptr< const DtProj > CPtr
Definition: proj.h:48
unsigned numberOfAttributes(const Key::String &str) const
Definition: areaFeature.h:120
bool isDeleted() const
Check to see if feature has been deleted.
Definition: areaFeature.h:135
DtFeatureGeometry geometry() const
Get the geometry associated with this feature.
Definition: areaFeature.h:110
DtFeatureWrapper(const DtFeatureWrapper &from)
Copy constructor.
Definition: feature.h:384
DtFeatureGeometry::Area area() const
Get processed area.
Definition: areaFeature.h:105
std::string type
Query type name.
Definition: areaFeature.h:48
DtLoadType
Used to indicate whether to load features.
Definition: featureSet.h:36
DtFeatureWrapper(DtAreaFeature *f)
Definition: areaFeature.h:150
boost::optional< DtFeatureGeometry > myEnclosingGeometry
Definition: areaFeature.h:86
Represents a GIS feature.
Definition: feature.h:37
boost::function< void()> LoadedCallback
Callback type type for async notification of feature set loading.
Definition: featureSet.h:154
Configuration object for processing areas.
Definition: areaFeature.h:45
Represents a feature geometry.
Definition: featureGeometry.h:35
boost::shared_ptr< DtAreaFeature > Ptr
Definition: areaFeature.h:30
boost::shared_ptr< DtFeatureWrapper > Ptr
Definition: areaFeature.h:97