VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
navInterfaceManager.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 
15 
16 class DtNavArea;
18 
20 {
21 private:
27  DtNavInterfaceManager& operator=(const DtNavInterfaceManager& orig);
28 
29 public:
30 
34 
35  virtual ~DtNavInterfaceManager();
36 
37  DtVrfObjectNavInterface* primaryNavInterface();
38  const DtVrfObjectNavInterface* primaryNavInterface() const;
39 
42  virtual bool init();
43 
45  virtual bool postObjectInit();
46 
47  virtual void tick();
48 
50  virtual bool updateNavInterfaces(bool removingPrimaryArea = false);
51 
53  virtual void setNavigationEnabled(bool);
54  bool navigationEnabled() const;
55 
56 protected:
57  static void areaAboutToBeRemovedCallback(DtNavArea*, void* usr);
58  virtual void processAreaAboutToBeRemoved(DtNavArea*);
59 
60 protected:
63 
66 
67  std::vector<DtNavArea*> mySecondaryNavAreas;
68  std::map<DtNavArea*, DtVrfObjectNavInterface*> mySecondaryNavInterfaces;
69 
71 
75 };
A nav interface is a software component of an object that maintains the object&#39;s presence in the navi...
Definition: vrfObjectNavInterface.h:39
Definition: navInterfaceManager.h:19
bool myNavigationEnabled
Definition: navInterfaceManager.h:70
DtSimObjectReference mySimObjectReference
Definition: navInterfaceManager.h:62
std::map< DtNavArea *, DtVrfObjectNavInterface * > mySecondaryNavInterfaces
Definition: navInterfaceManager.h:68
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtVrfObjectNavInterface * myPrimaryNavInterface
Definition: navInterfaceManager.h:65
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
This class contains all the data and logic for navigation within a specific area. Nav Data may be loa...
Definition: navArea.h:206
bool myNeedsPostObjectInit
Definition: navInterfaceManager.h:73
std::vector< DtNavArea * > mySecondaryNavAreas
Definition: navInterfaceManager.h:67
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
DtLocalObject * myVrfObject
Definition: navInterfaceManager.h:61
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Contains the DtSimObjectReference class declaration.
DtString myNavProfile
Definition: navInterfaceManager.h:72
DtNavArea * myPrimaryNavArea
Definition: navInterfaceManager.h:64
DtSimulationServices * mySimulationServices
Definition: navInterfaceManager.h:74
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)