VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bombActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <matrix/vlVector.h>
15 
16 class DtSimManager;
18 class DtVectorInputPort;
19 class DtTaitBryan;
20 class DtMissileManeuverActPortIntf;
21 class DtBombPSR;
22 class DtVrfObject;
23 
38 {
39 public:
42  DtBombActuator(const DtString& name, DtVrfObject* owner,
43  DtSimManager* simManager, DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
47  virtual ~DtBombActuator();
48 
51  virtual bool init();
52 
55  virtual const char* type() const;
56 
60  virtual void tick();
61 
65  static DtSimComponent * creator(const DtString& name, DtVrfObject* owner,
66  DtSimManager* simManager, DtComponentDescriptor* desc = 0,
67  DtReaderWriterRegistry* parentRegistry = 0);
68 
69 protected:
71  virtual bool createPorts();
72 
79  virtual bool createPSR();
80 
89  virtual void calculateTargetErrorOffset();
90 
99  virtual void calculateTargetCircle();
100 
106  virtual DtVector calculateAimPoint();
107 
108 #ifdef _DEBUG
109  static void objectAboutToBeRemovedCallback(const DtVrfObject* object, void* usr);
110  virtual void processObjectAboutToBeRemoved(const DtVrfObject* object);
111 #endif
112 
113 private:
115  DtBombActuator();
117  DtBombActuator(const DtBombActuator & orig);
119  const DtBombActuator & operator=(const
120  DtBombActuator & orig);
121 
122 protected:
125 
129 
132 
133 #ifdef _DEBUG
134  const DtVrfObject* myAimPointWaypoint;
135 #endif
136 
139 
147 
149 };
150 
#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
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
This repository holds all information that is common to all bomb entities.
Definition: bombStateRepository.h:28
class DtBombPSR:
Definition: bombPSR.h:33
virtual bool init()
Overridden to cache a pointer to the entity&#39;s radio in this class.
DtVector myTargetErrorOffset
Accuracy error computed by calculateTargetErrorOffset().
Definition: bombActuator.h:131
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
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
Contains class declarations for DtVectorInputPort, DtVectorOutputPort, and DtVectorPortData.
Definition: vectorIOPort.h:27
DtBombStateRepository * myStateRep
State repository specific to bombs.
Definition: bombActuator.h:124
virtual void tick()
This gives the thread of control to the component.
virtual bool createPorts()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtBombActuator models the path of a bomb as guided by the DtBombController.
Definition: bombActuator.h:37
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtVectorInputPort * myTargetLocationPort
Input Port Name: target-location Input Port Description: current location of the target in local coor...
Definition: bombActuator.h:146
DtBombPSR * myProcessState
Container for state data associated with this component.
Definition: bombActuator.h:128
virtual const char * type() const =0
Returns a string identifies the class type of component.

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)