VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
navEdgeNavInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include "matrix/vlVector.h"
14 
15 class DtNavArea;
16 class DtNavNavEdge;
17 class DtString;
18 struct DtInputNavTag;
19 
28 {
29 private:
36 
37 public:
38  static DtVrfObjectNavInterface* create(DtLocalObject* vrfObject);
39 
40 protected:
44  virtual bool init() override;
45 
46 public:
47 
48  virtual ~DtNavEdgeNavInterface() override;
49 
52  virtual void postObjectInit() override;
53 
54  virtual void tick() override;
55 
56  virtual DtNavArea* navArea();
57 
58 protected:
59 
61  virtual void changingNavArea(DtNavArea* newNavArea) override;
62 
65  virtual void onNavAreaSetChanged() override;
66 
68  virtual void processVerticesChanged();
69 
72  bool createNavEdge();
73 
75  virtual bool createNavEdgeLadder(const DtString& navigationProfile, const DtInputNavTag& navTag, const DtInputNavTag& entryExitNavTag);
76 
78  void removeNavEdge();
79 
82  bool adjustToNearestVertexLinkPoint(const DtString&, const double, const double, const DtVector&, DtVector&) const;
83 
84 protected:
89  std::map<DtNavArea*, unsigned> myNavEdgeIndices;
90 
91  boost::signals2::scoped_connection mySetLocationConnection;
92  boost::signals2::scoped_connection myCurrentPitchedChangedConnection;
93 };
DtNavArea * myNavArea
Definition: navEdgeNavInterface.h:85
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: navGeneration.h:55
DtNavArea * myNewNavArea
Definition: navEdgeNavInterface.h:86
bool myChangingNavArea
Definition: navEdgeNavInterface.h:88
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
bool myUpdatePointsRequired
Definition: navEdgeNavInterface.h:87
#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:205
virtual bool init()
Virtual init, called from the create() method.
boost::signals2::scoped_connection myCurrentPitchedChangedConnection
Definition: navEdgeNavInterface.h:92
boost::signals2::scoped_connection mySetLocationConnection
Definition: navEdgeNavInterface.h:91
virtual void postObjectInit()
Perform additional initialization after the object has been initialized. Default behavior is to do no...
Definition: vrfObjectNavInterface.h:67
DtVrfObjectNavInterface & operator=(const DtVrfObjectNavInterface &orig)
Not Implemented.
std::map< DtNavArea *, unsigned > myNavEdgeIndices
Definition: navEdgeNavInterface.h:89
This is the DtVrfObjectNavInterface subclass for objects which insert themselves as nav edges into th...
Definition: navEdgeNavInterface.h:27
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)