VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
orbitActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: myActuator.h,v $ $Revision: 190639 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtOrbitActuator_H_
10 #define DtOrbitActuator_H_
11 
14 #include "vrfutil/SGP4.h"
15 
16 class DtOrbitActuatorPSR;
17 
19 {
20 public:
21 
22  //constructor
23  DtOrbitActuator(const DtString& name, DtVrfObject* object,
24  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
25  DtReaderWriterRegistry* parentRegistry = 0);
26 
27  //destructor
28  virtual ~DtOrbitActuator();
29 
30  //Perform any initialization required by the actuator
31  virtual bool init();
32 
33  //Returns a string from compTypes.h, identifying the type of component
34  virtual const char* type() const;
35 
36  //Calculate new kinematic state, and copy it to state repository
37  virtual void tick();
38 
39 protected:
40  virtual bool createPSR();
41 
42  static void setOrbitCallback(DtSimMessage * msg, void * usr);
43  virtual void processSetOrbit(DtSimMessage* msg);
44 
45 public:
46 
47  //Creator function to be registered with the DtSimComponentFactory --
48  //see main.cxx
49  static DtSimComponent* creator(const DtString& name, DtVrfObject* object,
50  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
51  DtReaderWriterRegistry* parentRegistry);
52 
53 protected:
58 
62 };
63 
64 #endif
65 
66 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: SGP4.h:70
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
bool mySatRecInitialized
Definition: orbitActuator.h:59
virtual bool init()
Overridden to cache a pointer to the entity'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:42
double timeSatRecInitialized
Definition: orbitActuator.h:61
Definition: readerWriterRegistry.h:39
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
File: simMsg.h.
Definition: simMessage.h:35
DtOrbitActuatorPSR * myProcessState
Definition: orbitActuator.h:54
virtual void tick()
This gives the thread of control to the component.
Definition: orbitActuator.h:18
bool myPositionCalculated
Track whether or not this position is already calculated to avoid doing it each tick, since it will remain constant.
Definition: orbitActuator.h:57
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtOrbitActuatorPSR is a process state repository which holds state variables for the DtOrbitActuator ...
Definition: orbitActuatorPSR.h:18
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
elsetrec mySatRec
Definition: orbitActuator.h:60
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)