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-2026 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 
69 
70 };
71 
72 
73 inline void DtArealObjectEncoder::setLocThreshold( double val )
74 {
75  myLocThresholdSquared = val*val;
76 }
77 
79 {
80  return sqrt( myLocThresholdSquared );
81 }
82 
83 #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:73
Contains the DtArealObjectRepository class declaration.
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
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
DtU8 myModifications
Definition: arealObjectEncoderDIS.h:68
The DtStateEncoder class provides a base class for all DIS encoders.
Definition: stateEncoder.h:33
This file declares DtArealObjectStatePdu – DIS Only.
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:149
virtual double locThreshold() const
Set/Query the value of the Location Update Threshold.
Definition: arealObjectEncoderDIS.h:78
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 Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)