VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
designatorEncoderDIS.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
7 #if DtDIS
8 
12 
13 #ifndef designatorEncoderDIS_H_
14 #define designatorEncoderDIS_H_
15 
16 #include "stateEncoder.h"
17 #include "designatorPdu.h"
18 #include "designatorRepository.h"
19 
23 {
24 public:
26  DtDesignatorEncoder( double _relPosThreshold = 1.0,
27  double _absPosThreshold = 1.0, double _accelThreshold = 0.2 );
28 
30  virtual ~DtDesignatorEncoder();
31 
34 
37 
42  virtual DtDesignatorPdu* stateMsg(
43  const DtDesignatorRepository& stateRep,
44  const DtDesignatorRepository& asSeenByRemote );
45 
47  virtual inline void setRelPosThreshold( double val );
49  virtual inline double relPosThreshold() const;
51 
53  virtual inline void setAbsPosThreshold( double val );
55  virtual inline double absPosThreshold() const;
57 
59  virtual inline void setAccelThreshold( double val );
61  virtual inline double accelThreshold() const;
63 
65 
66 protected:
68  virtual bool sendNeeded(
69  const DtDesignatorRepository& stateRep,
70  const DtDesignatorRepository& asSeenByRemote );
71 
72 protected:
77 };
78 
79 inline void DtDesignatorEncoder::setRelPosThreshold( double val )
80 {
81  myRelPosThreshold = val;
82 }
83 
85 {
86  return myRelPosThreshold;
87 }
88 
89 inline void DtDesignatorEncoder::setAbsPosThreshold( double val )
90 {
91  myAbsPosThreshold = val;
92 }
93 
95 {
96  return myAbsPosThreshold;
97 }
98 
100 {
101  return myAccelThreshold;
102 }
103 
104 inline void DtDesignatorEncoder::setAccelThreshold( double val )
105 {
106  myAccelThreshold = val;
107 }
108 #endif
109 #endif
110 
DtDesignatorPdu myPdu
Definition: designatorEncoderDIS.h:76
virtual double absPosThreshold() const
Set/Query the value of the "Absolute Position" Update Threshold.
Definition: designatorEncoderDIS.h:94
Instances of DtDesignatorPduare used to communicate information about designator objects in DIS...
Definition: designatorPdu.h:28
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
double myRelPosThreshold
Definition: designatorEncoderDIS.h:73
The DtStateEncoder class provides a base class for all DIS encoders.
Definition: stateEncoder.h:33
Instances of DtDesignatorEncoder are used to take state information from a DtDesignatorRepository and...
Definition: designatorEncoderDIS.h:22
double myAbsPosThreshold
Definition: designatorEncoderDIS.h:74
double myAccelThreshold
Definition: designatorEncoderDIS.h:75
virtual void setAbsPosThreshold(double val)
Set/Query the value of the "Absolute Position" Update Threshold.
Definition: designatorEncoderDIS.h:89
virtual void setRelPosThreshold(double val)
Set/Query the value of the "Relative Position" Update Threshold.
Definition: designatorEncoderDIS.h:79
DtStateEncoder & operator=(const DtStateEncoder &orig)
Assignment operator.
#define DtCLONE_ENCODER(encoderClass)
Definition: stateEncoder.h:26
class DtDesignatorRepository:
Definition: designatorRepository.h:20
This file declares the DIS version of DtStateEncoder.
virtual double relPosThreshold() const
Set/Query the value of the "Relative Position" Update Threshold.
Definition: designatorEncoderDIS.h:84
virtual double accelThreshold() const
Set/Query the value of the "Acceleration" Update Threshold.
Definition: designatorEncoderDIS.h:99
virtual void setAccelThreshold(double val)
Set/Query the value of the "Acceleration" Update Threshold.
Definition: designatorEncoderDIS.h:104

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)