11 #include <osgEarth/Map>
12 #include <osgEarth/FeatureSource>
13 #include <osgEarth/Query>
14 #include <osgEarth/MapNode>
15 #include <osgEarth/Geometry>
17 namespace MAKVRinTerra
25 const osgEarth::Geometry* geom,
const DtProj& proj);
29 virtual unsigned numberOfAttributes(
const Key::String&)
const override;
31 virtual boost::optional<Attribute> attribute(
const Key&)
const override;
72 std::string labelWithoutBounds()
const;
73 virtual std::string label()
const override;
74 virtual void forEachFeatureParallel(
const ForEachFunction&)
const override;
77 const DtQuery&,
const boost::optional<DtFeatureGeometry>&,
DtLoadType)
const override;
79 virtual bool loaded(
double)
const override;
81 virtual bool elided()
const override;
82 virtual bool empty()
const override;
83 virtual bool isCacheable(
const boost::optional<DtFeatureGeometry>& area)
const override;
84 virtual void cacheEstimate(
85 double& time,
double&
size,
const boost::optional<DtFeatureGeometry>& area)
const override;
86 virtual void cacheData(
93 virtual void convertBoundsQueryToTileQueries(
94 std::list<osgEarth::Query>& output)
const;
95 virtual void convertBoundsQueryToTileQueries(
96 const osgEarth::TileKey& root,
97 std::list<osgEarth::Query>& output)
const;
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:105
bool myErrorFlag
Definition: osgEarthFeatureSet.h:100
boost::function< void(const Feature &)> ForEachFunction
Callback type type for iterating through features.
Definition: featureSet.h:160
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:41
Definition: osgEarthFeatureSet.h:63
osg::ref_ptr< osgEarth::FeatureSource > myFeatureSource
Definition: osgEarthFeatureSet.h:99
std::set< DtFeature::Key > AttributeSet
Definition: osgEarthFeatureSet.h:66
boost::function< void()> DetachCallback
Callback type for disconnecting other callbacks. Functions which register callbacks return a DetachCa...
Definition: featureSet.h:132
Key used to lookup attributes. The DtFeature interface is a dictionary that maps Key objects to attri...
Definition: feature.h:67
std::shared_ptr< const DtProj > CPtr
Definition: proj.h:56
bool myAlwaysLoadFlag
Definition: osgEarthFeatureSet.h:105
Definition: featureSet.h:45
voidpf void uLong size
Definition: ioapi.h:39
StringAttributeTable myAttributes
Definition: osgEarthFeatureSet.h:49
boost::function< void()> DetachCallback
Callback used to detach the user from a feature so the users callback is not called anymore...
Definition: feature.h:179
boost::optional< DtFeatureGeometry > myGeometryFilter
Definition: osgEarthFeatureSet.h:102
Definition: osgEarthFeatureSet.h:19
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:150
int myMaxTileLod
Max Tile Lod that we read.
Definition: osgEarthFeatureSet.h:109
Represents some coordinate system. The terms "coordinate system", "projection", "spatial reference"...
Definition: proj.h:52
Represents a set of characeters a DtFeature object can have. DtQuery objects are the way to communica...
Definition: query.h:37
osg::ref_ptr< osgEarth::Feature > OsgEarthFeaturePtr
Definition: osgEarthFeatureSet.h:22
boost::function< void()> DeleteCallback
User supplied callback called when feature is deleted.
Definition: feature.h:182
Definition: osgEarthFeatureSet.h:52
DtFeatureGeometry myGeometry
Definition: osgEarthFeatureSet.h:60
virtual DetachCallback addDeleteCallback(const DeleteCallback &) const override
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: osgEarthFeatureSet.h:37
DtProj::CPtr myProjection
Definition: osgEarthFeatureSet.h:45
osgEarth::Query myQuery
Definition: osgEarthFeatureSet.h:103
DtProj::CPtr myProjection
Definition: osgEarthFeatureSet.h:101
osgEarth::AttributeTable AttributeTable
Definition: osgEarthFeatureSet.h:47
DtLoadType
Used to indicate whether to load features. See DtFeatureSetTemplate::filter.
Definition: featureSet.h:33
bool myIsTiled
Check if this feature set is tiled or not.
Definition: osgEarthFeatureSet.h:107
std::vector< DtFeatureGeometry > GeometryVector
Definition: featureGeometry.h:75
OsgEarthFeaturePtr myFeature
Definition: osgEarthFeatureSet.h:44
AttributeSet myAttributes
Definition: osgEarthFeatureSet.h:104
Represents a GIS feature. Features consist of a DtFeatureGeometry (2.5D geometric vector data) and a ...
Definition: feature.h:36
boost::function< void()> LoadedCallback
Callback type type for async notification of feature set loading.
Definition: featureSet.h:163
virtual bool isDeleted() const override
Check to see if feature has been deleted. Note: this is not related to C++ delete or destructors...
Definition: osgEarthFeatureSet.h:39
std::map< Key::String, AttributeTable::value_type > StringAttributeTable
Definition: osgEarthFeatureSet.h:48
Represents a feature geometry.
Definition: featureGeometry.h:40