VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pointObjectEncoderHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
15 
17 
20 #define DtDECLARE_POINT_OBJ_ATTR_CHECKER(attrName) \
21  DtDECLARE_ATTR_CHECKER(DtPointObjectRepository, attrName)
22 
25 #define DtDECLARE_POINT_OBJ_ATTR_ENCODER(attrName) \
26  DtDECLARE_ATTR_ENCODER(DtPointObjectRepository, attrName)
27 
28 const double PO_ORIENT_THRESH = 0.00001;
29 
34 {
35 public:
36 
38  static DtHlaStateEncoder* create( DtExerciseConn* exConn,
39  DtObjClassDesc* classDesc );
40 
42  DtPointObjectEncoder( DtExerciseConn* exConn, DtObjClassDesc* classDesc );
43 
46 
48  virtual ~DtPointObjectEncoder();
49 
52 
53 protected:
54 
57  DtDECLARE_POINT_OBJ_ATTR_CHECKER( Orientation );
58  DtDECLARE_POINT_OBJ_ATTR_CHECKER( PercentComplete );
59  DtDECLARE_POINT_OBJ_ATTR_CHECKER( DamagedAppearance );
60  DtDECLARE_POINT_OBJ_ATTR_CHECKER( ObjectPreDistributed );
61  DtDECLARE_POINT_OBJ_ATTR_CHECKER( Deactivated );
64 
66  DtDECLARE_POINT_OBJ_ATTR_ENCODER( Orientation );
67  DtDECLARE_POINT_OBJ_ATTR_ENCODER( PercentComplete );
68  DtDECLARE_POINT_OBJ_ATTR_ENCODER( DamagedAppearance );
69  DtDECLARE_POINT_OBJ_ATTR_ENCODER( ObjectPreDistributed );
70  DtDECLARE_POINT_OBJ_ATTR_ENCODER( Deactivated );
73 
74 };
75 
81 #define DtDEFINE_SIMPLE_POINT_OBJ_ATTR_ENCODER( \
82  attrName, netType, inspector) \
83  DtDEFINE_SIMPLE_ATTR_ENCODER(DtPointObjectEncoder, \
84  DtPointObjectRepository, \
85  attrName, netType, inspector)
86 
92 #define DtDEFINE_SIMPLE_POINT_OBJ_ATTR_CHECKER( \
93  attrName, inspector) \
94  DtDEFINE_SIMPLE_ATTR_CHECKER(DtPointObjectEncoder, \
95  DtPointObjectRepository, \
96  attrName, inspector)
97 
98 #endif // DtHLA
static DtHlaStateEncoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtBaseEntityEncoder. Caller is responsible for deletion.
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtHlaStateEncoder is used to provide encoding of a state repository into a state message in an HLA (a...
Definition: hlaStateEncoder.h:30
class DtEnvironmentObjectEncoder:
Definition: environmentObjectEncoder.h:36
#define DtDECLARE_POINT_OBJ_ATTR_ENCODER(attrName)
This is used to declare attribute encoding functions which are members of the class.
Definition: pointObjectEncoderHLA.h:25
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc13.h:41
This file provides a declaration of the class DtEnvironmentObjectEncoder.
Instances of DtPointObjectRepository are used to maintain state information needed by point environme...
Definition: pointObjectRepository.h:31
Instances of DtPointObjectEncoder are used to encode point object state messages from a state reposit...
Definition: pointObjectEncoderHLA.h:33
#define DtDECLARE_POINT_OBJ_ATTR_CHECKER(attrName)
This is used to declare static member functions for determining whether or not an attribute needs to ...
Definition: pointObjectEncoderHLA.h:20
const double PO_ORIENT_THRESH
Definition: pointObjectEncoderHLA.h:28
DtEnvironmentObjectEncoder & operator=(const DtEnvironmentObjectEncoder &orig)
assignment operator

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)