15 #include <matrix/vlVector.h>
17 #include "boost/shared_ptr.hpp"
51 typedef boost::shared_ptr<DtNavAreaQuery>
Ptr;
57 virtual bool tick() = 0;
58 virtual bool success() = 0;
61 virtual bool navDataChanged() = 0;
62 virtual bool outOfWorkingMemory() = 0;
63 virtual bool hadComputationError() = 0;
65 virtual std::vector<DtVector> results() = 0;
66 virtual void* internalQuery() = 0;
77 virtual bool tick() {
return true; };
82 virtual std::vector<DtVector>
results() {
return std::vector<DtVector>(); };
93 int workingMemorySize;
113 typedef void (*DtSearchAreaPointCostModifierEvaluatorFcn)(
const DtVector& localPoint,
float* currentCost,
void* userData);
117 static void setNavAreaCreatorFcn(DtNavAreaCreatorFcn fcn);
119 static bool navAreaDebuggingEnabled();
120 static void setNavAreaDebuggingEnabled(
bool enable);
124 std::vector<DtString> profiles = std::vector<DtString>()) = 0;
125 virtual void update(
float deltaTimeInSeconds) = 0;
129 virtual bool inNavArea(
const DtVector& localPos) = 0;
130 virtual bool validPosition(
const DtString& profile,
const DtVector& localPos) = 0;
133 virtual bool validForProfile(
const DtString& profile)
const = 0;
135 virtual DtNavDataDebugInfo* debugInfo() = 0;
137 virtual void setExtent(
DtExtent* e) = 0;
147 DtPointOfInterestEvaluatorFcn evalFcn = 0, DtPathCalculatedEvaluatorFcn pathFcn = 0,
void* evalFcnUserData = 0) = 0;
154 DtPointOfInterestEvaluatorFcn evalFcn = 0, DtPathCalculatedEvaluatorFcn pathFcn = 0,
void* evalFcnUserData = 0) = 0;
157 virtual bool findInsidePositionFromOutsidePosition(
const DtString& profile,
158 double searchRadius,
const DtVector& fromFromHere,
DtVector& result,
int& halfEdgeType) = 0;
162 const std::vector<DtVector>& localDestinationPositions,
DtNavBot* searcher,
int tag = -1,
163 DtSearchAreaPointCostModifierEvaluatorFcn = 0, DtPointOfInterestEvaluatorFcn = 0, DtPathCalculatedEvaluatorFcn = 0,
164 void* usrData = 0,
bool startMovingWhenFound =
false) = 0;
185 const DtVector& localAccessibilityPoint = DtVector::zero(),
188 unsigned numberOfPoints = 1,
189 double minDistanceBetweenPoints = 0.0,
190 DtLocalPointUserEvalCallback callbackFcn = emptyCallback,
191 void* userData = 0) = 0;
200 virtual std::vector<DtVector> searchInArea(
const DtString& profile,
201 const DtVector& startLocalPos,
double radius,
double postSpacing,
DtNavBot* searcher,
202 DtPointOfInterestEvaluatorFcn evalFcn = 0,
void* evalFcnUserData = 0,
int tag = -1) = 0;