VR-Forces 4.8 Class Documentation
 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  DtVrfObject* owner,
31  DtSimManager* 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  DtVrfObject* owner,
55  DtSimManager* 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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
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:42
Definition: readerWriterRegistry.h:39
DtOutputPortGroup is a data port group of a data provider.
Definition: outputPortGroup.h:30
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.
virtual bool createPorts()
Called by init.
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:29
virtual bool createPortGroups()
Called by init.
DtVectorOutputPort * myAimPointPort
Output Port Name: aim-point Output Port Description: The point at which to aim the weapon...
Definition: aimAtPointController.h:98
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtAimAtPointControllerPSR * myProcessState
Definition: aimAtPointController.h:85
This class is responsible for handling requests to aim at a particular point.
Definition: aimAtPointController.h:22
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
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

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)