VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>
16 #include <vlutil/vlString.h>
17 
18 class DtLocalObject;
19 class DtSimMessage;
21 class DtObjectSensorPSR;
22 class DtSimulationAddress;
23 
27 {
28 private:
31 
34  orig);
35 
37  const DtObjectSensorMonitor & operator=(const
38  DtObjectSensorMonitor & orig);
39 
40 public:
43  const DtSensorContactInfoList* contactInfoList,
44  const DtString& sensorName,
45  int sensorType,
46  DtObjectSensorPSR* psr);
47 
49  virtual ~DtObjectSensorMonitor();
50 
52  virtual bool init();
53 
55  virtual void registerMessageCallbacks();
56 
57  static void sensorDataRequestCallback(DtSimMessage* msg, void* usrData);
58 
59  virtual void processSensorDataRequest(DtSimMessage* msg);
60 
61  static void sensorDataUnsubscribeCallback(DtSimMessage* msg, void* usrData);
62 
63  virtual void processSensorDataUnsubscribe(DtSimMessage* msg);
64 
67  virtual void createAndSendSensorDataMessage();
68 
72  virtual void notifyTargetsChanged();
73 
74 protected:
76  virtual bool onSubscriberList(const DtSimulationAddress& add) const;
77 
78  virtual void addToSubscriberList(const DtSimulationAddress& add);
79 
80  virtual void removeFromSubscriberList(const DtSimulationAddress& add);
81 
83  virtual int numberOfSubscribers();
84 
85 protected:
88  //DtObjectSensor* myObjectSensor;
92 
93  typedef std::list<DtSimulationAddress> DtSubscriberList;
95 };
96 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
A reader-writer list of DtRwSensorContactInfo elements. Use the DtRwList::add() and remove() methods ...
Definition: sensorContactInfoList.h:32
DtString mySensorName
Definition: objectSensorMonitor.h:91
std::list< DtSimulationAddress > DtSubscriberList
Definition: objectSensorMonitor.h:93
DtObjectSensorPSR * mySensorPSR
Definition: objectSensorMonitor.h:87
File: simMsg.h.
Definition: simMessage.h:35
DtSubscriberList mySubscriberList
Definition: objectSensorMonitor.h:94
const DtSensorContactInfoList * mySensorContactInfoList
Definition: objectSensorMonitor.h:89
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Class which manages the sending of sensor contact information to the GUI from one particular sensor o...
Definition: objectSensorMonitor.h:26
int mySensorType
Definition: objectSensorMonitor.h:90
Definition: objectSensorPSR.h:23
DtLocalObject * myHostObject
Definition: objectSensorMonitor.h:86
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)