VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedLinearObjectHLA.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 reflectedLinearObjectHLA_H_
8 #define reflectedLinearObjectHLA_H_
9 
10 #if DtHLA
11 
12 #include "linearObjectRepository.h"
13 #include "reflectedObjectHLA.h"
14 
19 
23 typedef void (*DtLinearObjectCallbackFunction)(
24  DtReflectedLinearObject* obj, void* userData);
25 
30 
32 {
33 public:
34 
36  typedef DtLinearObjectRepository* (*DtStateRepCreator)();
37 
38 public:
39 
41  DtReflectedLinearObject(DtHlaObject* obj, DtExerciseConn* conn);
42 
44  virtual ~DtReflectedLinearObject();
45 
47  virtual DtLinearObjectRepository* linearObjectRep() const;
48 
50  virtual DtLinearObjectRepository* losr() const;
51 
53  virtual DtReflectedLinearObject* next() const;
54 
56  virtual DtReflectedLinearObject* prev() const;
57 
60  virtual DtReflectedLinearObject* wrapNext() const;
61 
64  virtual DtReflectedLinearObject* wrapPrev() const;
65 
67  virtual void addPostUpdateCallback(
68  DtLinearObjectCallbackFunction cb, void* userData);
69 
70  virtual void removePostUpdateCallback(
71  DtLinearObjectCallbackFunction 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 DtLinearObjectRepository* DtReflectedLinearObject::linearObjectRep() const
92 {
93  return (DtLinearObjectRepository*) myStateRep;
94 }
95 
97 {
98  return (DtLinearObjectRepository*) myStateRep;
99 }
100 
101 #endif //DtHLA
102 #endif //hReflLinearObj_H_
103 

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)