19 class DtArticulatedPartStateRepository;
38 namespace makVrfEvents
62 virtual bool init()
override;
68 virtual const char*
type()
const override;
70 virtual void tick()
override;
74 static void setAimSearchLightCallback(
DtSimMessage * msg,
void * usr);
75 virtual void processSetAimSearchLight(
DtSimMessage* msg);
85 virtual std::string
mode()
const;
88 virtual double orientation(
double& elevation)
const;
112 virtual bool targetPoint(
const DtTaitBryan& orientation, DtVector& location)
const;
113 virtual DtVector localEyepoint()
const;
125 virtual void initSearchLight();
127 DtVector bodySearchLightPosition()
const;
129 DtTaitBryan bodySearchLightOrientation()
const;
133 virtual void restoreDefaultAiming();
136 virtual void aimSearchLightAtPoint(
const DtVector& worldLocation);
139 virtual void trackObject(
const DtSimObject* objectToTrack);
143 virtual void aimSearchLightAtAngle(
double azimuth,
double elevation);
148 virtual void scanSearchLight();
151 virtual void currentPositionAzimuthAndElevation(DtVector&
offset,
double& az,
double& el)
const;
154 virtual void currentWorldLocationAndOrientation(DtVector& location, DtTaitBryan& orientation)
const;
166 virtual bool findLocationOfSearchLightAiming(
const DtVector& searchLocation,
167 const DtTaitBryan& orientation, DtVector& aimingPoint)
const;
170 virtual double minAzimuth()
const;
173 virtual double maxAzimuth()
const;
176 virtual double minElevation()
const;
179 virtual double maxElevation()
const;
182 virtual bool isAnySearchLightOnEntity()
const;
186 virtual void updateSpotLightAppearanceBit();
double myLastSentAzimuth
Last sent azimuth and elevation sent to the actuator. Used to detect false positives with orientation...
Definition: searchLightController.h:216
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Instances of DtStringOutputPort are output ports through which data producers can send a DtString obj...
Definition: stringIOPort.h:52
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
DtInputPortGroup * mySearchLightLimitsPortGroup
Input Port Group Name: search-light-limits Input Port Group Description: Allows the actuator to commu...
Definition: searchLightController.h:254
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
DtBooleanInputPort * myOrientationAchievedInputPort
Input Port Name: orientation-achieved Input Port Description: Specifies whether the search light was ...
Definition: searchLightController.h:286
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
virtual void bindLuaFunctions(lua_State *)=0
Override to bind lua functions.
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
Definition: bindableLuaComponent.h:56
DtVrfSearchLight manages a VR-Link search light publisher, and sets all the values associated with a ...
Definition: vrfSearchLight.h:27
DtAnalogInputPort * myMaxElevationPort
Input Port Name: max-elevation Input Port Description: The maximum elevation at which the light can a...
Definition: searchLightController.h:278
DtVectorInputPort * myPositionInputPort
Input Port Name: position Input Port Description: Specifies the position of the search in body coordi...
Definition: searchLightController.h:249
Instances of DtSearchLightControllerDescriptor are used to specify the parameters for a DtSearchLight...
Definition: searchLightControllerDescriptor.h:20
double myLastSentElevation
Last sent azimuth and elevation sent to the actuator. Used to detect false positives with orientation...
Definition: searchLightController.h:217
DtIntegerOutputPort * myAzimuthRotationRatePercentagePort
Output Port Name: azimuth-rotation-rate-percentage Output Port Description: Percentage of maximum rot...
Definition: searchLightController.h:314
DtSearchLightControllerPSR * myProcessState
Definition: searchLightController.h:205
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
DtVrfSearchLight * mySearchLight
The field of view of the sensor.
Definition: searchLightController.h:208
DtAnalogOutputPort * myOrderedAzimuthPort
Output Port Name: ordered-azimuth Output Port Description: Azimuth at which to attempt to aim the lig...
Definition: searchLightController.h:300
File: simMsg.h.
Definition: simMessage.h:35
DtAnalogOutputPort * myOrderedElevationPort
Output Port Name: ordered-elevation Output Port Description: Elevation at which to attempt to aim the...
Definition: searchLightController.h:293
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
DtInputPortGroup * mySearchLightOffsetInputPortGroup
Input Port Group Name: search-light-offset Input Port Group Description: Allows the actuator to commu...
Definition: searchLightController.h:233
bool myDataNeededForAimingPoint
Whether the data is not yet loaded to find the aiming point.
Definition: searchLightController.h:211
DtSearchLightControllerPSR is a process state repository which holds state variables for the DtSearch...
Definition: searchLightControllerPSR.h:18
DtAnalogInputPort * myMinAzimuthPort
Input Port Name: min-azimuth Input Port Description: The minimum azimuth at which the light can aim...
Definition: searchLightController.h:260
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
DtAnalogInputPort * myMinElevationPort
Input Port Name: min-elevation Input Port Description: The minimum elevation at which the light can a...
Definition: searchLightController.h:272
This class is responsible for controlling the aiming of a search light. Uses Descriptor Type: DtCompo...
Definition: searchLightController.h:45
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:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
virtual void clearTask() override
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:40
const char int mode
Definition: ioapi.h:38
DtIntegerOutputPort * myElevationRotationRatePercentagePort
Output Port Name: elevation-rotation-rate-percentage Output Port Description: Percentage of maximum r...
Definition: searchLightController.h:307
DtBooleanOutputPort * myPowerOnPort
Output Port Name: power-on Output Port Description: Specifies whether the search light is enabled...
Definition: searchLightController.h:321
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: searchLightController.h:324
DtOrientationInputPort * myOrientationInputPort
Input Port Name: orientation Input Port Description: Specifies the orientation of the search relative...
Definition: searchLightController.h:241
Instances of DtIntegerOutputPort are output ports through which data producers can send integer value...
Definition: integerIOPort.h:45
virtual void bindLuaGlobals(lua_State *)=0
Override to bind lua globals.
voidpf uLong offset
Definition: ioapi.h:42
DtTaitBryan myWorldOrientationForAimingPoint
World location and orientation for determining the aiming point when data was not initially available...
Definition: searchLightController.h:224
DtSearchLightControllerDescriptor * mySearchLightDescriptor
Definition: searchLightController.h:203
A locally simulated VRF object.
Definition: localObject.h:98
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22
DtAnalogInputPort * myMaxAzimuthPort
Input Port Name: max-azimuth Input Port Description: The maximum azimuth at which the light can aim...
Definition: searchLightController.h:266
DtVector myWorldLocationForAimingPoint
World location and orientation for determining the aiming point when data was not initially available...
Definition: searchLightController.h:223