VR-Forces 5.0.3 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 
53 
56  virtual const char* type() const;
57 
59  virtual bool init();
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();
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!
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()
Overridden to initialze myMissileState and call calculateTargetErrorOffset.
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:35
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:56
File: simMsg.h.
Definition: simMessage.h:35
virtual bool setupControlPoint()
Returns the boolean member data flag myMissilesTargeted, indicating whether or not a target location ...
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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)
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)