VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
beaconRadarObjectSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #include "vrfmodel/objectSensor.h"
13 
14 namespace makVrf
15 {
16  class DtIffStateComponent;
17 }
18 
25 {
26 public:
27 
31  DtLocalObject* owner,
32  DtSimulationServices* simManager,
33  DtComponentDescriptor* desc = 0,
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
38  virtual bool detectObject(DtSimObjectReference object,
39  DtRwSensorContactInfo* contactInfo) override;
40 
44  DtRwSensorContactInfo* contactInfo, bool& contactInfoModified) override;
45 
48  virtual const char* type() const;
49 
51  virtual int sensorType() const;
52 
56  static DtSimComponent * creator(const DtString& name,
57  DtLocalObject* owner,
58  DtSimulationServices* simManager,
59  DtComponentDescriptor* desc = 0,
60  DtReaderWriterRegistry* parentRegistry = 0);
61 
62 protected:
64  virtual bool detectIff(const makVrf::DtIffStateComponent& iff) const;
65 
68  virtual bool updateSensorContactInfo(DtSimObjectReference object,
69  DtRwSensorContactInfo* contactInfo);
70 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual ContinueDetectingResult continueDetectingObject(DtSimObjectReference object, DtRwSensorContactInfo *contactInfo, bool &contactInfoModified)
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
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:49
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition: readerWriterRegistry.h:39
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:68
DtObjectSensor is a base level sensor component.
Definition: objectSensor.h:53
ContinueDetectingResult
Definition: objectSensor.h:69
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool detectObject(DtSimObjectReference object, DtRwSensorContactInfo *contactInfo)
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: iffStateComponent.h:83
DtBeaconRadarObjectSensor; A version of DtObjectSensor that senses entities with IFF.
Definition: beaconRadarObjectSensor.h:24
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)