VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
parabolicTrajectoryActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vlpi/disEnums.h>
16 
17 #include <matrix/vlVector.h>
18 
19 class DtString;
23 class DtSimMessage;
24 
32 {
33 
34 public:
35 
39  DtLocalObject* owner,
40  DtSimulationServices* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
46 
48  virtual void computeTrajectory(double& a_coefficient,
49  double& b_coefficient,
50  double& c_coefficient,
51  double& flight_time,
52  double& distance,
53  double& apogee,
54  DtVector& nedVector);
55 
60  virtual bool init();
61 
67  virtual void processWarheadInfoCallback(DtSimMessage* msg);
68 
70  virtual bool registerRadioMessageCallbacks();
71 
74  virtual const char* type() const;
75 
77  virtual void tick();
78 
82  static DtSimComponent * creator(const DtString& name,
83  DtLocalObject* owner,
84  DtSimulationServices* simManager,
85  DtComponentDescriptor* desc = 0,
86  DtReaderWriterRegistry* parentRegistry = 0);
87 
89  static void setWarheadInfoCallback(DtSimMessage* msg, void* usr);
90 
91 protected:
92 
98  virtual bool createPSR();
99 
100 protected:
101 
104 
107 
111 
112 
113 protected:
114 
116 
120 
123 
124 protected:
126 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
const DtParabolicTrajectoryActuatorDescriptor * pMyParabolicTrajectoryActuatorDesc
Cast.
Definition: parabolicTrajectoryActuator.h:122
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
virtual bool init()
Overridden to cache a pointer to the entity&#39;s radio in this class.
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
End User Description: DtActuator is the base class for all actuator model components. Developer Description: The DtActuator base class caches a pointer to the entity&#39;s radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor&#39;s DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it&#39;s location, rotation and so forth. These are created in the entity&#39;s DtVrfObjectStateRepository createParts() function. This call creates all the attached parts for all the actuators. These articulated state repositories are managed by the DtAttachmentManager. They are cached by their partType which is the DIS Enumeration describing the part from the disEnums.h file and was specified in the actuator&#39;s DtActuatorComponentDescriptor as descriped above. The partType is used as the category of the DtObjectType used to look up articulated parts in the DtAttachementManager. When an actuator needs access to a particular articulated part it looks it up by the part&#39;s object type.
Definition: actuatorComponent.h:47
DtParabolicTrajectoryPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: parabolicTrajectoryActuator.h:119
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtParabolicTrajectoryActuatorDescriptor; descriptor for the DtParabolicTrajectoryActuator component...
Definition: parabolicTrajectoryActuatorDescriptor.h:22
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: parabolicTrajectoryActuator.h:125
DtParabolicTrajectoryActuator is a kinematics-based model of a missile system that converts steering ...
Definition: parabolicTrajectoryActuator.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
class DtParabolicTrajectoryPSR:
Definition: parabolicTrajectoryPSR.h:23
DtVrfMovingObjectStateRepository * myMovingObjectState
Definition: parabolicTrajectoryActuator.h:115
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
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)