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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)