VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DtLuaNavJob Class Referenceabstract

Lua object class which represents a feature navigation task.

Inheritance diagram for DtLuaNavJob:
Inheritance graph
[legend]

Public Types

typedef std::list< DtLocation3DPoints
 

Public Member Functions

 DtLuaNavJob ()
 
virtual ~DtLuaNavJob () override
 
virtual luabind::object getObject (lua_State *L, int &index, std::string &message) override=0
 
virtual luabind::object getDebugObject (lua_State *L) override
 
virtual void cancel (lua_State *L) override
 
void addMessage (DtAlgorithmManager::Severity, std::string)
 
virtual DtString serialize () override
 
virtual bool deserialize (const DtString &) override
 
virtual DtString objectType () const override=0
 
virtual void run (const DtAlgorithmManager &mgr=DtAlgorithmManager())=0
 
virtual bool complete ()
 
- 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
 

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
 
bool myStarted = false
 
DtNavAreaQuery::Ptr myQuery
 
- Protected Attributes inherited from DtLuaAsyncJob
DtSimulationServicesmySimulationServices
 

Member Typedef Documentation

typedef std::list<DtLocation3D> DtLuaNavJob::Points

Constructor & Destructor Documentation

DtLuaNavJob::DtLuaNavJob ( )

For creating when deserializing.

virtual DtLuaNavJob::~DtLuaNavJob ( )
overridevirtual

DTOR.

DtLuaNavJob::DtLuaNavJob ( DtSimulationServices mgr,
DtString  navigationProfile,
DtLocation3D  startPoint,
DtLocation3D  accessPoint = DtLocation3D(DtVector::zero()),
Points  boundingArea = Points() 
)
protected

For creating from lua call.

Member Function Documentation

virtual luabind::object DtLuaNavJob::getObject ( lua_State *  L,
int index,
std::string &  message 
)
overridepure virtual
virtual luabind::object DtLuaNavJob::getDebugObject ( lua_State *  L)
inlineoverridevirtual

Retrieve debug data, if available. Default behavior is an empty table.

Implements DtLuaAsyncJob.

Reimplemented in DtLuaNavFindPathJob, and DtLuaNavRandomPointJob.

virtual void DtLuaNavJob::cancel ( lua_State *  L)
inlineoverridevirtual

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 DtString DtLuaNavJob::serialize ( )
overridevirtual

DtAsciiSerializable functions.

Implements DtAsciiSerializable.

virtual bool DtLuaNavJob::deserialize ( const DtString )
overridevirtual

This function should take the string that was serialized via serialize() and fill this object with the correct data.

Implements DtAsciiSerializable.

virtual DtString DtLuaNavJob::objectType ( ) const
overridepure 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 DtLuaNavPlaceFormationJob, DtLuaNavFindPathJob, DtLuaNavCoverPointJob, DtLuaNavPointOfInterestJob, and DtLuaNavRandomPointJob.

virtual void DtLuaNavJob::run ( const DtAlgorithmManager mgr = DtAlgorithmManager())
pure virtual
virtual bool DtLuaNavJob::complete ( )
virtual

Reimplemented in DtLuaNavRandomPointJob.

virtual void DtLuaNavJob::start ( )
protectedvirtual
virtual void DtLuaNavJob::taskComplete ( )
protectedpure virtual

Member Data Documentation

DtString DtLuaNavJob::myNavigationProfile
protected
DtLocation3D DtLuaNavJob::myStartPoint
protected
DtLocation3D DtLuaNavJob::myAccessPoint
protected
Points DtLuaNavJob::myBoundingArea
protected
std::string DtLuaNavJob::myMessage
protected
bool DtLuaNavJob::myStarted = false
protected
DtNavAreaQuery::Ptr DtLuaNavJob::myQuery
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)