VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileManeuverActComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <vlpi/disEnums.h>
16 
17 #include <matrix/vlVector.h>
18 
19 class DtString;
20 class DtSimManager;
23 class DtBooleanInputPort;
24 class DtTaitBryan;
25 class DtMissileManeuverActPortIntf;
26 class DtMissileFlightPSR;
28 
36 {
37 
38 public:
39 
43  DtVrfObject* owner,
44  DtSimManager* simManager,
45  DtComponentDescriptor* desc = 0,
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
50 
55  virtual bool init();
56 
59  virtual const char* type() const;
60 
62  virtual void tick();
63 
66  virtual DtVector calculateAccelerationFromResistance();
67 
69  virtual void updateRepository(const DtVector & position, const DtVector &
70  velocity, const DtVector & acceleration, const DtTaitBryan & orientation);
71 
75  static DtSimComponent * creator(const DtString& name,
76  DtVrfObject* owner,
77  DtSimManager* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
81 protected:
82 
84  virtual bool createPortGroups();
85 
87  virtual bool createPorts();
88 
94  virtual bool createPSR();
95 
96 protected:
97 
100 
103 
107 
108 
109 protected:
110 
112 
115 
119 
126 
133 
140 
147 
154 
156 
160 
164 };
#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
DtConstrainedAnalogInputPort * myManeuverAccelXPort
Input Port Name: maneuver-accel-x Input Port Description: Input Port Range: -100000.
Definition: missileManeuverActComponent.h:132
DtMissileStateRepository * myMissileState
Definition: missileManeuverActComponent.h:111
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
This repository holds all information that is common to all the forms of missile entities within the ...
Definition: missileStateRepository.h:38
virtual bool init()
Overridden to cache a pointer to the entity&#39;s radio in this class.
Contains class declarations for DtConstrainedAnalogInputPort and DtConstrainedAnalogOutputPort.
Definition: constrainedAnalogIOPort.h:27
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
DtBooleanInputPort * mySelfDestructPort
Input Port Name: self-destruct Input Port Description: Input Port Range: Input Port Default Value: ...
Definition: missileManeuverActComponent.h:153
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
class DtMissileFlightPSR:
Definition: missileFlightPSR.h:37
virtual void tick()
This gives the thread of control to the component.
Contains class declarations for DtBooleanInputPort, DtBooleanOutputPort, and DtBooleanPortData.
Definition: boolIOPort.h:25
DtUpdateRepositoryOutputPortGroup * myUpdateRepositoryOutputPortGroup
Port group used to set what values should be set into the VRF state repository.
Definition: missileManeuverActComponent.h:163
DtConstrainedAnalogInputPort * myThrustPort
Input Port Name: thrust Input Port Description: Input Port Range: 0.
Definition: missileManeuverActComponent.h:125
virtual bool createPorts()
Called by init.
DtConstrainedAnalogInputPort * myManeuverAccelYPort
Input Port Name: maneuver-accel-y Input Port Description: Input Port Range: -100000.
Definition: missileManeuverActComponent.h:139
virtual bool createPortGroups()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtInputPortGroup is a data port group of a data consumer.
Definition: inputPortGroup.h:32
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtMissileManeuverActComponent is a kinematics-based model of a missile system that converts steering ...
Definition: missileManeuverActComponent.h:35
DtConstrainedAnalogInputPort * myManeuverAccelZPort
Input Port Name: maneuver-accel-z Input Port Description: Input Port Range: -100000.
Definition: missileManeuverActComponent.h:146
DtUpdateRepositoryOutputPortGroup is a data port group of a data consumer that contains methods and p...
Definition: updateRepositoryOutputPortGroup.h:28
virtual const char * type() const =0
Returns a string identifies the class type of component.
DtInputPortGroup * myMissileControlPortGroup
Input Port Group Name: missile-control Input Port Group Description:
Definition: missileManeuverActComponent.h:118
DtMissileFlightPSR * myProcessState
Container for state data associated with this component.
Definition: missileManeuverActComponent.h:159

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)