![]() |
VR-Forces Developer's Guide
|
Lua object class for finding random points within a nav area.

Public Member Functions | |
| DtLuaNavRandomPointJob () | |
| virtual | ~DtLuaNavRandomPointJob () 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 |
| virtual DtString | objectType () const override |
| virtual void | start () override |
| virtual void | run (const DtAlgorithmManager &mgr=DtAlgorithmManager()) override |
| virtual bool | beginPointGeneration () |
| virtual bool | complete () override |
| virtual void | taskComplete () override |
Public Member Functions inherited from DtLuaNavJob | |
| DtLuaNavJob () | |
| virtual | ~DtLuaNavJob () override |
| void | addMessage (DtAlgorithmManager::Severity, std::string) |
| virtual DtString | serialize () override |
| virtual bool | deserialize (const DtString &) override |
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 < DtLuaNavRandomPointJob > | Make (DtSimulationServices *mgr, DtString navigationProfile, DtLocation3D startPoint, double minDistanceFromStart, double maxDistanceFromStart, DtLocation3D accessPoint=DtLocation3D(DtVector::zero()), Points boundingArea=Points(), int numberOfPoints=1, double minDistanceBetweenPoints=0.0, DtString placementRestriction=DtMovementModeFree, bool isStrict=true, bool tightlyPack=false, bool needLos=false, bool groundClamp=false, Points leftOfLine=Points(), const DtSimObject *parentObject=0) |
| static DtAsciiSerializable * | creator () |
Protected Member Functions | |
| DtLuaNavRandomPointJob (DtSimulationServices *mgr, DtString navigationProfile, DtLocation3D startPoint, double minDistanceFromStart, double maxDistanceFromStart, DtLocation3D accessPoint=DtLocation3D(DtVector::zero()), Points boundingArea=Points(), int numberOfPoints=1, double minDistanceBetweenPoints=0.0, DtString placementRestriction=DtMovementModeFree, bool isStrict=true, bool tightlyPack=false, bool needLos=false, bool groundClamp=false, Points leftOfLine=Points(), const DtSimObject *parentObject=0) | |
Protected Member Functions inherited from DtLuaNavJob | |
| DtLuaNavJob (DtSimulationServices *mgr, DtString navigationProfile, DtLocation3D startPoint, DtLocation3D accessPoint=DtLocation3D(DtVector::zero()), Points boundingArea=Points()) | |
Protected Member Functions inherited from DtLuaAsyncJob | |
| DtLuaAsyncJob () | |
| DtLuaAsyncJob (DtSimulationServices *) | |
Protected Attributes | |
| int | myNumberOfPoints |
| double | myMinDistanceFromStart |
| double | myMaxDistanceFromStart |
| double | myMinDistanceBetweenPoints |
| DtString | myPlacementRestriction |
| bool | myIsStrict |
| bool | myTightlyPack |
| bool | myNeedLos |
| bool | myGroundClamp |
| Points | myLeftOfLine |
| Points | myResultPoints |
| Points | myDebugPoints |
| const DtSimObject * | myParentObject |
| bool | myRanOnce |
| bool | myGenerated |
| bool | myDataAvailable |
| bool | myNoNavArea |
| DtVector | myLocalAccessPoint |
| DtLocalVertexList | myBoundary |
| DtLocalVertexList | myLeftOfLineVertices |
Protected Attributes inherited from DtLuaNavJob | |
| DtString | myNavigationProfile |
| DtLocation3D | myStartPoint |
| DtLocation3D | myAccessPoint |
| Points | myBoundingArea |
| std::string | myMessage |
| bool | myStarted = false |
| DtNavAreaQuery::Ptr | myQuery |
Protected Attributes inherited from DtLuaAsyncJob | |
| DtSimulationServices * | mySimulationServices |
Additional Inherited Members | |
Public Types inherited from DtLuaNavJob | |
| typedef std::list< DtLocation3D > | Points |
| DtLuaNavRandomPointJob::DtLuaNavRandomPointJob | ( | ) |
For creating when deserializing.
|
overridevirtual |
DTOR.
|
protected |
For creating from lua call.
|
static |
|
overridevirtual |
Retrieve value - in this case, a table of points.
Implements DtLuaNavJob.
|
overridevirtual |
Retrieve debug data - in this case a table of points relevant to finding an access point.
Reimplemented from DtLuaNavJob.
|
overridevirtual |
Cancels the job.
Reimplemented from DtLuaNavJob.
|
static |
DtAsciiSerializable functions.
|
inlineoverridevirtual |
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 DtLuaNavRandomPointJobType.
|
overridevirtual |
Reimplemented from DtLuaNavJob.
|
overridevirtual |
Implements DtLuaNavJob.
|
virtual |
Begins random point generation. Returns true if point generation began, or false if we are waiting for nav data to load.
|
overridevirtual |
Reimplemented from DtLuaNavJob.
|
overridevirtual |
Called by task object whenever it is done.
Implements DtLuaNavJob.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |