VR-Forces 4.8 Class Documentation
 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 DtVrfObject;
16 class DtNavArea;
17 class DtNavNavEdge;
18 class DtString;
19 struct DtInputNavTag;
20 
21 
22 
28 {
29 private:
36 
37 public:
38  static DtVrfObjectNavInterface* create(DtSharedVrfObjectReference vrfObject);
39 
40 protected:
44  virtual bool init();
45 
46 public:
47 
48  virtual ~DtNavEdgeNavInterface();
49 
52  virtual void postObjectInit();
53 
54  virtual void tick();
55 
56  virtual DtNavArea* navArea();
57 
58 protected:
59 
61  virtual void changingNavArea(DtNavArea* newNavArea);
62 
64  static void verticesChangedCallback(const DtVrfObject* obj, void* usr);
65  virtual void processVerticesChanged(const DtVrfObject* obj);
66 
69  bool createNavEdge();
70 
72  virtual bool createNavEdgeLadder(const DtString& navigationProfile, const DtInputNavTag& navTag, const DtInputNavTag& entryExitNavTag);
73 
75  void removeNavEdge();
76 
79  bool adjustToNearestVertexLinkPoint(const DtString&, const double, const double, const DtVector&, DtVector&) const;
80 
81 protected:
86  unsigned myNavEdgeIndex;
87 
88 };
DtNavArea * myNavArea
Definition: navEdgeNavInterface.h:82
Definition: vrfObjectNavInterface.h:18
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Definition: navGeneration.h:54
DtNavArea * myNewNavArea
Definition: navEdgeNavInterface.h:83
bool myChangingNavArea
Definition: navEdgeNavInterface.h:85
bool myUpdatePointsRequired
Definition: navEdgeNavInterface.h:84
DtSharedVrfObjectReference class will allocate an empty DtVrfObjectReference if one is not assigned s...
Definition: vrfObjectReference.h:102
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Contains all the data and logic for navigation within a specific area.
Definition: navArea.h:179
virtual bool init()
Virtual init, called from the create() method.
unsigned myNavEdgeIndex
Definition: navEdgeNavInterface.h:86
virtual void postObjectInit()
Perform additional initialization after the object has been initialized.
Definition: vrfObjectNavInterface.h:44
DtVrfObjectNavInterface & operator=(const DtVrfObjectNavInterface &orig)
Not Implemented.
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.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)