VR-Forces 4.1 Class Documentation
indLclNetIf.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: indLclNetIf.h,v $ $Revision: 1.22 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 #ifndef DtSimIndividualLocalEntityNetInterface_H_
19 #define DtSimIndividualLocalEntityNetInterface_H_
20 
21 #include "vrfobjcore/lclEntNetIf.h"
22 
26 
39 {
40 protected:
43 
44 public:
47  DtVrfObject* vrfObject,
48  DtReaderWriterRegistry* parentRegistry = 0,
49  bool publishObject = true);
50 
54  DtReaderWriterRegistry * parentRegistry = 0);
55 
59 
62 
64  virtual void updateNet();
65 
68  virtual void updatePublisher();
69 
75  virtual bool createPublisher();
76 
78  void destroyPublisher();
79 
89  virtual bool setEntityPublisher(DtVrfEntityPublisher * publisher);
90 
94  virtual void setupNetworkRepository();
95 
97  virtual DtVrfEntityPublisher * entityPublisher() const;
98 
101  virtual DtExtEntityStateRepository * individualNetworkState() const;
102 
108  virtual DtVrfObjectStateRepository * individualLocalState() const;
109 
110  virtual bool isAggregate() const { return false; }
111 
114  virtual DtString type() const;
115 
120  isIndividualLocalEntityNetInterface(const DtSimObjectNetInterface *
121  objNetInterface);
122 
123  static DtSimObjectNetInterface * creator(const DtString & name,
124  DtVrfObject* vrfObject,
125  DtReaderWriterRegistry * parentRegistry,
126  bool publishObject);
127 
128 protected:
129 
130  virtual bool updateVrfDataAsSeenByRemote();
131 
136  virtual DtVector calculateWorldVelocityFromPosition(const DtVector & currentWorldPos,
137  const DtVector & currentLocalPos,
138  const DtVector & localVelocityworldVelocity);
139 
143  virtual void updateArtPartsNetState();
144 
145  virtual void updateDIGuyState();
146 #ifdef DtDIS
147  virtual void updateCharacterType(const DtString& appear);
148  virtual void updateCharacterAppearance(const DtString& appear);
149  virtual void updateCharacterAnimation(const DtString & animation,bool paused);
150 #endif
151 
152 protected:
153 
155 
159 
163 
164 };
165 
166 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)