VR-Forces 4.8 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(const 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(const DtVrfObject* object,
85  DtRwSensorContactInfo* contactInfo, int level);
86 
87 protected:
88 
90 
93 
94  boost::optional<double> myFootprintProp;
97 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtEngineeringObjectSensorDescriptor * myDescriptor
Definition: engineeringObjectSensor.h:89
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
virtual int sensorType() const
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:67
DtEngineeringObjectSensorDescriptor; descriptor for the DtEngineeringObjectSensor component...
Definition: engineeringObjectSensorDescriptor.h:20
const DtObjectSensor & operator=(const DtObjectSensor &orig)
assignment operator; not implemented
virtual bool detectObject(const DtVrfObject *object, DtRwSensorContactInfo *contactInfo)
DtObjectSensor is a base level sensor component.
Definition: objectSensor.h:50
virtual ContinueDetectingResult continueDetectingObject(const DtVrfObject *object, DtRwSensorContactInfo *contactInfo, bool &contactInfoModified)
Definition: engineeringObjectSensor.h:22
Acts as a map for properties.
Definition: rwPropertiesMap.h:41
boost::optional< double > myFootprintProp
These properties gets cached in the tick function so it doesn&#39;t need to be looked up every time detec...
Definition: engineeringObjectSensor.h:94
ContinueDetectingResult
Definition: objectSensor.h:66
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtRwPropertiesMap * myEnvAttritionProp
Definition: engineeringObjectSensor.h:95
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual const char * type() const
Returns a string identifies the class type of component.
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void tick()
Processes only if the simulation is not paused.
virtual bool init()
Calls createPSR(), createDetectableObjectList(), createAndInitSensorMonitor() and initSensorGeometry(...

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)