![]() |
VR-Forces Developer's Guide
|
Lua object class which represents a feature navigation task.

Classes | |
| class | DtOffFeaturePart |
| class | DtOnFeaturePart |
| class | DtPartList |
| class | DtPathPart |
Public Types | |
| enum | PathPartType { ON_FEATURE_PART, OFF_FEATURE_PART, UNKNOWN_PART } |
| typedef std::vector< DtLocation3D > | Points |
Public Member Functions | |
| DtLuaPathJob () | |
| virtual | ~DtLuaPathJob () override |
| virtual luabind::object | getObject (lua_State *L, int &index, std::string &message) override |
| virtual luabind::object | getDebugObject (lua_State *L) override |
| virtual void | cancel (lua_State *L) override |
| void | addMessage (DtAlgorithmManager::Severity, std::string) |
| std::shared_ptr< DtLuaPathJob > | shared_from_this () |
| std::shared_ptr< const DtLuaPathJob > | shared_from_this () const |
Public Member Functions inherited from DtLuaAsyncJob | |
| virtual void | init (void *userData) override |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
Static Public Member Functions | |
| static std::shared_ptr < DtLuaPathJob > | Make (DtSimulationServices *mgr, DtString obstacleType, DtString pathType, const DtLocation3D &start, const DtLocation3D &dest, double buffer, bool returnMultiPartPath=false) |
| static std::shared_ptr < DtLuaPathJob > | Make (DtSimulationServices *mgr, DtString obstacleType, DtString pathType, const DtLocation3D &start, const DtLocation3D &dest, double buffer, MAKVRinTerra::DtAStarGraph::DtWeightFactorsList &factors, const double offRoadPathWeight, bool returnMultiPartPath=false) |
Protected Types | |
| typedef DtMutex | Mutex |
Protected Member Functions | |
| DtLuaPathJob (DtSimulationServices *mgr, DtString obstacles, DtString paths, const DtLocation3D &start, const DtLocation3D &dest, double buffer, bool returnMultiPartPath=false) | |
| DtLuaPathJob (DtSimulationServices *mgr, DtString obstacles, DtString paths, const DtLocation3D &start, const DtLocation3D &dest, double buffer, const MAKVRinTerra::DtAStarGraph::DtWeightFactorsList &weights, const double offRoadPathWeight, bool returnMultiPartPath=false) | |
| void | start () |
| void | run (const DtAlgorithmManager &mgr=DtAlgorithmManager()) |
| void | taskComplete () |
Protected Member Functions inherited from DtLuaAsyncJob | |
| DtLuaAsyncJob () | |
| DtLuaAsyncJob (DtSimulationServices *) | |
Protected Attributes | |
| Mutex | myMutex |
| std::string | myObstaclesType |
| std::string | myPathType |
| DtLocation3D | myStart |
| DtLocation3D | myDest |
| double | myBuffer |
| MAKVRinTerra::DtAStarGraph::DtWeightFactorsList | myWeights |
| double | myOffRoadPathWeight |
| Points | myPoints |
| DtPartList | myPathParts |
| bool | myTaskComplete |
| std::shared_ptr < DtAsyncJobMapEntry > | myJobEntry |
| std::string | myMessage |
| bool | myReturnMultiPartPath |
Protected Attributes inherited from DtLuaAsyncJob | |
| DtSimulationServices * | mySimulationServices |
Friends | |
| class | PathTask |
DtAsciiSerializable functions | |
| static DtAsciiSerializable * | creator () |
| virtual DtString | serialize () override |
| virtual bool | deserialize (const DtString &) override |
| virtual DtString | objectType () const override |
| typedef std::vector<DtLocation3D> DtLuaPathJob::Points |
|
protected |
| DtLuaPathJob::DtLuaPathJob | ( | ) |
For creating when deserializing.
|
overridevirtual |
DTOR.
|
protected |
For creating from lua call. Deprecated (missing weights)
|
protected |
For creating from lua call.
|
static |
Create a pointer to a new path job and return it. This version does not include feature weights (ie for different types of roads). Deprecated.
|
static |
Create a pointer to a path job and return it.
|
overridevirtual |
Retrieve value after the job is complete.
Implements DtLuaAsyncJob.
|
inlineoverridevirtual |
Retrieve debug data, if available. Default return value is an empty table.
Implements DtLuaAsyncJob.
|
inlineoverridevirtual |
Currently a no-op.
Implements DtLuaAsyncJob.
| void DtLuaPathJob::addMessage | ( | DtAlgorithmManager::Severity | , |
| std::string | |||
| ) |
Sets the output message in a thread-safe manner.
|
static |
|
overridevirtual |
The following characters are reserved and cannot be used in serialization: '|', ':'.
Implements DtAsciiSerializable.
This function should take the string that was serialized via serialize() and fill this object with the correct data.
Implements DtAsciiSerializable.
|
overridevirtual |
Should return the string name of this object. The object name should not be part of the serialization unless you want it to be, but you should take it into account when implementing both functions.
Implements DtAsciiSerializable.
| std::shared_ptr<DtLuaPathJob> DtLuaPathJob::shared_from_this | ( | ) |
| std::shared_ptr<const DtLuaPathJob> DtLuaPathJob::shared_from_this | ( | ) | const |
|
protected |
|
protected |
|
protected |
Called by task object whenever it is done.
|
friend |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
DtRailSegmentList mySegmentList;.
|
protected |
|
protected |
|
protected |
|
protected |
If true, getObject fills out a multi part path. Otherwise, getObject just fills out a location list.