VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
searchRescueSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
7 
10 
11 #pragma once
12 
15 
17 
28 {
29 private:
32 
35  orig);
36 
38  const DtSearchRescueSensor & operator=(const
39  DtSearchRescueSensor & orig);
40 
41 public:
43 
46  DtSearchRescueSensor(const DtString& name,
47  DtVrfObject* owner,
48  DtSimManager* simManager,
49  DtComponentDescriptor* desc = 0,
50  DtReaderWriterRegistry* parentRegistry = 0);
51 
53  virtual ~DtSearchRescueSensor();
54 
55  virtual bool init();
56 
59  virtual void preFirstTickInit();
60 
63  virtual const char* type() const;
64 
72  virtual int sensorType() const;
73 
77  virtual void tick();
78 
82  static DtSimComponent * creator(const DtString& name,
83  DtVrfObject* owner,
84  DtSimManager* simManager,
85  DtComponentDescriptor* desc = 0,
86  DtReaderWriterRegistry* parentRegistry = 0);
87 
88 protected:
89 
90 
93  virtual bool detectObject(const DtVrfObject* object, DtRwSensorContactInfo* contactInfo);
94 
100  DtRwSensorContactInfo* contactInfo,
101  bool& contactInfoModified);
102 
104  virtual bool updateSensorContactInfo(const DtVrfObject * object,
105  DtRwSensorContactInfo * contactInfo, int updateLevel);
106 
107 protected:
109 };
110 
111 #pragma once
virtual int sensorType() const
Returns the enumerated type of this sensor.
const DtSignatureObjectSensor & operator=(const DtSignatureObjectSensor &orig)
assignment operator; not implemented
#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
virtual bool init()
Calls createPSR(), createDetectableObjectList(), createAndInitSensorMonitor() and initSensorGeometry(...
DtSearchRescueSensorDescriptor; descriptor for the DtSearchRescueSensor component.
Definition: searchRescueSensorDescriptor.h:26
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
virtual const char * type() const
Returns a string identifies the class type of component.
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:67
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual ContinueDetectingResult continueDetectingObject(const DtVrfObject *object, DtRwSensorContactInfo *contactInfo, bool &contactInfoModified)
Same as detectObject except it is checking for objects we had previously detected.
A sensor component which uses the VR-Forces Sensor Signature model for detecting object.
Definition: signatureObjectSensor.h:41
virtual void tick()
Overridden from base class to update myLocalSensorPosition (using localSensorPosition()) at the start...
virtual bool detectObject(const DtVrfObject *object, DtRwSensorContactInfo *contactInfo)
Returns true if object is detected.
ContinueDetectingResult
Definition: objectSensor.h:66
const DtSearchRescueSensorDescriptor * mySearchDescriptor
Definition: searchRescueSensor.h:108
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
A sensor component which uses the VR-Forces Sensor Signature model for detecting object.
Definition: searchRescueSensor.h:27
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual bool updateSensorContactInfo(const DtVrfObject *object, DtRwSensorContactInfo *contactInfo, int updateLevel)
virtual void tick()
Processes only if the simulation is not paused.
virtual void preFirstTickInit()
Initializes the component before it is ticked for the first time.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)