VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tenaBroker/vlTena/entityPublisher.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #if DtTENA
11 
12 #pragma once
13 
14 #include <vlTena/objectPublisher.h>
15 #include <vl/objectId.h>
16 
17 class DtEntityStateEncoder;
18 class DtEntityStateDecoder;
19 class DtEntityStateRepository;
20 
21 namespace MAKVrExchange
22 {
23 
24  namespace DtTenaBroker
25  {
26 
27  class DtExerciseConn;
28  class DtTenaServantObject;
29 
33  class DT_DLL_VLTENA DtEntityPublisher : public DtObjectPublisher
34  {
35  public:
36 
38  typedef DtEntityStateRepository* (*DtStateRepCreator)();
39 
40  public:
41 
44  DtEntityPublisher( const DtEntityType& type, DtExerciseConn* conn,
45  const DtObjectId& id = DtObjectId::defaultId() );
46 
52  DtEntityPublisher( const DtEntityType& entType, DtExerciseConn* conn,
53  DtDeadReckonTypes algorithm, DtForceType forceId,
54  const DtEntityType& guise = guiseSameAsType(),
55  const DtObjectId& id = DtObjectId::defaultId() );
56 
58  virtual ~DtEntityPublisher();
59 
62  virtual bool tick();
63 
65  DtEntityStateRepository* entityStateRep();
66 
68  virtual DtEntityStateRepository* esr();
69 
74  virtual void setUseDRThresholding(bool yesNo);
75 
77  virtual bool useDRThresholding() const;
78 
81  virtual DtString interfaceToUse() const;
82 
87  static const DtEntityType& guiseSameAsType();
88 
89  static void setStateRepCreator(DtStateRepCreator creator);
90  static DtStateRepCreator stateRepCreator();
91 
95  static void setDfltRotationThreshold(double r);
96  static double dfltRotationThreshold();
97  static void setDfltTranslationThreshold(double t);
98  static double dfltTranslationThreshold();
99 
100  protected:
101 
104  void initialize();
105 
106  protected:
107 
108  DtEntityPublisher(const DtEntityPublisher& orig);
109 
110  DtEntityPublisher& operator=(const DtEntityPublisher& orig);
111 
112  protected:
113 
114  static DtStateRepCreator theStateRepCreator;
115  bool myUseDRThresholding;
116 
117  };
118 
119  }
120 }
121 
122 #endif // DtTENA
Contains the DtObjectPublisher class declaration.
#define DT_DLL_VLTENA
Definition: brokers/tenaBroker/vlTena/dllExport.h:26

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)