VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lasingMissileTrackController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
10 
12 
13 #include "vlutil/vlString.h"
14 #include <matrix/vlVector.h>
16 
18 class DtSimMessage;
19 class DtReflectedDesignator;
20 class DtLaserTrackerPSR;
22 
23 namespace makVrf
24 {
25  class DtLaserDesignatorStateComponent;
26 }
27 
34 {
35 private:
37 
42 
43 public:
46  DtLocalObject* owner,
47  DtSimulationServices* simManager,
48  DtComponentDescriptor* desc = 0,
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
52  virtual ~DtLasingMissileTrackController() override;
53 
56  virtual const char* type() const override;
57 
59  virtual bool init() override;
60 
61 protected:
62 
63  //sets and queries the laser code of the controller
64  virtual void setTgtDesignatorCode(const int code);
65  virtual const int tgtDesignatorCode() const;
66 
69  virtual const makVrf::DtLaserDesignatorStateComponent* findTarget() const;
70 
75  virtual bool targetTrackable(const makVrf::DtLaserDesignatorStateComponent& data) const;
76 
80  virtual void registerSetLaserCodeRequestMsgCallbacks();
81 
83  static void setLaserCodeRequestCallback(DtSimMessage* msg, void* usr);
84 
87  virtual void processSetLaserCodeRequestCallback(DtSimMessage* msg);
88 
89  virtual bool setupControlPoint() override;
90 
91 public:
92  //creator
93  static DtSimComponent* creator(const DtString& name,
94  DtLocalObject* owner,
95  DtSimulationServices* simManager,
96  DtComponentDescriptor* desc = 0,
97  DtReaderWriterRegistry* parentRegistry = 0);
98 
99 protected:
100 
104 
107 
109 };
110 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
bool myHasTargetSpot
Remember has-target state for debug printing.
Definition: lasingMissileTrackController.h:106
const DtMissileMoveToControllerComponent & operator=(const DtMissileMoveToControllerComponent &orig)
assignment operator; see comments on copy constructor!
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
DtLasingMissileTrackControllerDescriptor; descriptor for the DtLasingMissileTrackController component...
Definition: lasingMissileTrackControllerDescriptor.h:21
DtMissileMoveToControllerComponent is a controller that maneuvers a missile toward a given target poi...
Definition: missileMoveToControllerComponent.h:37
DtLasingMissileTrackControllerDescriptor * myLasingMissileTrackDescriptor
Definition: lasingMissileTrackController.h:108
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: laserDesignatorStateComponent.h:61
File: simMsg.h.
Definition: simMessage.h:35
virtual bool setupControlPoint()
Returns the boolean member data flag myMissilesTargeted, indicating whether or not a target location ...
File: laserLauncherPSR.h.
Definition: laserTrackerPSR.h:36
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
Instances of DtLasingMissileTrackController derive from DtMissileMoveToControllerComponent. This component searches for a laser designator of the specified code, and track the missile toward that location. Uses Descriptor Type: DtComponentDescriptor.
Definition: lasingMissileTrackController.h:33
DtLaserTrackerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: lasingMissileTrackController.h:103
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool init() override
Overridden to initialze myMissileState and call calculateTargetErrorOffset.
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)