17#include <vrvCore/vrvCore.h>
18#include <vrvCore/DtSensorFieldOfViewManager.h>
19#include <vrvCore/DtSensorFieldOfViewData.h>
32class DtSensorViewOverlay;
80 virtual void update(makVrv::DtUniqueID hostId, makVrv::DtUniqueID sensorId,
81 const std::string& observerName)
override;
93 const DtVector& relativeLocation,
const DtVector& targetLocation)
override;
106 std::string& windowName, std::string& channelName)
const override;
117 virtual void removeSensorView(makVrv::DtUniqueID entId, makVrv::DtUniqueID sensorId)
override;
128 makVrv::DtElementID sensorId,
bool createControls)
override;
194 const HostAndSensorId& hostAndSensor, makVrv::DtUniqueID hostId);
198 const HostAndSensorId& hostAndSensor, makVrv::DtUniqueID hostId);
201 virtual bool trackRollLevel(makVrv::DtObserver* observer,
const HostAndSensorId& hostAndSensor,
202 makVrv::DtUniqueID hostId, makVrv::DtUniqueID fovHostId,
const DtVector& relativeLocation,
203 const DtVector& targetNetPosition);
208 makVrv::DtUniqueID hostId, makVrv::DtUniqueID fovHostId,
const DtVector& relativeLocation,
209 makVrv::DtUniqueID targetId,
const DtVector& targetLocation,
const std::string& trackingMode);
221 makVrv::DtUniqueID hostId, makVrv::DtUniqueID fovHostId,
const DtVector& relativeLocation,
222 double fovRelativeYaw,
double fovRelativePitch,
double fovRelativeRoll);
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
virtual void updateStabilizedView(makVrv::DtObserver *observer, const HostAndSensorId &hostAndSensor, makVrv::DtUniqueID hostId, makVrv::DtUniqueID fovHostId, const DtVector &relativeLocation, double fovRelativeYaw, double fovRelativePitch, double fovRelativeRoll)
Applies horizon-relative pitch/roll stabilization when no target is being tracked.
virtual void processTrackLocation(makVrv::DtObserver *observer, makVrv::DtElementID hostEntity, const DtVector &relativeLocation, const DtVector &targetLocation) override
Processes the location of a tracked target.
DtVreSensorFieldOfViewManager(makVrv::DtDe &de)
Constructor.
virtual bool findDisplayWindowAndChannel(const makVrv::DtObserver *observer, std::string &displayName, std::string &windowName, std::string &channelName) const override
Finds the display window and channel for an observer.
virtual void initializeStabilizationState(makVrv::DtObserver *observer, double hostTopoYaw, double fovRelativeYaw, double fovRelativePitch, double fovRelativeRoll, DtPitchRollStabilizationState &state)
Seeds stabilized angles from the sensor, prior target view, or initial observer pose.
DtVector myCachedPosition
Cached position of the last tracked target.
Definition DtVreSensorFieldOfViewManager.h:181
virtual void update(makVrv::DtUniqueID hostId, makVrv::DtUniqueID sensorId, const std::string &observerName) override
Updates sensor field of view state for a specific sensor.
std::set< HostAndSensorId > myObserverSeedingDisabled
Sensors whose stabilization state must not be seeded from the observer pose.
Definition DtVreSensorFieldOfViewManager.h:186
virtual DtPitchRollStabilizationState & suspendStabilizationForTracking(const HostAndSensorId &hostAndSensor, makVrv::DtUniqueID hostId)
Prepares stabilization state for a frame in which the observer tracks a target.
virtual void removeSensorView(makVrv::DtUniqueID entId, makVrv::DtUniqueID sensorId) override
Removes a sensor view window.
std::map< HostAndSensorId, DtPitchRollStabilizationState > myPitchRollStabilization
Definition DtVreSensorFieldOfViewManager.h:183
virtual void addSensorObserver(const std::string &observerName, makVrv::DtElementID hostId, makVrv::DtElementID sensorId, bool createControls) override
Adds a sensor observer and registers updates on signal_preObserverUpdate.
virtual ~DtVreSensorFieldOfViewManager() override
Destructor.
virtual void clearStabilization(const HostAndSensorId &hostAndSensor)
Removes cached stabilization state for one host and sensor.
virtual DtPitchRollStabilizationState & pitchRollStabilizationState(const HostAndSensorId &hostAndSensor, makVrv::DtUniqueID hostId)
Returns the stabilization state for a sensor, creating it from player settings if needed.
virtual void disableObserverSeeding(makVrv::DtElementID hostId, makVrv::DtElementID sensorId)
Starts the sensor's stabilized view from the gimbal angles instead of the observer's pose.
virtual bool trackRollLevel(makVrv::DtObserver *observer, const HostAndSensorId &hostAndSensor, makVrv::DtUniqueID hostId, makVrv::DtUniqueID fovHostId, const DtVector &relativeLocation, const DtVector &targetNetPosition)
Aims a stabilized observer at a world-space target with zero roll.
virtual makVre::DtVreMessageResult handleTargetObjectPosition(makVre::DtVreMessage *msg)
Handles target object position messages.
virtual bool updateTrackingView(makVrv::DtObserver *observer, const HostAndSensorId &hostAndSensor, makVrv::DtUniqueID hostId, makVrv::DtUniqueID fovHostId, const DtVector &relativeLocation, makVrv::DtUniqueID targetId, const DtVector &targetLocation, const std::string &trackingMode)
Resolves and applies the current tracked target, including cached-target fallback.
virtual void advanceStabilizationState(double fovRelativeYaw, double fovRelativePitch, DtPitchRollStabilizationState &state)
Advances stabilized angles using sensor movement and tracking-resume settling.
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
!
Definition glsVreMessageUtil.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.
Definition DtVreSensorFieldOfViewManager.h:139
double myTrackedRelativeYaw
Definition DtVreSensorFieldOfViewManager.h:163
double myHorizonRelativePitch
Definition DtVreSensorFieldOfViewManager.h:156
double myLastFovRelativeYaw
Definition DtVreSensorFieldOfViewManager.h:154
bool myHaveLastTrackedTarget
Last geocentric point aimed at while tracking.
Definition DtVreSensorFieldOfViewManager.h:166
bool myEnablePitchRollStabilization
Definition DtVreSensorFieldOfViewManager.h:151
double myLastFovRelativePitch
Definition DtVreSensorFieldOfViewManager.h:155
double myTrackedTopoPitch
Definition DtVreSensorFieldOfViewManager.h:162
DtVector myLastTrackedTargetNet
Definition DtVreSensorFieldOfViewManager.h:167
bool myResumingFromTracking
After tracking, hold the tracked pitch until the gimbal settles; its slew to the hold angle converts ...
Definition DtVreSensorFieldOfViewManager.h:171
DtPitchRollStabilizationState()
Definition DtVreSensorFieldOfViewManager.h:140
bool myHaveTrackedOrientation
Last horizon-relative pitch and host-relative yaw commanded while tracking.
Definition DtVreSensorFieldOfViewManager.h:161
bool myInitialized
Definition DtVreSensorFieldOfViewManager.h:152
int mySettledFrames
Definition DtVreSensorFieldOfViewManager.h:173
bool mySeedFromObserver
False after tracking, when the observer still points at the old target.
Definition DtVreSensorFieldOfViewManager.h:158
int myResumeFrames
Definition DtVreSensorFieldOfViewManager.h:172
double myCommandedRelativeYaw
Definition DtVreSensorFieldOfViewManager.h:153
Defines the base class for all VREngage messages.