18#include <vrvCore/DtUniqueID.h>
19#include <vrvCore/DtElementData.h>
21#include <matrix/vlVector.h>
22#include <matrix/vlQuaternion.h>
23#include <vlpi/entityType.h>
286 makVrv::DtUniqueID
sensorUniqueId(makVrv::DtUniqueID hostId,
const std::string& sensorName);
312 DtVector& trackedLocation, makVrv::DtUniqueID& trackedTarget);
324 const std::string& entityName, DtVector& trackedLocation, makVrv::DtUniqueID& trackedTarget);
415 const DtVector& localPosition,
double x,
double y,
double z,
double w, DtVector& intersectionPoint);
makVrv::DtIntersector * myIntersector
Pointer to the terrain intersection calculator.
Definition entityHelper.h:486
double getAltitude(makVrv::DtUniqueID uniqueId)
Gets an entity's current altitude.
SensorTrackingMode
Sensor tracking modes.
Definition entityHelper.h:421
@ TrackLocation
Sensor is tracking a location.
Definition entityHelper.h:423
@ TrackEntity
Sensor is tracking an entity.
Definition entityHelper.h:422
bool getIntersectionPoint(const DtVector &localPosition, double x, double y, double z, double w, DtVector &intersectionPoint)
Calculates a terrain intersection point.
static DtEntityHelper & instance()
Gets the singleton instance.
virtual ~DtEntityHelper()
Virtual destructor.
double getAltitude(makVrv::DtSceneObject *scnObj)
Gets a scene object's current altitude.
TargetingPodResponse targetingPodInfo(const std::string &entityName, makVrv::DtUniqueID sensorId, DtVector &trackedLocation, makVrv::DtUniqueID &trackedTarget)
Gets targeting pod information for a specific sensor.
StringToIdMap myMarkingTextToUniqueIdMap
Mapping from marking text to unique IDs.
Definition entityHelper.h:467
makVrv::DtDe & myDe
Reference to the display engine.
Definition entityHelper.h:461
StringToStringMap myMarkingTextToConnectionIdMap
Mapping from marking text to connection IDs.
Definition entityHelper.h:476
std::string sensorTrackingMode(makVrv::DtUniqueID hostId, makVrv::DtUniqueID sensorId)
Gets the tracking mode of a sensor.
DtVector lookupEntityLocation(const std::string &globalId)
Entity location methods.
makVrv::DtUniqueID sensorTargetUniqueId(makVrv::DtUniqueID hostId, makVrv::DtUniqueID sensorId)
Gets the unique ID of a sensor's target entity.
std::string markingTextFromUniqueId(makVrv::DtUniqueID uniqueId)
Converts unique ID to marking text.
TargetingPodResponse targetingPodInfo(const std::string &entityName, DtVector &trackedLocation, makVrv::DtUniqueID &trackedTarget)
Gets targeting pod information using the first available gimbaled sensor.
static bool isInitialized()
Checks if the singleton is initialized.
makVrv::DtSceneObject * getSceneObject(makVrv::DtUniqueID uniqueId)
Entity lookup methods.
std::map< std::string, std::string > StringToStringMap
Type definition for string-to-string mapping.
Definition entityHelper.h:473
DtVector sensorFrustumCenter(makVrv::DtUniqueID hostId, makVrv::DtUniqueID sensorId)
Gets the center of a sensor's view frustum.
std::map< std::string, makVrv::DtUniqueID > StringToIdMap
Type definition for string-to-ID mapping.
Definition entityHelper.h:464
makVre::DtEntityResolver * entityResolver()
Gets the entity resolver being used.
std::string connectionIdFromMarkingText(const std::string &markingText)
Converts marking text to a connection ID.
boost::signalslib::signal< void(makVrv::DtElementID entity)> signal_entityRemoved
Signal emitted when an entity is removed.
Definition entityHelper.h:446
void slot_elementsRemoved(const makVrv::DtElementData::ElementIdList &elements)
Slot called when elements are removed.
makVrv::DtUniqueID uniqueIdFromConnectionId(const std::string &connectionId)
Converts connection ID to a unique ID.
bool entityExists(const std::string &entityName)
Entity existence and property methods.
TargetingPodResponse
Entity sensor utilities.
Definition entityHelper.h:296
@ TRACK_TARGET
Sensor is tracking another entity.
Definition entityHelper.h:299
@ NO_SENSOR
No suitable sensor found on the entity.
Definition entityHelper.h:297
@ TRACK_LOCATION
Sensor is tracking a location in space.
Definition entityHelper.h:298
static void initialize(makVrv::DtDe &de, makVre::DtEntityResolver *resolver)
Initializes the singleton instance.
double degreesToTarget(makVrv::DtUniqueID uniqueId, DtVector cigEnd)
Determines the heading in degrees from an entity to a target point.
DtVector localToGeodeticInDegrees(const DtVector &local)
Converts local coordinates to geodetic coordinates.
std::vector< std::string > sensorsForEntity(const std::string &entityName)
Gets all sensors for an entity.
double getHeading(makVrv::DtObserver *obs)
Gets an observer's current heading.
bool entityPositionAndOrientation(makVrv::DtUniqueID id, DtVector &position, DtTaitBryan &orientation)
Spatial calculation functions.
DtVector lookupEntityLocation(makVrv::DtUniqueID uniqueId)
Finds an entity's location given its unique ID.
StringToIdMap myConnectionIdToUniqueIdMap
Mapping from connection IDs to unique IDs.
Definition entityHelper.h:470
double getHeading(makVrv::DtSceneObject *scnObj)
Gets a scene object's current heading.
makVrv::DtUniqueID uniqueIdFromMarkingText(const std::string &markingText)
Entity identifier conversion methods.
makVrv::DtUniqueID sensorUniqueId(makVrv::DtUniqueID hostId, const std::string &sensorName)
Gets the unique ID of a sensor.
double getHeading(makVrv::DtUniqueID uniqueId)
Gets an entity's current heading.
std::string connectionIdFromUniqueId(makVrv::DtUniqueID id)
Converts unique ID to a connection ID.
DtVector sensorTargetLocation(makVrv::DtUniqueID hostId, makVrv::DtUniqueID sensorId)
Gets the location a sensor is targeting.
DtEntityType entityType(makVrv::DtUniqueID uniqueId)
Gets an entity's type information.
bool sensorRefOrientation(makVrv::DtUniqueID hostId, makVrv::DtUniqueID sensorId, DtTaitBryan &orientation)
Gets a sensor's orientation relative to its host.
makVre::DtEntityResolver * myEntityResolver
Pointer to the entity resolver.
Definition entityHelper.h:481
double degreesToTarget(DtVector cigStart, DtVector cigEnd)
Determines the heading in degrees between two points.
std::string markingTextFromConnectionId(const std::string &id)
Converts connection ID to marking text.
DtQuaternion orientToVector(DtVector cigStart, DtVector cigEnd)
Orientation calculation methods.
DtEntityHelper(makVrv::DtDe &de, makVre::DtEntityResolver *resolver)
Constructor.
double degreesToTarget(std::string &globalId, DtVector cigEnd)
Determines the heading in degrees from an entity to a target point.
Entity resolution and mapping system.
Definition entityResolver.h:52
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
Definition appLauncherComponent.h:28
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.