|
VR-Engage
2.3
|
Extends DtSimpleProximitySensor processing to maintain a contact list suitable for frontend annotation and overlay systems.
#include <towHookProximitySensor.h>
Public Member Functions | |
| DtTowHookProximitySensor (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtTowHookProximitySensor () override |
| DtTowHookProximitySensor ()=delete | |
| DtTowHookProximitySensor (const DtTowHookProximitySensor &orig)=delete | |
| const DtTowHookProximitySensor & | operator= (const DtTowHookProximitySensor &orig)=delete |
| virtual const char * | type () const override |
| virtual bool | init () override |
| virtual void | tick () override |
| virtual void | disable () override |
| virtual void | setIsEnabled (bool yesNo) override |
Public Member Functions inherited from makVre::DtVreSimComponent< DtSimpleProximitySensor > | |
| DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreSimComponent () |
| bool | isPlayerControlled (const std::string &role="") const |
| std::vector< std::string > | controllingStations (const std::string &role) const |
| std::vector< std::string > | engagedRoles () const |
| DtString | entitySystemName () const |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
Protected Member Functions | |
| virtual bool | createAndInitSensorMonitor () |
| virtual bool | processObjects () |
| virtual bool | findTowHook () |
Protected Attributes | |
| DtObjectProximitySensorMonitor * | myMonitor |
| DtRwVector * | myTowHitchWorldLocation |
| makVre::DtTowHookProximitySensor::DtTowHookProximitySensor | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | desc = 0, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructs the annotation proximity sensor component.
| name | Component instance name. |
| owner | Owning simulation object. |
| simManager | Simulation services interface. |
| desc | Optional component descriptor. |
| parentRegistry | Optional reader/writer registry. |
Referenced by DtTowHookProximitySensor(), and operator=().
|
overridevirtual |
Destructor.
|
delete |
Assignment operator and copy constructor are deleted to prevent copying.
|
delete |
References DtTowHookProximitySensor().
|
delete |
References DtTowHookProximitySensor().
|
overridevirtual |
Returns the component type string.
|
overridevirtual |
Initializes the base sensor and contact monitor.
|
overridevirtual |
Performs per-frame detection and notification updates.
|
overridevirtual |
Disables the sensor and clears tracked contacts.
|
overridevirtual |
Enables or disables the sensor.
| yesNo | True to enable, false to disable. |
Disabling clears tracked contacts and notifies listeners.
|
static |
Factory creator used by the component registration system.
| name | Component instance name. |
| owner | Owning simulation object. |
| simManager | Simulation services interface. |
| desc | Optional component descriptor. |
| parentRegistry | Optional reader/writer registry. |
|
protectedvirtual |
Creates and initializes the object-proximity monitor.
|
protectedvirtual |
Processes nearby simulation objects and updates contact state.
|
protectedvirtual |
|
protected |
Monitor that publishes contact-list changes to observers.
|
protected |