16 #include <boost/shared_ptr.hpp>
17 #include <boost/optional.hpp>
19 #include <luabind/luabind.hpp>
44 DtLuaFeatureSet getFeaturesWithinArea(luabind::object
const& points, luabind::object
const& attributes);
77 bool getIsLoaded()
const;
80 int getFeatureCount();
84 bool getIsPointFeature(
int);
88 bool getIsLinearFeature(
int);
92 bool getIsArealFeature(
int);
96 std::string getFeatureType(
int);
100 std::vector<std::string> getFeatureAttributeNames(
int);
103 bool getHasAttributeNamed(
int,
const std::string);
111 std::vector<DtLocation3D> getLocations3D(
int);
115 static luabind::object getFeatureAttributeValue(
DtLuaFeatureSet&,
int,
const std::string, lua_State*);
132 virtual void testLoaded();
137 void updateRange(
const DtLocation3D& center,
double range);
138 void updatePoints(luabind::object
const& points);
139 void updateAttributes(luabind::object
const& attributes);
141 void filterFeatures();
144 typedef std::vector<MAKVRinTerra::DtFeature::CPtr>
Features;
157 boost::optional<MAKVRinTerra::DtQuery>
myQuery;
boost::optional< MAKVRinTerra::DtFeatureGeometry > myGeomFilter
Definition: luaFeatureSet.h:158
std::map< std::string, std::string > AttributeMap
Definition: luaFeatureSet.h:34
boost::shared_ptr< const DtFeature > CPtr
Definition: feature.h:44
Definition: asciiSerializable.h:33
virtual bool deserialize(const DtString &)=0
This function should take the string that was serialized via serialize() and fill this object with th...
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:265
Default on in debug, off in release.
Definition: objectCounter.h:31
bool myProcessed
Definition: luaFeatureSet.h:153
virtual DtString serialize()=0
The following characters are reserved and cannot be used in serialization: '|', ':'.
std::vector< DtLocation3D > LocationVector
Definition: luaFeatureSet.h:33
std::vector< MAKVRinTerra::DtFeature::CPtr > Features
Definition: luaFeatureSet.h:144
boost::optional< MAKVRinTerra::DtQuery > myQuery
Definition: luaFeatureSet.h:157
Represents a feature geometry.
Definition: luaFeatureGeometry.h:25
DtSimManager * mySimManager
Definition: luaFeatureSet.h:146
boost::shared_ptr< MAKVRinTerra::DtFeatureSet > myFeatureSet
Definition: luaFeatureSet.h:152
#define DT_DLL_vrfLua
This file is used to determine how to build.
Definition: vrfLuaDefines.h:25
std::map< std::string, std::string > myAttributes
Definition: luaFeatureSet.h:150
std::string myType
Definition: luaFeatureSet.h:156
virtual DtString objectType() const =0
Should return the string name of this object.
Features myFeatures
Definition: luaFeatureSet.h:154
The DtLuaFeatureSet class is a wrapper around a DtFeatureSet that will provide feature information fo...
Definition: luaFeatureSet.h:28
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
Represents a GIS feature.
Definition: feature.h:37
std::vector< DtLocation3D > myLocations
Items used to be stored into or restored from saved state.
Definition: luaFeatureSet.h:149
Represents a feature geometry.
Definition: featureGeometry.h:35
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22