VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
navigationDecorator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <vlpi/disEnums.h>
11 
12 #include <boost/signals2.hpp>
13 
16 
19 {
20 public:
22 
24 
28  virtual const DtVrfObjectNavInterface* navInterface() const;
29  virtual DtVrfObjectNavInterface* navInterface();
30 
33  virtual void setNavigationEnabled(bool);
34  virtual bool navigationEnabled() const;
35 
37  virtual bool isUsable() const;
38 
39 protected:
41  virtual void tick();
42  virtual DtNavInterfaceManager* getOrCreateNavInterfaceManager() const;
43  virtual void postObjectInit();
44 
45 protected:
47  mutable boost::signals2::scoped_connection myLocalObjectInitializedConnection;
48 };
49 
52 {
53 public:
54  virtual DtSimObjectDecorator* createDecorator(const DtSimObject* o) const { throw makVrf::DtUnimplementedMethod("The DtNavigationLocalObjectDecorator is not created for the DtSimObject."); };
56 
57  virtual const char* DecoratorType() const { return "DtNavigationLocalObjectDecorator"; };
58 };
59 
Definition: stateDataTypes.h:23
A nav interface is a software component of an object that maintains the object&#39;s presence in the navi...
Definition: vrfObjectNavInterface.h:38
Definition: navInterfaceManager.h:17
The DtAggregateDecoratorCreator will create the appropriate type of aggregate proxy logic...
Definition: navigationDecorator.h:51
virtual DtSimObjectDecorator * createDecorator(const DtSimObject *o) const
Definition: navigationDecorator.h:54
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
boost::signals2::scoped_connection myLocalObjectInitializedConnection
Definition: navigationDecorator.h:47
This class will contain logic to update the bounding volume based on posture when the logic ticks...
Definition: navigationDecorator.h:18
virtual void tick()
Override to perform a tick durning advance frame.
virtual DtLocalObjectDecorator * createDecorator(DtLocalObject *o) const
Definition: navigationDecorator.h:55
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
Definition: decoratorBase.h:53
Definition: decoratorBase.h:30
DtNavInterfaceManager * myNavInterfaceManager
Definition: navigationDecorator.h:46
virtual const char * DecoratorType() const
Definition: navigationDecorator.h:57
Definition: decoratorBase.h:40
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)