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 
48  virtual bool obstacleEnabled();
49 
51  virtual void createNavObstacle();
52 
56  virtual bool shouldBecomeStationary(double& elapsedTime) const;
57 
58 public:
59  virtual void tick() override;
60  virtual ~DtDynamicObstacleNavInterface() override;
61  virtual void clearNavObstacles();
62 
63 protected:
64  std::map<DtNavArea*, DtNavObstacle*> myNavObstacles;
74 };
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:72
bool myOnlyCreateInCurrentArea
Definition: dynamicObstacleNavInterface.h:73
std::map< DtNavArea *, DtNavObstacle * > myNavObstacles
Definition: dynamicObstacleNavInterface.h:64
Definition: navObstacle.h:19
DtNavArea * myNavArea
Definition: dynamicObstacleNavInterface.h:66
#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:68
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:65
double myTimeToBecomeStationary
Cache for the nav property.
Definition: dynamicObstacleNavInterface.h:70
DtVrfObjectNavInterface & operator=(const DtVrfObjectNavInterface &orig)
Not Implemented.
bool myShouldBecomeStationary
Definition: dynamicObstacleNavInterface.h:71
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 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)