VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedPointObjectHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef reflectedPointObjectHLA_H_
8 #define reflectedPointObjectHLA_H_
9 
10 #if DtHLA
11 
12 #include "pointObjectRepository.h"
13 #include "reflectedObjectHLA.h"
14 
19 
23 typedef void (*DtPointObjectCallbackFunction)(
24  DtReflectedPointObject* obj, void* userData);
25 
30 
32 {
33 public:
34 
36  typedef DtPointObjectRepository* (*DtStateRepCreator)();
37 
38 public:
39 
41  DtReflectedPointObject(DtHlaObject* obj, DtExerciseConn* conn);
42 
44  virtual ~DtReflectedPointObject();
45 
47  virtual DtPointObjectRepository* pointObjectRep() const;
48 
50  virtual DtPointObjectRepository* posr() const;
51 
53  virtual DtReflectedPointObject* next() const;
54 
56  virtual DtReflectedPointObject* prev() const;
57 
60  virtual DtReflectedPointObject* wrapNext() const;
61 
64  virtual DtReflectedPointObject* wrapPrev() const;
65 
67  virtual void addPostUpdateCallback(
68  DtPointObjectCallbackFunction cb, void* userData);
69 
70  virtual void removePostUpdateCallback(
71  DtPointObjectCallbackFunction cb, void* userData);
72 
73 public:
74 
76  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
77 
78 protected:
79 
82 
85 
86 protected:
87 
88  static DtStateRepCreator theStateRepCreator;
89 };
90 
91 inline DtPointObjectRepository* DtReflectedPointObject::pointObjectRep() const
92 {
93  return (DtPointObjectRepository*) myStateRep;
94 }
95 
97 {
98  return (DtPointObjectRepository*) myStateRep;
99 }
100 
101 #endif //DtHLA
102 #endif //hReflPointObj_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's interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
Contains the DtPointObjectRepository class declaration.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
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
void * prev() const
Definition: vlList.h:277
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
void(* DtPointObjectCallbackFunction)(DtReflectedPointObject *, void *)
Callback function that takes a DtReflectedPointObject and user data.
Definition: reflectedPointObjectDIS.h:24
void * wrapPrev() const
Definition: vlList.h:288
Instances of DtReflectedPointObject represent Point Object simulated by remote applications.
Definition: reflectedPointObjectDIS.h:29

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)