VR-Forces 4.2 Class Documentation
objectSensorMonitor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <list>
15 #include <vl/hostStructs.h>
17 
18 class DtVrfObject;
19 class DtSimMessage;
21 
25 {
26 private:
29 
32  orig);
33 
35  const DtObjectSensorMonitor & operator=(const
36  DtObjectSensorMonitor & orig);
37 
38 public:
41  const DtSensorContactInfoList* contactInfoList,
42  const DtString& sensorName,
43  int sensorType);
44 
46  virtual ~DtObjectSensorMonitor();
47 
49  virtual bool init();
50 
52  virtual void registerMessageCallbacks();
53 
54  static void sensorDataRequestCallback(DtSimMessage* msg, void* usrData);
55 
56  virtual void processSensorDataRequest(DtSimMessage* msg);
57 
58  static void sensorDataUnsubscribeCallback(DtSimMessage* msg, void* usrData);
59 
60  virtual void processSensorDataUnsubscribe(DtSimMessage* msg);
61 
64  virtual void createAndSendSensorDataMessage();
65 
69  virtual void notifyTargetsChanged();
70 
71 protected:
73  virtual bool onSubscriberList(const DtSimulationAddress& add) const;
74 
75  virtual void addToSubscriberList(const DtSimulationAddress& add);
76 
77  virtual void removeFromSubscriberList(const DtSimulationAddress& add);
78 
80  virtual int numberOfSubscribers();
81 
82 protected:
84  //DtObjectSensorPSR* mySensorPSR;
85  //DtObjectSensor* myObjectSensor;
89 
90  typedef std::list<DtSimulationAddress> DtSubscriberList;
92 };
93 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)