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();
42 
43  virtual void postObjectInit();
44 
45  virtual void changingNavArea(DtNavArea* newNavArea);
46 
48  virtual bool obstacleEnabled();
49 
51  virtual void createNavObstacle();
52 
56  virtual double becomeStationaryObstacleTime() const;
57 
58 public:
59  virtual void tick();
61  virtual void clearNavObstacles();
62 
63 protected:
64  std::map<DtNavArea*, DtNavObstacle*> myNavObstacles;
73 };
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:71
bool myOnlyCreateInCurrentArea
Definition: dynamicObstacleNavInterface.h:72
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
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:206
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.
virtual void changingNavArea(DtNavArea *newNavArea)
Called when about to change to a new navArea.
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)