VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nbcSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 
11 #pragma once
12 
13 #include "vrfmodel/objectSensor.h"
15 
16 #include "boost/optional.hpp"
17 
20 
22 
24 {
25 private:
27  DtNbcSensor();
28 
30  DtNbcSensor(const DtNbcSensor & orig);
31 
33  const DtNbcSensor & operator=(const DtNbcSensor & orig);
34 
35 public:
36 
39  DtNbcSensor(const DtString& name,
40  DtVrfObject* owner,
41  DtSimManager* simManager,
42  DtComponentDescriptor* desc = 0,
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
46  virtual ~DtNbcSensor();
47 
48  virtual bool init();
49 
52  virtual const char* type() const;
53 
55  virtual int sensorType() const;
56 
58  virtual void tick();
59 
63  static DtSimComponent * creator(const DtString& name,
64  DtVrfObject* owner,
65  DtSimManager* simManager,
66  DtComponentDescriptor* desc = 0,
67  DtReaderWriterRegistry* parentRegistry = 0);
68 
69 protected:
70 
73  virtual bool detectObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo);
74 
78  DtRwSensorContactInfo* contactInfo,
79  bool& contactInfoModified);
80 
82  virtual int detectionLevel(const DtVrfObject* object);
83 
85  virtual void updateSensorContactInfo(DtVrfObject* object,
86  DtRwSensorContactInfo* contactInfo, int level);
87 
88 protected:
89 
91 
94  boost::optional<double> myFootprintProp;
95 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)