33 class DtLaserDesignatorStateComponent;
66 virtual bool init()
override;
70 virtual const char*
type()
const override;
83 virtual void tick()
override;
86 virtual void setDesignatorCode(
const int code);
87 virtual const int designatorCode()
const;
94 virtual bool createProcessSR();
97 virtual void startLasing();
98 virtual void stopLasing();
106 virtual void laseLocation(
const DtVector& location);
109 virtual bool lasing()
const;
120 virtual void registerSetLaserCodeRequestMsgCallbacks();
121 virtual void registerSetLaserInformationRequestMsgCallbacks();
124 static void laseTargetTaskCallback(
DtSimMessage *msg,
void * usrData);
125 static void setLaserCodeRequestCallback(
DtSimMessage* msg,
void* usrData);
126 static void setLaserInformationRequestCallback(
DtSimMessage* msg,
void* usrData);
129 virtual void processLaseTargetTaskMessage(
DtSimMessage *msg);
130 virtual void processSetLaserInformationRequestMessage(
DtSimMessage* msg);
131 virtual void processSetLaserCodeRequestMessage(
DtSimMessage* msg);
137 virtual void disable()
override;
153 virtual bool targetPoint(
const DtTaitBryan& orientation, DtVector& location);
156 virtual DtVector localEyepoint()
const;
160 virtual void tickLaser();
165 virtual bool createPublisher();
167 virtual bool createTargetInput();
171 virtual double laserPower()
const;
175 virtual double laserWavelength()
const;
179 virtual DtVector laserRelativePosition();
191 virtual bool laseLocationValid(
const DtVector& location,
DtString& invalidReason);
199 virtual void laseTargetSpotLocations(DtVector& spotLocation, DtVector& relativeSpotLocation)
const;
202 virtual int defaultLaserCode()
const;
211 bool chordIntersectsExtent(
const DtChord& chord,
213 DtVector& intersectionEntryVector,
214 DtVector& intersectionExitVector)
const;
makVrf::DtLaserDesignatorStateComponent * myLaserDesignatorComponent
Definition: lasingController.h:224
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
DtVectorInputPort * myPositionInputPort
Input Port Name: position Input Port Description: Specifies the position of the laser in body coordin...
Definition: lasingController.h:271
virtual void disable() override
Overridden to allow tasks controllers that can be disabled to call task complete. ...
Definition: simRadio.h:30
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
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:22
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:230
Definition: readerWriterRegistry.h:39
The DtExtent represents an axis-aligned 3d bounding box.
Definition: extent.h:43
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
virtual void setRadio(DtSimRadio *radio) override
Calls registerTaskMsgCallbacks.
DtStringInputPort * myTargetObjectInputPort
Input Port Name: target-object Input Port Description: Specifies a target object to be lased...
Definition: lasingController.h:250
DtBooleanInputPort * myLaserOnInputPort
Input Port Name: laser-on Input Port Description: Turns on the laser using the orientation and positi...
Definition: lasingController.h:236
double myTimeSinceSuccessfulLase
Definition: lasingController.h:273
virtual bool init() override
Calls setRadio()
File: lasingCtlrDesc.h.
Definition: lasingControllerDescriptor.h:33
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:61
DtInputPortGroup * myLaserOffsetInputPortGroup
Input Port Group Name: laser-offset Input Port Group Description: Allows another component to communi...
Definition: lasingController.h:255
File: simMsg.h.
Definition: simMessage.h:35
DtSimObjectReference myCurrentLasedTarget
Definition: lasingController.h:217
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
DtOrientationInputPort * myOrientationInputPort
Input Port Name: orientation Input Port Description: Specifies the orientation of the laser relative ...
Definition: lasingController.h:263
DtVectorInputPort * myTargetLocationInputPort
Input Port Name: target-location Input Port Description: Specifies a target location to be lased...
Definition: lasingController.h:243
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
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
virtual void clearTask() override
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
bool myConnectedToLauncher
Indicates whether myLasingInput is connected to a launcher or not.
Definition: lasingController.h:227
DtLasingPSR * myProcessState
Current target we're lasing–point or entity.
Definition: lasingController.h:221
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:223
DtLasingPSR.
Definition: lasingPSR.h:25
Represents the interface between the DtTargetSelectionController and a weapon system.
Definition: weaponComponentInterface.h:20
A locally simulated VRF object.
Definition: localObject.h:98