VR-Forces 4.8 Class Documentation
 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 
17 class DtSimManager;
18 class DtSimMessage;
19 class DtReflectedDesignator;
20 class DtLaserTrackerPSR;
22 
29 {
30 private:
32 
37 
38 public:
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
51  virtual const char* type() const;
52 
54  virtual bool init();
55 
56 protected:
57 
58  //sets and queries the laser code of the controller
59  virtual void setTgtDesignatorCode(const int code);
60  virtual const int tgtDesignatorCode() const;
61 
64  virtual DtReflectedDesignator* findTarget();
65 
70  virtual bool targetTrackable(DtReflectedDesignator* target);
71 
75  virtual void registerSetLaserCodeRequestMsgCallbacks();
76 
78  static void setLaserCodeRequestCallback(DtSimMessage* msg, void* usr);
79 
82  virtual void processSetLaserCodeRequestCallback(DtSimMessage* msg);
83 
84  virtual bool setupControlPoint();
85 
86 public:
87  //creator
88  static DtSimComponent* creator(const DtString& name,
89  DtVrfObject* owner,
90  DtSimManager* simManager,
91  DtComponentDescriptor* desc = 0,
92  DtReaderWriterRegistry* parentRegistry = 0);
93 
94 protected:
95 
99 
102 
104 };
105 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
bool myHasTargetSpot
Remember has-target state for debug printing.
Definition: lasingMissileTrackController.h:101
const DtMissileMoveToControllerComponent & operator=(const DtMissileMoveToControllerComponent &orig)
assignment operator; see comments on copy constructor!
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
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:103
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.
File: laserLauncherPSR.h.
Definition: laserTrackerPSR.h:38
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Instances of DtLasingMissileTrackController derive from DtMissileMoveToControllerComponent.
Definition: lasingMissileTrackController.h:28
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtLaserTrackerPSR * myProcessState
Container for state data associated with this component.
Definition: lasingMissileTrackController.h:98

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)