![]() |
VR-Forces Development_Version Class Documentation
|
This is the DtVrfObjectNavInterface subclass for objects which are actively querying the navigation system. More...

Public Member Functions | |
| virtual void | firstTick () |
| virtual void | tick () |
| virtual | ~DtActiveBotNavInterface () |
| virtual bool | ableToNavigate () const |
| Indicates whether or not this navInterface is currently able to provide navigation services for the entity. | |
| virtual DtNavArea * | navArea () |
| virtual bool | requestControl (int priority, const DtString &controller) |
| virtual bool | hasControl (int priority) |
| virtual void | releaseControl (int priority) |
| virtual void | setDestination (const DtVector &localDest) |
| Sets the destination into the navBot if it is there. | |
| virtual void | setDesiredSpeed (double speed) |
| virtual DtNavBot::PathStatus | pathStatus (double atDistance) |
| virtual DtString | pathStatusString () |
| virtual double | getOutputSpeed () |
| virtual double | getOutputHeading () |
| virtual bool | currentPath (std::vector< DtVector > &path) |
| virtual bool | abstractPath (std::vector< DtVector > &path) |
| virtual unsigned | currentAbstractPathIndex () |
| virtual void | setPathCostEvalFunction (DtNavBot::DtNavBotPathLocationEvalFcn fcn, void *usr) |
| Sets a function that will be called frequently during path finding and path following to evaluate the cost of crossing various section of the navigation data. | |
| virtual DtVector | transitionPoint () const |
| virtual bool | usingTransitionPoint () const |
| virtual bool | findingTransitionPoint () const |
| Returns true if in the process of looking for a transition point. | |
| virtual std::vector< DtVector > | searchInArea (double radius, double postSpacing, DtNavArea::DtPointOfInterestEvaluatorFcn=0, void *usrData=0, int navTag=-1) |
| Returns a list of points that have been judged to be usable within the given area and post spacing. | |
| virtual std::vector< DtVector > | searchInArea (const DtVector &startPoint, double radius, double postSpacing, DtNavArea::DtPointOfInterestEvaluatorFcn=0, void *usrData=0, int navTag=-1) |
| virtual DtNavAreaQuery::Ptr | findBestPathTo (const std::vector< DtVector > &localPositions, DtNavArea::DtSearchAreaPointCostModifierEvaluatorFcn=0, DtNavArea::DtPointOfInterestEvaluatorFcn=0, DtNavArea::DtPathCalculatedEvaluatorFcn=0, void *usrData=0) |
| Starts the process of finding the best path to any of the given destination points. | |
| virtual void | cancelQuery (DtNavAreaQuery::Ptr) |
| Cancels the given query. | |
| virtual void | moveAlongPath (const std::vector< DtVector > &) |
| Sets the bot to move along the given path. Points are in local coordinates. | |
Public Member Functions inherited from DtVrfObjectNavInterface | |
| virtual | ~DtVrfObjectNavInterface ()=0 |
| virtual void | addNavAreaChangedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType callback, void *usr) |
| virtual void | removeNavAreaChangedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType callback, void *usr) |
| virtual void | invokeNavAreaChangedCallbacks () |
Static Public Member Functions | |
| static DtVrfObjectNavInterface * | create (DtVrfObject *vrfObject) |
Protected Member Functions | |
| DtActiveBotNavInterface (DtVrfObject *vrfObject) | |
| Use the create() method instead of calling the constructor. | |
| virtual bool | init () |
| Virtual init, called from the create() method. | |
| virtual DtNavBot * | navBot () |
| virtual void | changingNavArea (DtNavArea *newNavArea) |
| Called when the objects position is in a navArea that it was not on the previous check. | |
| virtual void | processSetLocationComplete (DtVrfObject *vrfObject) |
| virtual DtNavAreaQuery::Ptr | findTransitionPoint (DtNavArea *navArea, const DtVector &localStart, const DtVector &localDest) |
| virtual DtNavAreaQuery::Ptr | findBestExitPoint (DtNavArea *navArea, const DtVector &localStart, const DtVector &localDest) |
| virtual bool | findInsidePositionFromOutsidePosition (DtNavArea *navArea, const DtVector &localStart, const DtVector &localDest, DtVector &result, int &halfEdgeType) |
| virtual DtVector | adjustDestination (const DtVector &localDest) |
| Moves the destination to on the nav mesh if possible. | |
| virtual DtVector | localOrParentPos (const DtVector &localPos) |
| If the entity is embarked, converts the provided local position to the parent frame, otherwise returns the same local position provided. | |
| virtual DtVector | objectLocationLocalOrParent () |
| Returns the local position of the entity, or the parent position if the entity is embarked. | |
| virtual bool | botShouldBeActive () |
| Checks any special conditions (other than location) for the activation/deactivation of the bot, such as the entity being destroyed. | |
| virtual void | setCollisionAvoidParams (DtNavBot::CollisionAvoidanceConfiguration &collAvoidConfig) |
| Sets the collision avoidance configuration from the parameters specified in the platform OPE file. | |
| virtual void | findTransitionPointStartingFrom (const DtVector &startingPoint, const DtVector &to) |
| Finds a new transition point at the given start point. | |
| virtual void | removeDebugTransitionPoints () |
| virtual void | setNavigationConfigParams (DtNavBot::NavigationConfiguration &navConfig) |
| Sets the navigation configuration from the parameters specified in the platform OPE file. | |
Protected Member Functions inherited from DtVrfObjectNavInterface | |
| DtVrfObjectNavInterface (DtVrfObject *vrfObject) | |
| Use the create() method instead of calling the constructor. | |
| virtual bool | isCollidableWhenDestroyed () const |
Static Protected Member Functions | |
| static void | setLocationCompleteCallback (DtVrfObject *vrfObject, void *usr) |
| Update nav bot's destination, to trigger a replan. | |
Protected Attributes | |
| DtString | myProfile |
| DtNavBot * | myNavBot |
| DtNavArea * | myNavArea |
| DtVector | myTransitionPoint |
| DtNavAreaQuery::Ptr | myPendingQuery |
| boost::shared_ptr < DtTransitionPointFinder > | myPendingPointFinder |
| int | myControllerPriority |
| DtString | myController |
| DtString | myStatusString |
| DtNavBot::DtNavBotPathLocationEvalFcn | myPathCostEvalFcn |
| void * | myPathCostEvalFcnUsrData |
| std::vector < DtSharedVrfObjectReference > | myDebugTransitionPoints |
Protected Attributes inherited from DtVrfObjectNavInterface | |
| DtVrfObject * | myVrfObject |
| bool | myFirstTick |
| DtNavArea * | myCurrentNavArea |
| DtNoArgumentCallbackList | myChangedNavAreaCallbackList |
Private Member Functions | |
| DtActiveBotNavInterface () | |
| Not Implemented. | |
| DtActiveBotNavInterface (const DtActiveBotNavInterface &orig) | |
| Not Implemented. | |
| DtActiveBotNavInterface & | operator= (const DtActiveBotNavInterface &orig) |
| Not Implemented. | |
This is the DtVrfObjectNavInterface subclass for objects which are actively querying the navigation system.
They will have a DtNavBot instantiated if they are within a navigation area.
|
private |
Not Implemented.
|
private |
Not Implemented.
|
protected |
Use the create() method instead of calling the constructor.
|
virtual |
|
private |
Not Implemented.
|
static |
|
protectedvirtual |
Virtual init, called from the create() method.
Reimplemented from DtVrfObjectNavInterface.
|
virtual |
Reimplemented from DtVrfObjectNavInterface.
|
virtual |
Reimplemented from DtVrfObjectNavInterface.
|
virtual |
Indicates whether or not this navInterface is currently able to provide navigation services for the entity.
This will be true when the entity is in a navigation area and in a valid location for navigation.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets the destination into the navBot if it is there.
If there is no navBot, but the destination is in a navArea, finds the best point to enter the area and sets it to transitionPoint.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets a function that will be called frequently during path finding and path following to evaluate the cost of crossing various section of the navigation data.
|
inlinevirtual |
|
virtual |
|
virtual |
Returns true if in the process of looking for a transition point.
|
virtual |
Returns a list of points that have been judged to be usable within the given area and post spacing.
When using the evaluator function return OnGraphVertexVisited_VertexIsTheBestSoFar_GoOn to add that point to the potential list points to use. Return OnGraphVertexVisited_StopOnThisVertex to only use this vertex and OnGraphVertexVisited_IgnoreVertex_StopWithBestSoFar to not add this point but to stop the search. Uses current location of entity
|
virtual |
|
virtual |
Starts the process of finding the best path to any of the given destination points.
Check the pathStatus() to see when finished.
|
virtual |
Cancels the given query.
|
virtual |
Sets the bot to move along the given path. Points are in local coordinates.
|
protectedvirtual |
|
protectedvirtual |
Called when the objects position is in a navArea that it was not on the previous check.
Reimplemented from DtVrfObjectNavInterface.
|
staticprotected |
Update nav bot's destination, to trigger a replan.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Moves the destination to on the nav mesh if possible.
May also ground clamp the destination. Assumes the localDest is in the current navArea.
|
protectedvirtual |
If the entity is embarked, converts the provided local position to the parent frame, otherwise returns the same local position provided.
|
protectedvirtual |
Returns the local position of the entity, or the parent position if the entity is embarked.
|
protectedvirtual |
Checks any special conditions (other than location) for the activation/deactivation of the bot, such as the entity being destroyed.
Returns true if the bot should be active based on these special conditions.
|
protectedvirtual |
Sets the collision avoidance configuration from the parameters specified in the platform OPE file.
The following parameters are read from the navigation-params section: enable-avoidance (bool) avoidance-enable-stop (bool) avoidance-enable-slow-down (bool) avoidance-enable-push-through (bool) avoidance-collision-lookahead-time (float) avoidance-angle-eval-span (float) avoidance-num-angle-samples (int) avoidance-safety-distance (float)
|
protectedvirtual |
Finds a new transition point at the given start point.
|
protectedvirtual |
|
protectedvirtual |
Sets the navigation configuration from the parameters specified in the platform OPE file.
The following parameters are read from the navigation-params sections: navigation-method (string: "shortcut" or "spline") use-abstract-graph (bool) min-abstract-graph-replan-distance (float)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |