33 class DtLaserDesignatorStateComponent;
70 virtual const char*
type()
const;
88 virtual void setDesignatorCode(
const int code);
89 virtual const int designatorCode()
const;
96 virtual bool createProcessSR();
99 virtual void startLasing();
100 virtual void stopLasing();
108 virtual void laseLocation(
const DtVector& location);
111 virtual bool lasing();
122 virtual void registerSetLaseAutonomousMsgCallbacks();
123 virtual void registerSetLaserCodeRequestMsgCallbacks();
124 virtual void registerSetLaserInformationRequestMsgCallbacks();
127 static void laseTargetTaskCallback(
DtSimMessage *msg,
void * usrData);
128 static void laseLocationTaskCallback(
DtSimMessage *msg,
void * usrData);
129 static void setLaseAutonomousRequestCallback(
DtSimMessage* msg,
void* usrData);
130 static void setLaserCodeRequestCallback(
DtSimMessage* msg,
void* usrData);
131 static void setLaserInformationRequestCallback(
DtSimMessage* msg,
void* usrData);
134 virtual void processLaseTargetTaskMessage(
DtSimMessage *msg);
135 virtual void processLaseLocationTaskMessage(
DtSimMessage *msg);
136 virtual void processSetLaseAutonomousRequestMessage(
DtSimMessage* msg);
137 virtual void processSetLaserInformationRequestMessage(
DtSimMessage* msg);
138 virtual void processSetLaserCodeRequestMessage(
DtSimMessage* msg);
158 virtual bool targetPoint(
const DtTaitBryan& orientation,
DtVector& location);
161 virtual DtVector localEyepoint()
const;
165 virtual void tickLaser();
170 virtual bool createPublisher();
172 virtual bool createTargetInput();
176 virtual double laserPower()
const;
180 virtual double laserWavelength()
const;
192 virtual bool laseLocationValid(
const DtVector& location,
DtString& invalidReason);
199 virtual int defaultLaserCode()
const;
219 virtual bool isConnected() = 0;
240 virtual bool isConnected();
261 virtual bool isConnected();
makVrf::DtLaserDesignatorStateComponent * myLaserDesignatorComponent
Definition: lasingController.h:275
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVectorInputPort * myPositionInputPort
Input Port Name: position Input Port Description: Specifies the position of the laser in body coordin...
Definition: lasingController.h:327
Definition: simRadio.h:30
DtSetTargetRequest.
Definition: setTargetRequest.h:26
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
virtual void registerTaskMsgCallbacks()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
bool myInvalidTargetMsgPrinted
Remember if an invalid-target message has been printed (print it once)
Definition: lasingController.h:286
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
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()
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
DtStringInputPort * myTargetObjectInputPort
Input Port Name: target-object Input Port Description: Specifies a target object to be lased...
Definition: lasingController.h:306
DtBooleanInputPort * myLaserOnInputPort
Input Port Name: laser-on Input Port Description: Turns on the laser using the orientation and positi...
Definition: lasingController.h:292
File: lasingCtlrDesc.h.
Definition: lasingControllerDescriptor.h:34
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: laserDesignatorStateComponent.h:56
DtInputPortGroup * myLaserOffsetInputPortGroup
Input Port Group Name: laser-offset Input Port Group Description: Allows another component to communi...
Definition: lasingController.h:311
File: simMsg.h.
Definition: simMessage.h:35
DtSimObjectReference myCurrentLasedTarget
Definition: lasingController.h:268
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtOrientationInputPort * myOrientationInputPort
Input Port Name: orientation Input Port Description: Specifies the orientation of the laser relative ...
Definition: lasingController.h:319
DtVectorInputPort * myTargetLocationInputPort
Input Port Name: target-location Input Port Description: Specifies a target location to be lased...
Definition: lasingController.h:299
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
virtual void setRadio(DtSimRadio *radio)
Calls registerTaskMsgCallbacks.
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
virtual void disable()
Overridden to allow tasks controllers that can be disabled to call task complete. ...
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
DtLasingControllerInput * myLasingInput
Depending on whether this DtLasingController is integrated with a weapon system or not...
Definition: lasingController.h:283
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Class Description: DtLasingController Lases a target location or entity. Determines the visibility of...
Definition: lasingController.h:40
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
bool myConnectedToLauncher
Indicates whether myLasingInput is connected to a launcher or not.
Definition: lasingController.h:278
DtLasingPSR * myProcessState
Current target we're lasing–point or entity.
Definition: lasingController.h:272
int generateLaserCodeFromName(const DtString &objectName)
Generates a pseudo-random laser code based on the object name of an entity.
const DtLasingControllerDescriptor * myComponentDescriptor
Definition: lasingController.h:274
DtLasingPSR.
Definition: lasingPSR.h:24
Represents the interface between the DtTargetSelectionController and a weapon system.
Definition: weaponComponentInterface.h:20
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