VR-Forces 5.0.2 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) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
15 
22 class DtObjectType;
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 
65 
69  virtual bool init();
70 
73  virtual const char* type() const;
74 
79  virtual void tick();
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
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.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:49
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
Definition: objectType.h:27
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:30
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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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:79
DtBoost::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
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. 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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)