VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dynamicObstacleNavInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
14 #include "matrix/vlVector.h"
15 
16 class DtNavObstacle;
17 
23 {
24 private:
31 
32 public:
33  static DtVrfObjectNavInterface* createSimObjectInterface(DtSimObjectReference vrfObject);
34  static DtVrfObjectNavInterface* createLocalObjectInterface(DtLocalObject* vrfObject);
35 
36 protected:
41  virtual bool init() override;
42 
43  virtual void postObjectInit() override;
44 
45  virtual void changingNavArea(DtNavArea* newNavArea) override;
46 
49  virtual void onNavAreaSetChanged() override;
50 
52  virtual bool obstacleEnabled();
53 
55  virtual void createNavObstacle();
56 
60  virtual bool shouldBecomeStationary(double& elapsedTime) const;
61 
62 public:
63  virtual void tick() override;
64  virtual ~DtDynamicObstacleNavInterface() override;
65  virtual void clearNavObstacles();
66 
67 protected:
68  std::map<DtNavArea*, DtNavObstacle*> myNavObstacles;
78 };
A nav interface is a software component of an object that maintains the object&#39;s presence in the navi...
Definition: vrfObjectNavInterface.h:39
DtPlatformSimObjectFacade myPlatformSimObjectFacade
Definition: dynamicObstacleNavInterface.h:76
bool myOnlyCreateInCurrentArea
Definition: dynamicObstacleNavInterface.h:77
std::map< DtNavArea *, DtNavObstacle * > myNavObstacles
Definition: dynamicObstacleNavInterface.h:68
virtual void onNavAreaSetChanged()
Called when the set of secondary nav areas has changed (e.g. a secondary area finished loading or was...
Definition: vrfObjectNavInterface.h:86
Definition: navObstacle.h:19
DtNavArea * myNavArea
Definition: dynamicObstacleNavInterface.h:70
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
This is the DtVrfObjectNavInterface subclass for objects which are treated as frequently moving obsta...
Definition: dynamicObstacleNavInterface.h:22
This class contains all the data and logic for navigation within a specific area. Nav Data may be loa...
Definition: navArea.h:205
virtual bool init()
Virtual init, called from the create() method.
double myStationaryTime
How long the obstacle has been stationary.
Definition: dynamicObstacleNavInterface.h:72
virtual void postObjectInit()
Perform additional initialization after the object has been initialized. Default behavior is to do no...
Definition: vrfObjectNavInterface.h:67
DtVector myPreviousLocalPos
Definition: dynamicObstacleNavInterface.h:69
double myTimeToBecomeStationary
Cache for the nav property.
Definition: dynamicObstacleNavInterface.h:74
DtVrfObjectNavInterface & operator=(const DtVrfObjectNavInterface &orig)
Not Implemented.
bool myShouldBecomeStationary
Definition: dynamicObstacleNavInterface.h:75
virtual void changingNavArea(DtNavArea *newNavArea)
Called when about to change to a new navArea.
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)