![]() |
VR-Forces 4.8 Class Documentation
|
DtVrfSensorFieldOfView manages a VR-Link sensor field of view (FOV) publisher, and sets all the values associated with a sensor's field of view. More...
Public Member Functions | |
| DtVrfSensorFieldOfView (DtVrfObject *hostEntity, const DtString &id) | |
| virtual | ~DtVrfSensorFieldOfView () |
| virtual void | tick () |
| Tick the publisher. More... | |
| bool | init () |
| Calls createPublisher. More... | |
| DtString | id () const |
| Location of the sensor relative to the host entity. More... | |
| DtVector | relativeLocation () const |
| Location of the sensor relative to the host entity. More... | |
| void | setRelativeLocation (const DtVector &loc) |
| DtTaitBryan | relativeOrientation () const |
| Orientation of the sensor relative to the host entity. More... | |
| void | setRelativeOrientation (const DtTaitBryan &ori) |
| virtual void | setTargetedEntity (const DtGlobalObjectDesignator &target) |
| Entity being tracked. More... | |
| virtual const DtGlobalObjectDesignator & | targetedEntity () const |
| virtual void | setTargetedLocation (const DtVector &target) |
| Location being tracked. More... | |
| virtual const DtVector & | targetedLocation () const |
| virtual void | setTrackingMode (DtSensorTrackingMode mode) |
| Tracking mode. More... | |
| virtual DtSensorTrackingMode | trackingMode () const |
| DtFloat64 | radius () const |
| The radius of the field of view (distance from entity to max range). More... | |
| void | setRadius (DtFloat64 rad) |
| DtFloat64 | xHalfAngle () const |
| Half width of the FOV along the x-axis, measured in radians. More... | |
| void | setXHalfAngle (DtFloat64 angle) |
| DtFloat64 | yHalfAngle () const |
| Half width of the FOV along the y-axis, measured in radians. More... | |
| void | setYHalfAngle (DtFloat64 angle) |
| DtFloat64 | minAzimuthAngle () const |
| Minimum azimuth angle at which sensor can be aimed, measured in radians. More... | |
| void | setMinAzimuthAngle (DtFloat64 angle) |
| DtFloat64 | maxAzimuthAngle () const |
| Maximum azimuth angle at which sensor can be aimed, measured in radians. More... | |
| void | setMaxAzimuthAngle (DtFloat64 angle) |
| DtFloat64 | minElevationAngle () const |
| Minimum elevation angle at which sensor can be aimed, measured in radians. More... | |
| void | setMinElevationAngle (DtFloat64 angle) |
| DtFloat64 | maxElevationAngle () const |
| Maximum elevation angle at which sensor can be aimed, measured in radians. More... | |
| void | setMaxElevationAngle (DtFloat64 angle) |
| DtFloat64 | maxZoomLevel () const |
| Maximum zoom factor. More... | |
| void | setMaxZoomLevel (DtFloat64 level) |
| DtFloat64 | currentZoomLevel () const |
| Current zoom factor. More... | |
| void | setCurrentZoomLevel (DtFloat64 level) |
| DtU32 | color () const |
| Field of view color. More... | |
| void | setColor (DtU32 c) |
Protected Member Functions | |
| virtual bool | createPublisher () |
| Creates a new publisher on the current exercise connection. More... | |
| virtual bool | initSensorFieldOfView () |
| Initializes the sensor field of view SR. More... | |
Protected Attributes | |
| DtRectangularPyramidPublisher * | myFovPublisher |
| DtVrfObject * | myHostEntity |
| DtString | mySensorFieldOfViewId |
Private Member Functions | |
| DtVrfSensorFieldOfView (const DtVrfSensorFieldOfView &orig) | |
| Not implemented. More... | |
| DtVrfSensorFieldOfView & | operator= (const DtVrfSensorFieldOfView &orig) |
| Not implemented. More... | |
| DtVrfSensorFieldOfView () | |
| Not implemented. More... | |
DtVrfSensorFieldOfView manages a VR-Link sensor field of view (FOV) publisher, and sets all the values associated with a sensor's field of view.
The emitter system can be initialized from a DtSesnorFieldOfViewEntry RW class. tick() must be called periodically to tick the VRL publisher.
|
private |
Not implemented.
|
private |
Not implemented.
| DtVrfSensorFieldOfView::DtVrfSensorFieldOfView | ( | DtVrfObject * | hostEntity, |
| const DtString & | id | ||
| ) |
|
virtual |
|
private |
Not implemented.
|
virtual |
Tick the publisher.
| bool DtVrfSensorFieldOfView::init | ( | ) |
Calls createPublisher.
| DtString DtVrfSensorFieldOfView::id | ( | ) | const |
Location of the sensor relative to the host entity.
| DtVector DtVrfSensorFieldOfView::relativeLocation | ( | ) | const |
Location of the sensor relative to the host entity.
| void DtVrfSensorFieldOfView::setRelativeLocation | ( | const DtVector & | loc | ) |
| DtTaitBryan DtVrfSensorFieldOfView::relativeOrientation | ( | ) | const |
Orientation of the sensor relative to the host entity.
When set, targeted entity will be cleared out.
| void DtVrfSensorFieldOfView::setRelativeOrientation | ( | const DtTaitBryan & | ori | ) |
|
virtual |
Entity being tracked.
|
virtual |
|
virtual |
Location being tracked.
|
virtual |
|
virtual |
Tracking mode.
|
virtual |
| DtFloat64 DtVrfSensorFieldOfView::radius | ( | ) | const |
The radius of the field of view (distance from entity to max range).
| void DtVrfSensorFieldOfView::setRadius | ( | DtFloat64 | rad | ) |
| DtFloat64 DtVrfSensorFieldOfView::xHalfAngle | ( | ) | const |
Half width of the FOV along the x-axis, measured in radians.
| void DtVrfSensorFieldOfView::setXHalfAngle | ( | DtFloat64 | angle | ) |
| DtFloat64 DtVrfSensorFieldOfView::yHalfAngle | ( | ) | const |
Half width of the FOV along the y-axis, measured in radians.
| void DtVrfSensorFieldOfView::setYHalfAngle | ( | DtFloat64 | angle | ) |
| DtFloat64 DtVrfSensorFieldOfView::minAzimuthAngle | ( | ) | const |
Minimum azimuth angle at which sensor can be aimed, measured in radians.
| void DtVrfSensorFieldOfView::setMinAzimuthAngle | ( | DtFloat64 | angle | ) |
| DtFloat64 DtVrfSensorFieldOfView::maxAzimuthAngle | ( | ) | const |
Maximum azimuth angle at which sensor can be aimed, measured in radians.
| void DtVrfSensorFieldOfView::setMaxAzimuthAngle | ( | DtFloat64 | angle | ) |
| DtFloat64 DtVrfSensorFieldOfView::minElevationAngle | ( | ) | const |
Minimum elevation angle at which sensor can be aimed, measured in radians.
| void DtVrfSensorFieldOfView::setMinElevationAngle | ( | DtFloat64 | angle | ) |
| DtFloat64 DtVrfSensorFieldOfView::maxElevationAngle | ( | ) | const |
Maximum elevation angle at which sensor can be aimed, measured in radians.
| void DtVrfSensorFieldOfView::setMaxElevationAngle | ( | DtFloat64 | angle | ) |
| DtFloat64 DtVrfSensorFieldOfView::maxZoomLevel | ( | ) | const |
Maximum zoom factor.
| void DtVrfSensorFieldOfView::setMaxZoomLevel | ( | DtFloat64 | level | ) |
| DtFloat64 DtVrfSensorFieldOfView::currentZoomLevel | ( | ) | const |
Current zoom factor.
| void DtVrfSensorFieldOfView::setCurrentZoomLevel | ( | DtFloat64 | level | ) |
| DtU32 DtVrfSensorFieldOfView::color | ( | ) | const |
Field of view color.
| void DtVrfSensorFieldOfView::setColor | ( | DtU32 | c | ) |
|
protectedvirtual |
Creates a new publisher on the current exercise connection.
|
protectedvirtual |
Initializes the sensor field of view SR.
|
protected |
|
protected |
|
protected |