VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
arealObjectEncoderDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2025 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/stateEncoder.h>
15 #include <vl/arealObjectStatePdu.h>
17 
21 {
22 public:
23 
25  DtArealObjectEncoder( double locThresh = 1.0 );
26 
29 
31  virtual ~DtArealObjectEncoder();
32 
35 
40  virtual DtArealObjectStatePdu* stateMsg(
41  const DtArealObjectRepository& stateRep,
42  const DtArealObjectRepository& asSeenByRemote );
43 
46 
47  virtual inline void setLocThreshold( double val );
48  virtual inline double locThreshold() const;
49 
51 
53 
54 protected:
55 
57  virtual bool sendNeeded( const DtArealObjectRepository& stateRep,
58  const DtArealObjectRepository& asSeenByRemote );
59 
61  virtual void updateModifications( const DtArealObjectRepository& lclRep,
62  const DtArealObjectRepository& remRep );
63 
64 protected:
65 
68 
69 };
70 
71 
72 inline void DtArealObjectEncoder::setLocThreshold( double val )
73 {
74  myLocThresholdSquared = val*val;
75 }
76 
78 {
79  return sqrt( myLocThresholdSquared );
80 }
81 
82 #endif // DtDIS
DtArealObjectStatePdu myPdu
Definition: arealObjectEncoderDIS.h:66
virtual void setLocThreshold(double val)
Set/Query the value of the Location Update Threshold.
Definition: arealObjectEncoderDIS.h:72
Contains the DtArealObjectRepository class declaration.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
double myLocThresholdSquared
Definition: arealObjectEncoderDIS.h:67
Provides encoding logic for the DtArealObjectStatePdu class.
Definition: arealObjectEncoderDIS.h:20
Instances of DtArealObjectStatePdu are used to communicate information about the addition/modificatio...
Definition: arealObjectStatePdu.h:36
The DtStateEncoder class provides a base class for all DIS encoders.
Definition: stateEncoder.h:33
This file declares DtArealObjectStatePdu – DIS Only.
virtual double locThreshold() const
Set/Query the value of the Location Update Threshold.
Definition: arealObjectEncoderDIS.h:77
DtStateEncoder & operator=(const DtStateEncoder &orig)
Assignment operator.
Instances of DtArealObjectRepository are used to maintain state information needed by areal object en...
Definition: arealObjectRepository.h:30
#define DtCLONE_ENCODER(encoderClass)
Definition: stateEncoder.h:26
This file declares the DIS version of DtStateEncoder.

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)