VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
77  virtual bool continueDetectingObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo,
78  bool& contactInfoModified);
79 
81  virtual int detectionLevel(const DtVrfObject* object);
82 
84  virtual void updateSensorContactInfo(DtVrfObject* object,
85  DtRwSensorContactInfo* contactInfo, int level);
86 
87 protected:
88 
90 
93  boost::optional<double> myFootprintProp;
94 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)