69 DetectionContinued = 1,
104 virtual const char*
type()
const;
125 virtual int sensorType()
const;
144 virtual void clearTypesToDetectForTask();
158 static bool setTypesToDetectAttribute(
void* ctrlr,
DtReaderWriter* val);
171 virtual void setSensorEnabled(
bool enabled);
174 virtual bool sensorEnabled()
const;
203 virtual const char* defaultPSRType()
const;
208 virtual void initSensorRangeRing();
216 virtual void updateDetectableObjectsList();
228 const std::list<DtU8>& forceTypes);
234 virtual bool initSensorGeometry();
239 virtual void setupGeometryForDetection();
244 virtual DtVector localSensorPosition()
const;
249 virtual DtVector bodySensorPosition()
const;
254 virtual DtTaitBryan localSensorOrientation()
const;
259 virtual DtTaitBryan bodySensorOrientation()
const;
263 virtual DtUUID targetObject()
const;
267 virtual DtVector targetLocation()
const;
279 virtual bool processObjects();
289 virtual bool detectObject(
const DtVrfObject*
object,
302 virtual ContinueDetectingResult continueDetectingObject(
const DtVrfObject*
object,
308 virtual bool objectWithinSensorGeometry(
const DtVrfObject*
object)
const;
312 virtual double rangeSquaredToObject(
const DtVrfObject*
object)
const;
316 virtual double rangeToObject(
const DtVrfObject*
object)
const;
319 virtual void clearObjectRangeCache()
const;
322 virtual void printTargets()
const;
326 virtual void updateDetectedObjectListPort();
329 virtual bool createAndInitSensorMonitor();
332 virtual bool objectInDetectableList(
const DtVrfObject*)
const;
336 static void hostilitiesChangedCallback(DtU8 force,
void* usr);
337 virtual void processHostilitiesChanged(DtU8 force);
343 virtual DtTaitBryan worldOrientationOfObject(
const DtVrfObject*
object)
const;
347 virtual bool canDetectForceOfObject(
const DtVrfObject*);
351 static void setSensorEnabledRequestCallback(
DtSimMessage *msg,
void * usrData);
355 virtual void processSetSensorEnabledRequestMessage(
DtSimMessage *msg);
double myMutableObjectRangeSquaredCache
The current range squared to the cached object, if calculated.
Definition: objectSensor.h:462
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
DtOrientationInputPort * myOrientationInputPort
Input Port Name: orientation Input Port Description: Specifies the orientation of the sensor relative...
Definition: objectSensor.h:392
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:146
Contains the DtCompositePredicate class declaration.
Definition: compositePredicate.h:26
DtInputPortGroup * mySensorOffsetInputPortGroup
Input Port Group Name: sensor-offset Input Port Group Description: Allows an external controller to p...
Definition: objectSensor.h:384
bool myMutableObjectRangeCalculated
Keeps track of whether the range has been calculated for the current cached object.
Definition: objectSensor.h:456
Description: DtNLengthIntegerVector is a named, readable/writable vector of integers of arbitrary len...
Definition: nLengthIntegerVector.h:28
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtStringInputPort * myTargetObjectInputPort
Input Port Name: target-object Input Port Description: Specifies the name of the object be targeted b...
Definition: objectSensor.h:410
virtual void setIsEnabled(bool yesNo)
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
DtObjectSensorDescriptor; descriptor for the DtObjectSensor component.
Definition: objectSensorDescriptor.h:27
bool myMutableObjectRangeSquaredCalculated
Keeps track of whether the range squared has been calculated for the current cached object...
Definition: objectSensor.h:460
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
Definition: objectType.h:27
DtObjectTypesListMultiInputPort * myObjectsToDetectInputPort
Inputs: DtObjectTypesListMultiInputPort : object-types-to-detect Input Port Name: object-types-to-det...
Definition: objectSensor.h:377
DtObjectSensor is a base level sensor component.
Definition: objectSensor.h:50
DtManagedObjectListConstPtr myDetectableObjectList
Definition: objectSensor.h:438
virtual void enable()
Is this component enabled or not.
File: simMsg.h.
Definition: simMessage.h:35
class DtRwObjectTypeList:
Definition: rwObjectTypeList.h:30
DtSensorTrackingMode
Definition: sensorFieldOfViewEnums.h:9
virtual void tick()
This gives the thread of control to the component.
An abstract base class for all evaluators of spatial filters.
Definition: spatialFilterEvaluator.h:30
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
DtForceType myForceType
The force type the last time the detectable object list was updated.
Definition: objectSensor.h:451
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
DtSpatialFilterEvaluator * mySensorGeometryEvaluator
Definition: objectSensor.h:448
DtVectorInputPort * myTargetLocationInputPort
Input Port Name: target-location Input Port Description: Specifies the location to be targeted by thi...
Definition: objectSensor.h:418
virtual bool createPorts()
Called by init.
DtObjectSensorPSR * myProcessState
Container for state data associated with this component.
Definition: objectSensor.h:443
ContinueDetectingResult
Definition: objectSensor.h:66
virtual bool createPortGroups()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
double myMutableObjectRangeCache
The current range to the cached object, if calculated.
Definition: objectSensor.h:458
DtBooleanInputPort * myTargetAcquiredInputPort
Input Port Name: target-acquired Input Port Description: Specifies whether the sensor was able to acq...
Definition: objectSensor.h:434
const DtObjectSensorDescriptor * myObjectSensorDescriptor
Definition: objectSensor.h:439
DtVectorInputPort * myPositionInputPort
Input Port Name: position Input Port Description: Specifies the position of the sensor in body coordi...
Definition: objectSensor.h:402
Class which manages the sending of sensor contact information to the GUI from one particular sensor o...
Definition: objectSensorMonitor.h:25
DtBoost::shared_ptr< const DtManagedObjectList > DtManagedObjectListConstPtr
Typedef for a shared pointer to a const DtOrgViewManagedObjectList.
Definition: managedObjectList.h:31
bool myPrep_invokeNewContactCallbacks
Definition: objectSensor.h:467
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
bool myGeometrySetup
Whether setupGeometryForDetection() has been called yet.
Definition: objectSensor.h:465
const DtVrfObject * myMutableObjectCached
The VrfObject whose range is currently cached.
Definition: objectSensor.h:454
DtIntegerInputPort * myTrackingModeInputPort
Input Port Name: tracking-mode Input Port Description: Specifies the tracking mode of the sensor...
Definition: objectSensor.h:426
DtObjectSensorMonitor * myMonitor
Sends out sensor contact information to the GUI if the GUI or other application has requested the inf...
Definition: objectSensor.h:447
virtual const char * type() const =0
Returns a string identifies the class type of component.
Definition: objectSensorPSR.h:30