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

Public Types | |
| typedef std::list< DtLocation3D > | Points |
Public Member Functions | |
| DtLuaNavJob () | |
| ~DtLuaNavJob () | |
| virtual luabind::object | getObject (lua_State *L, int &index, std::string &message)=0 |
| virtual luabind::object | getDebugObject (lua_State *L) |
| virtual void | cancel (lua_State *L) |
| void | addMessage (DtAlgorithmManager::Severity, std::string) |
| virtual DtString | serialize () |
| virtual bool | deserialize (const DtString &) |
| virtual DtString | objectType () const =0 |
| virtual void | run (const DtAlgorithmManager &mgr=DtAlgorithmManager())=0 |
| virtual bool | complete () |
Public Member Functions inherited from DtLuaAsyncJob | |
| void | init (void *userData) |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
Protected Member Functions | |
| DtLuaNavJob (DtSimulationServices *mgr, DtString navigationProfile, DtLocation3D startPoint, DtLocation3D accessPoint=DtLocation3D(DtVector::zero()), Points boundingArea=Points()) | |
| virtual void | start () |
| virtual void | taskComplete ()=0 |
Protected Member Functions inherited from DtLuaAsyncJob | |
| DtLuaAsyncJob () | |
| DtLuaAsyncJob (DtSimulationServices *) | |
Protected Attributes | |
| DtString | myNavigationProfile |
| DtLocation3D | myStartPoint |
| DtLocation3D | myAccessPoint |
| Points | myBoundingArea |
| std::string | myMessage |
| DtNavAreaQuery::Ptr | myQuery |
Protected Attributes inherited from DtLuaAsyncJob | |
| DtSimulationServices * | mySimulationServices |
| typedef std::list<DtLocation3D> DtLuaNavJob::Points |
| DtLuaNavJob::DtLuaNavJob | ( | ) |
For creating when deserializing.
| DtLuaNavJob::~DtLuaNavJob | ( | ) |
DTOR.
|
protected |
For creating from lua call.
|
pure virtual |
Retrieve value.
Implements DtLuaAsyncJob.
Implemented in DtLuaNavFindPathJob, DtLuaNavCoverPointJob, DtLuaNavPointOfInterestJob, and DtLuaNavRandomPointJob.
|
inlinevirtual |
Retrieve debug data, if available. Default behavior is an empty table.
Implements DtLuaAsyncJob.
Reimplemented in DtLuaNavFindPathJob, and DtLuaNavRandomPointJob.
|
inlinevirtual |
Cancels the job. By default this is a no-op, we let the job finish on its own.
Implements DtLuaAsyncJob.
Reimplemented in DtLuaNavRandomPointJob.
| void DtLuaNavJob::addMessage | ( | DtAlgorithmManager::Severity | , |
| std::string | |||
| ) |
Sets the output message in a thread-safe manner.
|
virtual |
DtAsciiSerializable functions.
Implements DtAsciiSerializable.
This function should take the string that was serialized via serialize() and fill this object with the correct data.
Implements DtAsciiSerializable.
|
pure virtual |
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.
Implemented in DtLuaNavFindPathJob, DtLuaNavCoverPointJob, DtLuaNavPointOfInterestJob, and DtLuaNavRandomPointJob.
|
pure virtual |
Implemented in DtLuaNavFindPathJob, DtLuaNavCoverPointJob, DtLuaNavPointOfInterestJob, and DtLuaNavRandomPointJob.
|
virtual |
Reimplemented in DtLuaNavRandomPointJob.
|
protectedvirtual |
Reimplemented in DtLuaNavFindPathJob, DtLuaNavCoverPointJob, DtLuaNavPointOfInterestJob, and DtLuaNavRandomPointJob.
|
protectedpure virtual |
Called by task object whenever it is done.
Implemented in DtLuaNavFindPathJob, DtLuaNavCoverPointJob, DtLuaNavPointOfInterestJob, and DtLuaNavRandomPointJob.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |