VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
engineeringObjectSensor.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 class DtRwPropertiesMap;
21 
23 {
24 private:
27 
30 
33 
34 public:
35 
39  DtVrfObject* owner,
40  DtSimManager* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtEngineeringObjectSensor();
46 
47  virtual bool init();
48 
51  virtual const char* type() const;
52 
54  virtual int sensorType() const;
55 
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 
76  DtRwSensorContactInfo* contactInfo,
77  bool& contactInfoModified);
78 
80  virtual int detectionLevel(const DtVrfObject* object,
81  const DtRwSensorContactInfo* contactInfo);
82 
84  virtual void updateSensorContactInfo(DtVrfObject* object,
85  DtRwSensorContactInfo* contactInfo, int level);
86 
87 protected:
88 
90 
93 
94  boost::optional<double> myFootprintProp;
97 };

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)