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

Lua object class which finds a cover point from the specified location. More...

Inheritance diagram for DtLuaNavCoverPointJob:
Inheritance graph
[legend]

Public Member Functions

 DtLuaNavCoverPointJob ()
 For creating when deserializing.
 ~DtLuaNavCoverPointJob ()
 DTOR.
virtual luabind::object getObject (lua_State *L, int &index, std::string &message)
 Retrieve value - in this case, a single point ([0,0,0] when no valid point found)
virtual DtString objectType () const
 Should return the string name of this object.
virtual void start ()
virtual void run (const DtAlgorithmManager &mgr=DtAlgorithmManager())
virtual bool complete ()
virtual void taskComplete ()
 Called by task object whenever it is done.
- Public Member Functions inherited from DtLuaNavJob
 DtLuaNavJob ()
 For creating when deserializing.
 ~DtLuaNavJob ()
 DTOR.
virtual luabind::object getDebugObject (lua_State *L)
 Retrieve debug data, if available. Default behavior is an empty table.
virtual void cancel (lua_State *L)
 Cancels the job. By default this is a no-op, we let the job finish on its own.
void addMessage (DtAlgorithmManager::Severity, std::string)
 Sets the output message in a thread-safe manner.
virtual DtString serialize ()
 DtAsciiSerializable functions.
virtual bool deserialize (const DtString &)
 This function should take the string that was serialized via serialize() and fill this object with the correct data.
- Public Member Functions inherited from DtLuaAsyncJob
void init (void *userData)
 Called by framework with userData set to the DtSimManager.
- 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.
 DtAsciiSerializable (const DtAsciiSerializable &orig)
virtual ~DtAsciiSerializable ()
virtual std::string objectTypeC () const
 Returns a std::string version of the objectType.

Static Public Member Functions

static boost::shared_ptr
< DtLuaNavCoverPointJob
Make (DtSimManager *mgr, DtString navigationProfile, DtLocation3D startPoint, DtLocation3D coverFromPoint, double threatRadius, double distanceFromThreat, double range, unsigned numberOfPoints)
static DtAsciiSerializablecreator ()
 DtAsciiSerializable functions.

Protected Member Functions

 DtLuaNavCoverPointJob (DtSimManager *mgr, DtString navigationProfile, DtLocation3D startPoint, DtLocation3D threatPoint, double threatRadius, double distanceFromThreat, double range, unsigned numberOfPoints)
 For creating from lua call.
- Protected Member Functions inherited from DtLuaNavJob
 DtLuaNavJob (DtSimManager *mgr, DtString navigationProfile, DtLocation3D startPoint, DtLocation3D accessPoint=DtLocation3D(DtVector::zero()), Points boundingArea=Points())
 For creating from lua call.
- Protected Member Functions inherited from DtLuaAsyncJob
 DtLuaAsyncJob ()
 DtLuaAsyncJob (DtSimManager *)
- Protected Member Functions inherited from DtObjectDebugger< DtLuaAsyncJob >
 DtObjectDebugger ()
 DtObjectDebugger (const DtObjectDebugger &)
 ~DtObjectDebugger ()

Protected Attributes

double myThreatRadius
double myDistanceFromThreat
double myRange
DtLocation3D myThreatPoint
std::set< DtCoverPointmyResultPoints
unsigned myNumberOfPoints
boost::shared_ptr
< DtCoverPointFinder
myPendingCoverPointFinder
- Protected Attributes inherited from DtLuaNavJob
DtString myNavigationProfile
DtLocation3D myStartPoint
DtLocation3D myAccessPoint
Points myBoundingArea
std::string myMessage
DtNavAreaQuery::Ptr myQuery
- Protected Attributes inherited from DtLuaAsyncJob
DtSimManagermySimManager

Additional Inherited Members

- Public Types inherited from DtLuaNavJob
typedef std::list< DtLocation3DPoints

Detailed Description

Lua object class which finds a cover point from the specified location.

Constructor & Destructor Documentation

DtLuaNavCoverPointJob::DtLuaNavCoverPointJob ( )

For creating when deserializing.

DtLuaNavCoverPointJob::~DtLuaNavCoverPointJob ( )

DTOR.

DtLuaNavCoverPointJob::DtLuaNavCoverPointJob ( DtSimManager mgr,
DtString  navigationProfile,
DtLocation3D  startPoint,
DtLocation3D  threatPoint,
double  threatRadius,
double  distanceFromThreat,
double  range,
unsigned  numberOfPoints 
)
protected

For creating from lua call.

Member Function Documentation

static boost::shared_ptr<DtLuaNavCoverPointJob> DtLuaNavCoverPointJob::Make ( DtSimManager mgr,
DtString  navigationProfile,
DtLocation3D  startPoint,
DtLocation3D  coverFromPoint,
double  threatRadius,
double  distanceFromThreat,
double  range,
unsigned  numberOfPoints 
)
static
virtual luabind::object DtLuaNavCoverPointJob::getObject ( lua_State *  L,
int index,
std::string &  message 
)
virtual

Retrieve value - in this case, a single point ([0,0,0] when no valid point found)

Implements DtLuaNavJob.

static DtAsciiSerializable* DtLuaNavCoverPointJob::creator ( )
static

DtAsciiSerializable functions.

virtual DtString DtLuaNavCoverPointJob::objectType ( ) const
inlinevirtual

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 DtLuaNavJob.

References DtLuaNavCoverPointJobType.

virtual void DtLuaNavCoverPointJob::start ( )
virtual

Reimplemented from DtLuaNavJob.

virtual void DtLuaNavCoverPointJob::run ( const DtAlgorithmManager mgr = DtAlgorithmManager())
virtual

Implements DtLuaNavJob.

virtual bool DtLuaNavCoverPointJob::complete ( )
virtual

Implements DtLuaNavJob.

virtual void DtLuaNavCoverPointJob::taskComplete ( )
virtual

Called by task object whenever it is done.

Implements DtLuaNavJob.

Member Data Documentation

double DtLuaNavCoverPointJob::myThreatRadius
protected
double DtLuaNavCoverPointJob::myDistanceFromThreat
protected
double DtLuaNavCoverPointJob::myRange
protected
DtLocation3D DtLuaNavCoverPointJob::myThreatPoint
protected
std::set<DtCoverPoint> DtLuaNavCoverPointJob::myResultPoints
protected
unsigned DtLuaNavCoverPointJob::myNumberOfPoints
protected
boost::shared_ptr<DtCoverPointFinder> DtLuaNavCoverPointJob::myPendingCoverPointFinder
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)