![]() |
VR-Link API Documentation for DIS
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #ifndef DtEnvironmentEntityEncoder_H_ 00008 #define DtEnvironmentEntityEncoder_H_ 00009 00010 #if DtHLA 00011 00012 #include "hBaseEntEnc.h" 00013 #include "entitySR.h" 00014 00018 00024 00025 class DT_DLL_VL DtEnvironmentEntityEncoder : public DtBaseEntityEncoder 00026 { 00027 public: 00028 00030 DtEnvironmentEntityEncoder( 00031 DtExerciseConn* exConn, 00032 DtObjClassDesc* classDesc); 00033 00035 virtual ~DtEnvironmentEntityEncoder(); 00036 00038 DtEnvironmentEntityEncoder(const DtEnvironmentEntityEncoder& orig); 00039 00041 DtEnvironmentEntityEncoder& operator=( 00042 const DtEnvironmentEntityEncoder& orig); 00043 00044 public: 00045 00048 static DtHlaStateEncoder* create( 00049 DtExerciseConn* exConn, 00050 DtObjClassDesc* classDesc); 00051 00052 protected: 00053 00056 DtDECLARE_ENTITY_ATTR_CHECKER(Density); 00058 DtDECLARE_ENTITY_ATTR_CHECKER(OpacityCode); 00059 00062 DtDECLARE_ENTITY_ATTR_ENCODER(Density); 00064 DtDECLARE_ENTITY_ATTR_ENCODER(OpacityCode); 00065 }; 00066 00072 #define DtDEFINE_SIMPLE_ENVENT_ATTR_ENCODER( \ 00073 attrName, netType, inspector) \ 00074 DtDEFINE_SIMPLE_ATTR_ENCODER(DtEnvironmentEntityEncoder, \ 00075 DtEntityStateRepository, \ 00076 attrName, netType, inspector) 00077 00083 #define DtDEFINE_SIMPLE_ENVENT_ATTR_CHECKER( \ 00084 attrName, inspector) \ 00085 DtDEFINE_SIMPLE_ATTR_CHECKER(DtEnvironmentEntityEncoder, \ 00086 DtEntityStateRepository, \ 00087 attrName, inspector) 00088 00089 #endif 00090 #endif 00091