VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileDistractionController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
15 
22 class DtEntityType;
23 
24 
40 {
41 private:
44 
47  orig);
48 
52 
53 public:
54 
58  DtLocalObject* owner,
59  DtSimulationServices* simManager,
60  DtComponentDescriptor* desc = 0,
61  DtReaderWriterRegistry* parentRegistry = 0);
62 
64  virtual ~DtMissileDistractionController() override;
65 
69  virtual bool init() override;
70 
73  virtual const char* type() const override;
74 
79  virtual void tick() override;
80 
84  static DtSimComponent * creator(const DtString& name,
85  DtLocalObject* owner,
86  DtSimulationServices* simManager,
87  DtComponentDescriptor* desc = 0,
88  DtReaderWriterRegistry* parentRegistry = 0);
89 
90 protected:
91 
97  virtual DtMissileDistractionPSR* createPSR();
98 
102  virtual const char* defaultPSRType() const;
103 
107  virtual bool initTargetConeGeometry();
108 
112  virtual void setupGeometryForDetection();
113 
117  virtual void setUpDistractingObjectsList();
118 
121  virtual DtVector localTargetConePosition() const;
122 
133  virtual bool processObjects();
134 
141  virtual bool detectObject(DtSimObjectReference object, DtCounterMeasureDistractionEntry * entry);
142 
145  virtual bool objectWithinTargetConeGeometry(const DtSimObject* object) const;
146 
147  virtual bool isMissileDistracted(DtCounterMeasureDistractionEntry * entry) const;
148 
149 protected:
150 
153 
157 
160 };
161 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Contains the DtCompositePredicate class declaration.
Definition: compositePredicate.h:23
DtVector myTargetConeApex
Definition: missileDistractionController.h:159
DtMissileDistractionPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: missileDistractionController.h:156
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtCounterMeasureDistractionEntry.
Definition: counterMeasureDistractionEntry.h:22
This repository holds all information that is common to all the forms of missile entities within the ...
Definition: missileStateRepository.h:33
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
std::shared_ptr< const DtManagedObjectList > DtManagedObjectListConstPtr
Typedef for a shared pointer to a const DtOrgViewManagedObjectList. These lists are used within VR-Fo...
Definition: managedObjectList.h:35
Definition: readerWriterRegistry.h:39
virtual bool init() override
Calls setRadio()
DtMissileDistractionController is a component that looks for objects that could potentially distract ...
Definition: missileDistractionController.h:39
DtManagedObjectListConstPtr myDistractingObjectList
Definition: missileDistractionController.h:151
const DtMissileDistractionControllerDescriptor * myMissileDistractionControllerDescriptor
Definition: missileDistractionController.h:152
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
An abstract base class for all evaluators of spatial filters. The evaluation of spatial filters is sp...
Definition: spatialFilterEvaluator.h:31
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
class DtMissileDistractionPSR:
Definition: missileDistractionPSR.h:25
DtMissileDistractionControllerDescriptor; descriptor for the DtMissileDistractionController component...
Definition: missileDistractionControllerDescriptor.h:25
DtSpatialFilterEvaluator * myTargetConeGeometryEvaluator
Definition: missileDistractionController.h:158
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)