VR-Forces 4.3 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 
11 
12 #pragma once
13 
14 #include "vrfmodel/objectSensor.h"
16 
17 #include "boost/optional.hpp"
18 
20 
22 {
23 private:
25  DtNbcSensor();
26 
28  DtNbcSensor(const DtNbcSensor & orig);
29 
31  const DtNbcSensor & operator=(const DtNbcSensor & orig);
32 
33 public:
34 
37  DtNbcSensor(const DtString& name,
38  DtVrfObject* owner,
39  DtSimManager* simManager,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44  virtual ~DtNbcSensor();
45 
46  virtual bool init();
47 
50  virtual DtString type() const;
51 
53  virtual int sensorType() const;
54 
56  virtual void tick();
57 
61  static DtSimComponent * creator(const DtString& name,
62  DtVrfObject* owner,
63  DtSimManager* simManager,
64  DtComponentDescriptor* desc = 0,
65  DtReaderWriterRegistry* parentRegistry = 0);
66 
67 protected:
68 
71  virtual bool detectObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo);
72 
75  virtual bool continueDetectingObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo,
76  bool& contactInfoModified);
77 
79  virtual int detectionLevel(const DtVrfObject* object);
80 
82  virtual void updateSensorContactInfo(DtVrfObject* object,
83  DtRwSensorContactInfo* contactInfo, int level);
84 
85 protected:
86 
88 
91  boost::optional<double> myFootprintProp;
92 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)