VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rangeRingsParametersPublisher.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
15 #include <vlutil/vlTime.h>
16 #include <map>
17 
18 class DtLocalObject;
20 class DtReaderWriter;
21 class DtRwPropertiesList;
22 
28 {
29 public:
32 
35 
38  virtual void setTickRate(double, double varianceRange = 1.0);
39  virtual double tickRate() const;
40 
43  virtual void tick();
44 
46  virtual void rangeItemsFromProperties(const DtRwVariableBindings&, std::string prefix);
47 
48 protected:
49 
50  typedef std::map<int, DtRangeItem> DtRangeItemMap;
51 
53  virtual void firstTickInit();
54 
56  virtual void updateRangeRings(DtRangeItemMap&, DtReaderWriter*, const DtRwPropertiesList* sectorSizes,
57  std::string prefix);
58 
60  virtual int fillInFrom(DtRangeItems::RangeItems& current, const DtRangeItemMap& from, int start) const;
61 
62 protected:
63 
66 
69  double myTickRate;
70 
72 
75 
77 };
Description: This class will look at parameter and state data to publish range rings (via the object ...
Definition: rangeRingsParametersPublisher.h:27
Definition: readerWriter.h:85
DtPlatformLocalObjectFacade * myPlatformLocalObjectFacade
Definition: rangeRingsParametersPublisher.h:76
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:27
DtTime myLastUpdateTime
Definition: rangeRingsParametersPublisher.h:74
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRangeItemMap myPreviousRangeItems
Definition: rangeRingsParametersPublisher.h:65
double myNextTickTime
Definition: rangeRingsParametersPublisher.h:68
std::map< int, DtRangeItem > DtRangeItemMap
Definition: rangeRingsParametersPublisher.h:50
std::vector< DtRangeItem > RangeItems
Definition: rangeItem.h:215
DtLocalObject * myOwner
Definition: rangeRingsParametersPublisher.h:71
double myTickRate
Definition: rangeRingsParametersPublisher.h:69
Acts as a DtRwList for properties. Only real difference between this class and a DtRwProperties class...
Definition: rwPropertiesList.h:38
DtRangeItemMap myRangeItems
Definition: rangeRingsParametersPublisher.h:64
DtClock myClock
Definition: rangeRingsParametersPublisher.h:73
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
bool myFirstTick
Definition: rangeRingsParametersPublisher.h:67

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)