![]() |
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) |
| void | setWeightsFromObject (DtLocalObject *owningObject) |
| 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, DtLocalObject *owningObject, bool returnMultiPartPath=false, bool adjustStartIfInObstacle=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 |
| bool | myAdjustStartIfInObstacle |
Protected Attributes inherited from DtLuaAsyncJob | |
| DtSimulationServices * | mySimulationServices |
Friends | |
| class | PathTask |
DtAsciiSerializable functions | |
| static DtAsciiSerializable * | creator () |
| virtual void | setOwningObject (DtLocalObject *owningObject) override |
| 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 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 |
Overridden to get the path planning weights of the owning object during deserialization.
|
overridevirtual |
Overridden to get the path planning weights of the owning object during deserialization.
Reimplemented from DtLuaAsyncJob.
|
overridevirtual |
Overridden to get the path planning weights of the owning object during deserialization.
Implements DtAsciiSerializable.
Overridden to get the path planning weights of the owning object during deserialization.
Implements DtAsciiSerializable.
|
overridevirtual |
Overridden to get the path planning weights of the owning object during deserialization.
Implements DtAsciiSerializable.
| void DtLuaPathJob::setWeightsFromObject | ( | DtLocalObject * | owningObject | ) |
Sets the path plan weights from the owning object by looking up the road path controller.
| 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.
|
protected |