16 #include <boost/shared_ptr.hpp>
17 #include <boost/optional.hpp>
19 #include <luabind/luabind.hpp>
30 #ifdef DtObjectDebugger_Enable
46 DtLuaFeatureSet getFeaturesWithinArea(luabind::object
const& points, luabind::object
const& attributes);
79 bool getIsLoaded()
const;
82 int getFeatureCount();
86 bool getIsPointFeature(
int);
90 bool getIsLinearFeature(
int);
94 bool getIsArealFeature(
int);
98 std::string getFeatureType(
int);
102 std::vector<std::string> getFeatureAttributeNames(
int);
105 bool getHasAttributeNamed(
int,
const std::string);
113 std::vector<DtLocation3D> getLocations3D(
int);
117 static luabind::object getFeatureAttributeValue(
DtLuaFeatureSet&,
int,
const std::string, lua_State*);
134 virtual void testLoaded();
139 void updateRange(
const DtLocation3D& center,
double range);
140 void updatePoints(luabind::object
const& points);
141 void updateAttributes(luabind::object
const& attributes);
143 void filterFeatures();
146 typedef std::vector<MAKVRinTerra::DtFeature::CPtr>
Features;
159 boost::optional<MAKVRinTerra::DtQuery>
myQuery;
boost::optional< MAKVRinTerra::DtFeatureGeometry > myGeomFilter
Definition: luaFeatureSet.h:160
std::map< std::string, std::string > AttributeMap
Definition: luaFeatureSet.h:36
boost::shared_ptr< const DtFeature > CPtr
Definition: feature.h:46
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:155
virtual DtString serialize()=0
The following characters are reserved and cannot be used in serialization: '|', ':'.
std::vector< DtLocation3D > LocationVector
Definition: luaFeatureSet.h:35
std::vector< MAKVRinTerra::DtFeature::CPtr > Features
Definition: luaFeatureSet.h:146
boost::optional< MAKVRinTerra::DtQuery > myQuery
Definition: luaFeatureSet.h:159
Represents a feature geometry.
Definition: luaFeatureGeometry.h:25
DtSimManager * mySimManager
Definition: luaFeatureSet.h:148
boost::shared_ptr< MAKVRinTerra::DtFeatureSet > myFeatureSet
Definition: luaFeatureSet.h:154
#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:152
std::string myType
Definition: luaFeatureSet.h:158
virtual DtString objectType() const =0
Should return the string name of this object.
Features myFeatures
Definition: luaFeatureSet.h:156
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:103
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:151
Represents a feature geometry.
Definition: featureGeometry.h:35
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22