VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aimAtPointController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class DtVectorOutputPort;
16 class DtAnalogOutputPort;
18 
23 {
24 
25 public:
26 
29  DtAimAtPointController(const DtString& name,
30  DtLocalObject* owner,
31  DtSimulationServices* simManager,
32  DtComponentDescriptor* desc = 0,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
36  virtual ~DtAimAtPointController();
37 
38  virtual bool init();
39 
42  virtual const char* type() const;
43 
44  virtual void tick();
45 
47  static void setAimingPointCallback(DtSimMessage * msg, void * usr);
48  virtual void processSetAimingPoint(DtSimMessage* msg);
49 
53  static DtSimComponent * creator(const DtString& name,
54  DtLocalObject* owner,
55  DtSimulationServices* simManager,
56  DtComponentDescriptor* desc = 0,
57  DtReaderWriterRegistry* parentRegistry = 0);
58 
59 protected:
60 
62  virtual bool createPorts();
63 
65  virtual bool createPortGroups();
66 
67  virtual DtAimAtPointControllerPSR* createPSR();
68 
69 private:
70 
73 
76  DtAimAtPointController & orig);
77 
80  const DtAimAtPointController & orig);
81 
82 
83 protected:
84 
86 
88 
89 
93 
99 
106 
112 
118 
127 
129 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtBooleanOutputPort * myAimAtAnglePort
Output Port Name: aim-at-angle Output Port Description: Indicates that aiming should be done using th...
Definition: aimAtPointController.h:105
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
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
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
virtual bool init()
Calls setRadio()
DtAimAtPointControllerPSR is a process state repository which holds state variables for the DtAimAtPo...
Definition: aimAtPointControllerPSR.h:22
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
DtAnalogOutputPort * myAimAzimuthPort
Output Port Name: aim-azimuth Output Port Description: The azimuth at which to aim the weapon...
Definition: aimAtPointController.h:111
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 ...
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
DtBooleanOutputPort * myForbidBaseRotationPort
Output Port Name: forbid-base-rotation Output Port Description: Predicate indicates whether the aimin...
Definition: aimAtPointController.h:126
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
DtVectorOutputPort * myAimPointPort
Output Port Name: aim-point Output Port Description: The point at which to aim the weapon...
Definition: aimAtPointController.h:98
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
DtAimAtPointControllerPSR * myProcessState
Definition: aimAtPointController.h:85
This class is responsible for handling requests to aim at a particular point. The actual aiming is pe...
Definition: aimAtPointController.h:22
DtOutputPortGroup * myAimWeaponControlPortGroup
Output Port Group Name: aim-weapon-control Output Port Group Description: .
Definition: aimAtPointController.h:92
DtAnalogOutputPort * myAimElevationPort
Output Port Name: aim-elevation Output Port Description: The elevation at which to aim the weapon...
Definition: aimAtPointController.h:117
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)