VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedPointObjectDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 
17 #include <vl/reflectedObjectDIS.h>
18 #include <vl/objectIdHashKey.h>
19 
21 
25 
30 {
31 public:
32 
34  typedef DtPointObjectRepository* (*DtStateRepCreator)();
35 
36 public:
37 
40  const DtEntityIdentifier& id );
41 
43  virtual ~DtReflectedPointObject();
44 
46  virtual inline DtPointObjectRepository* pointObjectStateRep() const { return myStateRepository; }
47 
49  virtual inline DtPointObjectRepository* posr() const { return myStateRepository; }
50 
53  virtual inline DtStateRepository* stateRep() const { return myStateRepository; }
54 
57  virtual void processStateMessage( const DtStateMsg& msg );
58 
60  virtual DtReflectedPointObject* next() const;
61 
63  virtual DtReflectedPointObject* prev() const;
64 
67  virtual DtReflectedPointObject* wrapNext() const;
68 
71  virtual DtReflectedPointObject* wrapPrev() const;
72 
74  virtual void addPostUpdateCallback(
75  DtPointObjectCallbackFunction cb, void* usr );
76  virtual void removePostUpdateCallback(
77  DtPointObjectCallbackFunction cb, void* usr );
78 
80  virtual inline const DtBaseHashKey& hashKey() const { return myHashKey; }
81 
83  virtual inline DtString idString() const { return myIdString; }
84 
87  virtual const DtGlobalObjectDesignator& globalId() const;
88 
90  static void setStateRepCreator( DtStateRepCreator creator );
91  static DtStateRepCreator stateRepCreator();
92 
93 protected:
94 
97 
100 
101 protected:
102 
103  static DtStateRepCreator theStateRepCreator;
104 
109 
110 };
111 
112 #endif // DtDIS
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
static DtStateRepCreator theStateRepCreator
Definition: reflectedPointObjectDIS.h:103
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
DtEntityIdentifierHashKey myHashKey
Definition: reflectedPointObjectDIS.h:105
Contains the DtPointObjectRepository class declaration.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual DtString idString() const
Get a string identification of this object.
Definition: reflectedPointObjectDIS.h:83
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
DtPointObjectRepository * myStateRepository
Definition: reflectedPointObjectDIS.h:107
DtString myIdString
Definition: reflectedPointObjectDIS.h:106
virtual DtPointObjectRepository * posr() const
Synonym for pointObjectStateRep().
Definition: reflectedPointObjectDIS.h:49
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
virtual const DtGlobalObjectDesignator & globalId() const =0
Get the Global ID for this object.
Contains the DIS DtPointObjectDecoder class declaration.
void * prev() const
Definition: vlList.h:277
virtual DtStateRepository * stateRep() const
Returns a pointer to the StateRepository through which you can inspect current state information...
Definition: reflectedPointObjectDIS.h:53
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
Instances of DtPointObjectRepository are used to maintain state information needed by point environme...
Definition: pointObjectRepository.h:31
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
Provides decoding logic for the DtPointObjectStatePdu class.
Definition: pointObjectDecoderDIS.h:20
DtPointObjectDecoder * myDecoder
Definition: reflectedPointObjectDIS.h:108
void(* DtPointObjectCallbackFunction)(DtReflectedPointObject *, void *)
Callback function that takes a DtReflectedPointObject and user data.
Definition: reflectedPointObjectDIS.h:24
virtual void processStateMessage(const DtStateMsg &msg)
Process an entity state PDU.
void * wrapPrev() const
Definition: vlList.h:288
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
virtual const DtBaseHashKey & hashKey() const
Get a hash key for this object.
Definition: reflectedPointObjectDIS.h:80
Instances of DtReflectedPointObject represent Point Object simulated by remote applications.
Definition: reflectedPointObjectDIS.h:29
virtual DtPointObjectRepository * pointObjectStateRep() const
Get the point object&#39;s state repository.
Definition: reflectedPointObjectDIS.h:46

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)