VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
DtLuaPathJob Class Reference

Lua object class which represents a feature navigation task. More...

Inheritance diagram for DtLuaPathJob:
Inheritance graph
[legend]

Public Types

typedef std::vector< DtLocation3DPoints
 

Public Member Functions

 DtLuaPathJob ()
 For creating when deserializing. More...
 
 ~DtLuaPathJob ()
 DTOR. More...
 
luabind::object getObject (lua_State *L, int &index, std::string &message)
 Retrieve value. More...
 
luabind::object getDebugObject (lua_State *L)
 Retrieve debug data, if available. Default return value is an empty table. More...
 
virtual void cancel (lua_State *L)
 Currently a no-op. More...
 
void addMessage (DtAlgorithmManager::Severity, std::string)
 Sets the output message in a thread-safe manner. More...
 
DtString serialize ()
 The following characters are reserved and cannot be used in serialization: '|', ':'. More...
 
bool deserialize (const DtString &)
 This function should take the string that was serialized via serialize() and fill this object with the correct data. More...
 
DtString objectType () const
 Should return the string name of this object. More...
 
boost::shared_ptr< DtLuaPathJobshared_from_this ()
 
boost::shared_ptr< const
DtLuaPathJob
shared_from_this () const
 
- Public Member Functions inherited from DtLuaAsyncJob
void init (void *userData)
 Called by framework with userData set to the DtSimManager. More...
 
- Public Member Functions inherited from DtAsciiSerializable
 DtAsciiSerializable ()
 The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface. More...
 
 DtAsciiSerializable (const DtAsciiSerializable &orig)
 
virtual ~DtAsciiSerializable ()
 
virtual std::string objectTypeC () const
 Returns a std::string version of the objectType. More...
 

Static Public Member Functions

static boost::shared_ptr
< DtLuaPathJob
Make (DtSimManager *mgr, DtString obstacleType, DtString pathType, const DtLocation3D &start, const DtLocation3D &dest, double buffer)
 
static DtAsciiSerializablecreator ()
 DtAsciiSerializable functions. More...
 
- Static Public Member Functions inherited from DtObjectDebugger< DtAsciiSerializable >
static DtObjectCounter::CounterType ObjectCount ()
 
static const DtObjectContainer * ObjectContainer ()
 
- Static Public Member Functions inherited from DtObjectDebugger< DtLuaAsyncJob >
static DtObjectCounter::CounterType ObjectCount ()
 
static const DtObjectContainer * ObjectContainer ()
 

Protected Types

typedef DtMutex Mutex
 

Protected Member Functions

 DtLuaPathJob (DtSimManager *mgr, DtString obstacles, DtString paths, const DtLocation3D &start, const DtLocation3D &dest, double buffer)
 For creating from lua call. More...
 
void start ()
 
void run (const DtAlgorithmManager &mgr=DtAlgorithmManager())
 
void taskComplete ()
 Called by task object whenever it is done. More...
 
- Protected Member Functions inherited from DtLuaAsyncJob
 DtLuaAsyncJob ()
 
 DtLuaAsyncJob (DtSimManager *)
 
- Protected Member Functions inherited from DtObjectDebugger< DtAsciiSerializable >
 DtObjectDebugger ()
 
 DtObjectDebugger (const DtObjectDebugger &)
 
 ~DtObjectDebugger ()
 
- Protected Member Functions inherited from DtObjectDebugger< DtLuaAsyncJob >
 DtObjectDebugger ()
 
 DtObjectDebugger (const DtObjectDebugger &)
 
 ~DtObjectDebugger ()
 

Protected Attributes

Mutex myMutex
 
std::string myObstaclesType
 
std::string myPathType
 
DtLocation3D myStart
 
DtLocation3D myDest
 
double myBuffer
 
boost::scoped_ptr< PointsmyPoints
 
boost::shared_ptr
< DtAsyncJobMapEntry
myJobEntry
 
std::string myMessage
 
- Protected Attributes inherited from DtLuaAsyncJob
DtSimManagermySimManager
 

Friends

class PathTask
 

Detailed Description

Lua object class which represents a feature navigation task.

Member Typedef Documentation

typedef std::vector<DtLocation3D> DtLuaPathJob::Points
typedef DtMutex DtLuaPathJob::Mutex
protected

Constructor & Destructor Documentation

DtLuaPathJob::DtLuaPathJob ( )

For creating when deserializing.

DtLuaPathJob::~DtLuaPathJob ( )

DTOR.

DtLuaPathJob::DtLuaPathJob ( DtSimManager mgr,
DtString  obstacles,
DtString  paths,
const DtLocation3D start,
const DtLocation3D dest,
double  buffer 
)
protected

For creating from lua call.

Member Function Documentation

static boost::shared_ptr<DtLuaPathJob> DtLuaPathJob::Make ( DtSimManager mgr,
DtString  obstacleType,
DtString  pathType,
const DtLocation3D start,
const DtLocation3D dest,
double  buffer 
)
static
luabind::object DtLuaPathJob::getObject ( lua_State *  L,
int index,
std::string &  message 
)
virtual

Retrieve value.

Implements DtLuaAsyncJob.

luabind::object DtLuaPathJob::getDebugObject ( lua_State *  L)
inlinevirtual

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

Implements DtLuaAsyncJob.

virtual void DtLuaPathJob::cancel ( lua_State *  L)
inlinevirtual

Currently a no-op.

Implements DtLuaAsyncJob.

void DtLuaPathJob::addMessage ( DtAlgorithmManager::Severity  ,
std::string   
)

Sets the output message in a thread-safe manner.

static DtAsciiSerializable* DtLuaPathJob::creator ( )
static

DtAsciiSerializable functions.

DtString DtLuaPathJob::serialize ( )
virtual

The following characters are reserved and cannot be used in serialization: '|', ':'.

Implements DtAsciiSerializable.

bool DtLuaPathJob::deserialize ( const DtString )
virtual

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

Implements DtAsciiSerializable.

DtString DtLuaPathJob::objectType ( ) const
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.

boost::shared_ptr<DtLuaPathJob> DtLuaPathJob::shared_from_this ( )
boost::shared_ptr<const DtLuaPathJob> DtLuaPathJob::shared_from_this ( ) const
void DtLuaPathJob::start ( )
protected
void DtLuaPathJob::run ( const DtAlgorithmManager mgr = DtAlgorithmManager())
protected
void DtLuaPathJob::taskComplete ( )
protected

Called by task object whenever it is done.

Friends And Related Function Documentation

friend class PathTask
friend

Member Data Documentation

Mutex DtLuaPathJob::myMutex
mutableprotected
std::string DtLuaPathJob::myObstaclesType
protected
std::string DtLuaPathJob::myPathType
protected
DtLocation3D DtLuaPathJob::myStart
protected
DtLocation3D DtLuaPathJob::myDest
protected
double DtLuaPathJob::myBuffer
protected
boost::scoped_ptr<Points> DtLuaPathJob::myPoints
protected
boost::shared_ptr<DtAsyncJobMapEntry> DtLuaPathJob::myJobEntry
protected
std::string DtLuaPathJob::myMessage
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)