17#include <matrix/vlVector.h>
104 const std::string&
name()
const;
158 bool inUse(
const std::string& channelKeyToIgnore =
"" )
const;
453 bool forwardToObserverModeManager =
true );
514 bool forwardToObserverModeManager =
true );
617 boost::signalslib::signal<void (
DtObserver*,
double offset)>
674 std::set<std::string>& displayNamesOut)
const;
676 std::vector<DtUniqueID>& idsOut)
const;
Contains the DtElementAttributeManager class declaration.
Contains makVrv::DtElementData class.
Contains vrvCore::DtObserverMode class.
Contains makVrv::DtObserverObject class declaration.
Contains makArchives::DtObserverStateRecord class.
Base class to provide boost signal/slot management.
A DtObserverSettingsRecord contains the settings of an observer.
Definition DtObserverSettingsRecord.h:21
AttachType
Definition DtObserverSettingsRecord.h:25
A DtObserverSettingsRecord contains the state of an observer.
Definition DtObserverStateRecord.h:21
The abstract interface necessary for agents.
Definition DtAgentManagerInterface.h:34
Definition DtCameraShake.h:24
Configuration for a single channel Serialized and sent to remote displays as necessary to configure r...
Definition DtChannelConfiguration.h:27
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer,...
Definition DtDe.h:77
std::vector< EntryAttributes > EntryAttributesList
Definition DtElementAttributeManager.h:44
std::vector< DtElementEntry * > ElementList
Type definition for a vector of DtElementEntry pointers.
Definition DtElementData.h:47
TODO: This class is used to encapsulate a set of default observer settings and parameters.
Definition DtObserverConfiguration.h:23
int linearScaledSpeedGain() const
double calcOrbitSpeed() const
virtual bool setCameraShake(const std::string &shakeType)
Tell the observer what kind of camera shake to set.
void toggleConstrainToCenter()
double myViewMagnification
Definition DtObserver.h:779
virtual DtCameraShake * cameraShake()
Get the camera shake is on this observer.
void detach()
Detach from all elements.
bool isSecondaryAttached(DtElementID) const
Returns true if the object is attached as a secondary object.
DtSensor * mySensor
Definition DtObserver.h:782
DtObserverObjectAgent * myObserverObjectAgent
Definition DtObserver.h:757
boost::signalslib::signal< void(DtObserver *, double offset)> signal_speedScalingMslModeOffsetChanged
Signal emitted when an observer's speed scaling MSL mode offset changes.
Definition DtObserver.h:618
boost::signalslib::signal< void(const std::string &, DtUniqueID)> signal_objectAttached
Boost signal called when observer attaches to an object.
Definition DtObserver.h:566
DtElementID lastSingleAttached() const
bool myAllowAttach
Definition DtObserver.h:775
void setAttachedOrientation(double psi, double theta, double phi)
int gainPrecision() const
void setModelScaleFactor(double modelScaleFactor, bool forwardToObserverModeManager=true)
void setOrientToTargetConstraint(bool orient)
int rotationSpeedGain() const
unsigned int myPartId
Definition DtObserver.h:770
void slot_channelModified(const DtChannelConfiguration &config)
void setObserverRotationOffset(double x, double y, double z, double w)
virtual void attachToObjects(const ElementList &objects)
float myDelayedAttachedYValue
Definition DtObserver.h:796
void setAttachedYaw(double psi)
void slot_observerModeSettingChanged(int observerMode, int settingKey)
virtual void disableSensor()
Disables the current sensor.
boost::signalslib::signal< void(DtObserver *, DtObserverObject::NorthType northType)> signal_northTypeChanged
Signal emitted when an observer's north type changed.
Definition DtObserver.h:625
void setAllowReset(bool b)
void setLocalModelScalingEnabled(bool enabled)
void setLinearSpeedGain(int gain)
Set scaled or unscaled gain based on current speed scaling state.
void slot_observerModeLodCenterSettingsChanged(int observerMode)
DtDe & myDe
Definition DtObserver.h:755
void setHideModelOnAttach(bool hide)
boost::signalslib::signal< void()> signal_terrainChanged
Definition DtObserver.h:634
void centerOnTerrain(const DtUniqueID &terrainPatch)
reset and recenter to specified terrain patch
virtual bool sceneObjectsAvailable(const ElementList &elements)
Check to see if scene objects are available for all the elements we've been asked attach to.
int linearUnscaledSpeedGain() const
int orbitSpeedGainFromSpeed(double speed) const
Calculate the gain for a given speed.
virtual void slot_attachNextTick(const ElementList objects)
virtual void slot_onElementAttributesChanged(const DtElementAttributeManager::EntryAttributesList &attributes)
Called by signal whenever element attributes change.
void setOrbitSpeedGain(int gain, bool forwardToObserverModeManager=true)
Set the orbit speed gain.
void attachTo(bool afterTrue)
Protected implementation of attach to.
virtual double colorControlBrightness() const
Gets the color control brightness value.
virtual bool colorControlInvert() const
Gets the color control invert value.
bool isFrustumBasedViewMagnificationEnabled() const
virtual void setCameraShakeRotation(const DtQuat &rotQuat) const
virtual double colorControlContrast() const
Gets the color control contrast value.
bool myAttachedXDelayedFlag
Definition DtObserver.h:789
virtual void setColorControlColorMix(double value, bool forwardToObserverModeManager=true)
Sets the current color control color mix value. Defines how much color to mix in to the image.
void setPrimaryAttachment(const ElementList &elements)
bool myAttachedYDelayedFlag
Definition DtObserver.h:790
boost::signalslib::signal< void(DtObserver *, int)> signal_observerModeChanged
Boost signal called when observer's mode changed.
Definition DtObserver.h:572
void attachToPreviousElement()
Tell the observer to attach to the previous allowable object.
void setAllowDetach(bool b)
Sets whether or not detachment is allowed.
void setGainPrecision(int amt, bool forwardToObserverModeManager=true)
virtual double colorControlColorMix() const
Gets the color control color mix value.
void slot_observerModeColorControlBrightnessChanged(int observerMode)
virtual void slot_sensorRemoved(DtSensor *sensor)
Called when a sensor is removed or deleted from the sensor manager.
DtCameraShake * myCameraShake
Definition DtObserver.h:783
int partAttachment() const
Get the part ID that the observer is attached to.
virtual bool colorControlEnabled() const
Gets the color control enabled value.
float myTerrainLodScale
Definition DtObserver.h:781
DtObserverConfiguration & configuration()
void setOrientation(double x, double y, double z, double w)
Go to this orientation.
boost::signalslib::signal< void(const std::string &)> signal_objectsDetached
Boost signal called when observer detaches from all.
Definition DtObserver.h:569
int myObserverMode
Definition DtObserver.h:763
virtual std::string findSensor()
Get the name of the current sensor; returns "" if there is none.
double viewMagnification() const
Get this observer's view magnification.
void setAttachedLocation(double x, double y, double z)
void setAllowAttach(bool b)
Sets whether or not attachment is allowed.
DtSignalConnectionManager myConnections
Definition DtObserver.h:756
virtual void setUsesBoundingVolumeForAttachedOffsets(bool useBoundingVolume)
Set whether or not the (attached) observer will use the the object it is attached to's bounding volum...
double speedScalingMslModeOffset() const
void setLocation(double x, double y, double z)
Go to this position (database coordinates).
bool allowReset() const
Get if reset is allowed.
double calcRotationSpeed() const
bool myProjectionIs2D
Definition DtObserver.h:784
DtObserverObject::SpeedScalingMode speedScalingMode() const
void slot_oceanLayerAdded(const DtOceanLayer &)
void setLinearSpeed(double speed)
std::string myPaperMapLayer
Definition DtObserver.h:785
void setFromRecord(const makArchives::DtObserverSettingsRecord &rec)
Fill out this object's settings from the record.
bool setObserverMode(int observerMode)
bool haveLastSingleAttached() const
Has this observer ever attached to a single entity?
bool myAllowReset
Definition DtObserver.h:774
virtual DtVector observerPlatformRight() const
void setModelScaleType(const std::string &modelScaleType, bool forwardToObserverModeManager=true)
void getLocation(double &x, double &y, double &z) const
Get the observer's position from the remote object (no observer camera offset).
double observerAltitude() const
Get the observer's current altitude.
void setViewResolution(double resolution)
Set the observer's resolution (2D). In meters per pixel.
void slot_observerModeModelScaleTypeChanged(int observerMode)
void getObserverRotationOffset(double &x, double &y, double &z, double &w) const
void getCameraFromParentRotationOffset(double &x, double &y, double &z, double &w) const
void getOrientation(double &x, double &y, double &z, double &w) const
Get the observer's orientation from the local observer object.
virtual void setLodCenterSettings(const DtObserverObject::DtLodCenterSettings &settings, bool forwardToObserverModeManager=true)
Set the lod center settings to use.
void getRotationalVelocity(double &x, double &y, double &z) const
Get the observer's rotational velocity from the remote object.
double orbitSpeed() const
void getCameraFromParentOffsetVector(double &x, double &y, double &z) const
DtObserverObject::AttachType convertObserverSettingsAttachType(makArchives::DtObserverSettingsRecord::AttachType type) const
virtual bool lodCenterSettings(DtObserverObject::DtLodCenterSettings &settings) const
void setRotationSpeedGain(int gain, bool forwardToObserverModeManager=true)
bool myAttachmentHas3DCockpit
Definition DtObserver.h:765
boost::signalslib::signal< void(DtObserver *, double)> signal_entityLodScaleChanged
Boost signal called when the observer's LOD Distance Scale used for entities is changed.
Definition DtObserver.h:602
void setLocationTrackAttachment(double x, double y, double z)
virtual DtVector observerPlatformFront() const
const std::string & modelScaleType() const
DtObserverObject::NorthType northType() const
Gets the current north type.
virtual void slot_disableBuoyancyForAttachedEntitiesChanged(bool disable)
Looks up the attached scene object, finds its clamping updater and disables it.
bool allowDetach() const
Get if detach is allowed.
std::vector< DtElementID > ElementList
Definition DtObserver.h:42
bool myFlashlightEnabled
Definition DtObserver.h:778
void slot_observerModeOrbitSpeedGainChanged(int observerMode)
bool tracking() const
Check if the observer is attached to elements.
void slot_observerModeIsFrustumBasedViewMagnificationEnabledChanged(int observerMode)
virtual void toggleFlashlight()
Toggle the observer-attached flashlight on or off.
bool allowAttach() const
Get if attach is allowed.
void getLocationTrackAttachment(double &x, double &y, double &z) const
bool getRecord(makArchives::DtObserverStateRecord &recOut) const
Returns true if recOut was filled with all the state of this object.
void setSecondaryAttachment(const ElementList &element)
virtual bool usesBoundingVolumeForAttachedOffsets() const
Set whether or not the (attached) observer will use the the object it is attached to's bounding volum...
void moveUnit(const DtVector &direction)
void centerOnTerrain()
rest and recenter.
void getLinearVelocity(double &x, double &y, double &z) const
Get the observer's linear velocity from the remote object.
makArchives::DtObserverStateRecord myCachedObserverStateRecord
Definition DtObserver.h:762
void setModeSpecificObserverObjectData()
double linearSpeed() const
bool inUse(const std::string &channelKeyToIgnore="") const
Returns true in this observer is found in any channel configuration.
bool myAttachedZDelayedFlag
Definition DtObserver.h:791
void setSecondaryAttachment(DtElementID element)
void setAttachedPitch(double theta)
const ElementList & secondaryAttachments() const
Get the secondary attachments.
void setAttachedZ(double z)
void setLinearScaledSpeedGain(int gain, bool forwardToObserverModeManager=true)
bool isPrimaryAttached(DtElementID) const
Returns true if the object is attached as a primary object.
bool myAllowDetach
Definition DtObserver.h:776
void suppressConstrainToTerrain(bool trueFalse)
void attachToNextElement()
Tell the observer to attach to the next allowable object.
void setOrbitSpeed(double speed)
void getTopographicOrientation(double &psi, double &theta, double &phi) const
Get the observer's orientation from the local observer object in topo.
void slot_completeAttachment()
preTick slot for completing an attachment for an element that changed last frame
void disconnectFromElementDataSignals()
boost::signalslib::signal< void(DtObserver *, std::string)> signal_paperMapLayerChanged
Signal called when the observer's paper map layer is changed.
Definition DtObserver.h:608
bool myAttachmentDelayed
Definition DtObserver.h:787
void setLinearUnscaledSpeedGain(int gain, bool forwardToObserverModeManager=true)
virtual ~DtObserver()
DTOR.
void setSpeedScalingMode(DtObserverObject::SpeedScalingMode mode, bool forwardToObserverModeManager=true)
boost::signalslib::signal< void(DtObserver *, bool)> signal_isFrustumBasedViewMagnificationEnabledChanged
Boost signal called when the observer's use of an effective zoom calculation has changed.
Definition DtObserver.h:621
DtVector rotationalVelocity() const
boost::signalslib::signal< void(DtObserver *, double)> signal_modelScaleFactorChanged
Boost signal called when the model scale factor is changed.
Definition DtObserver.h:590
void setTerrainLodScale(double terrainLodScale)
Set this observer's LOD Scale (used for terrain visuals).
void slot_observerModeSpeedScalingMslModeOffsetChanged(int observerMode)
bool myConstrainToCenter
Definition DtObserver.h:772
void slot_observerModeSpeedScalingModeChanged(int observerMode)
bool myAttachedYawDelayedFlag
Definition DtObserver.h:792
void slot_observerModeModelScaleFactorChanged(int observerMode)
void setOrientation(double psi, double theta, double phi)
Go to this orientation.
bool isAttached(DtElementID) const
Returns true if the element is attached as either a primary or secondary element.
std::vector< DtUniqueID > myCurrentAttachments
Definition DtObserver.h:767
virtual void slot_onElementsAdded(const DtElementData::ElementList &elements)
Called by signal whenever elements are added.
void setPrimaryAttachment(DtElementID element)
void setMaxModelScaleFactor(double maxModelScaleFactor, bool forwardToObserverModeManager=true)
void slot_terrainCleared()
reset observer
int orbitSpeedGain() const
Get the orbit speed gain.
float myDelayedAttachedZValue
Definition DtObserver.h:797
void connectToElementDataSignals()
float myDelayedAttachedYawValue
Definition DtObserver.h:798
virtual DtVector observerCameraUp(bool includeShake=true) const
Get a vector representation of the observer * camera up axis.
double observerHeightAboveTerrain() const
float myEntityLodScale
Definition DtObserver.h:780
bool attachmentHas3DCockpit() const
void setPartAttachment(int partId)
bool constrainToCenter() const
void setNorthType(DtObserverObject::NorthType northType, bool forwardToObserverModeManager=true)
Sets the current north type.
void slot_observerModeLinearScaledSpeedGainChanged(int observerMode)
DtUniqueID myLastSingleAttached
Definition DtObserver.h:769
const std::string & name() const
Get the configuration name.
void setAttachedRoll(double phi)
bool myOrientToTargetConstraint
Definition DtObserver.h:771
makArchives::DtObserverStateRecord getCachedObserverStateRecord() const
void slot_observerModeModelSetChanged(int observerMode)
void slot_observerModeRotationSpeedGainChanged(int observerMode)
void setViewMagnification(double magnficationFactor)
Set this observer's view magnification.
DtObserver(DtDe &de, DtAgentManagerInterface &sceneInterface, const DtObserverConfiguration &config)
CTOR.
bool hasInitialLocation() const
bool getUniqueIdsFromDisplayNames(const std::set< std::string > &displayNamesIn, std::vector< DtUniqueID > &idsOut) const
bool myAttachedPitchDelayedFlag
Definition DtObserver.h:793
boost::signalslib::signal< void(DtObserver *, double)> signal_viewMagnificationChanged
Boost signal called when the observer's view magnification is changed.
Definition DtObserver.h:596
static const double theMoveStepSize
Definition DtObserver.h:753
void setAttachmentHas3DCockpit(bool cockpit)
double entityLodScale() const
Get this observer's LOD scale (used for entities).
bool hideModelOnAttach() const
virtual DtVector observerPlatformUp() const
void slot_observerModeColorControlInvertChanged(int observerMode)
void setAttachedY(double y)
DtObserverObject::AttachType attachType() const
void slot_observerModeColorControlContrastChanged(int observerMode)
void setConstrainToCenter(bool trueFalse)
constrain to point to center of earth (0.0.0)
void setEntityLodScale(double entityLodScale)
Set this observer's LOD Scale (used for entities).
virtual DtVector observerCameraRight(bool includeShake=true) const
Get a vector representation of the observer * camera right axis.
float myDelayedAttachedRollValue
Definition DtObserver.h:800
void updateGlobalTerrainFlag(bool flag)
double viewResolution() const
Get the observer's resolution (2D).In meters per pixel.
bool myHasInitialLocation
Definition DtObserver.h:777
boost::signalslib::signal< void(DtSensor *)> signal_sensorChanged
Definition DtObserver.h:630
void setFromRecord(const makArchives::DtObserverStateRecord &rec)
Fill out this object's state from the record.
DtObserverObjectAgent & agent()
Get the observer object agent.
boost::signalslib::signal< void(DtObserver *, DtObserverObject::DtLodCenterSettings)> signal_lodCenterSettingsChanged
Boost signal called when the observer's LOD Center Settings has changed.
Definition DtObserver.h:605
boost::signalslib::signal< void(DtObserver *, DtObserverObject::SpeedScalingMode scalingMode)> signal_speedScalingModeChanged
Signal emitted when an observer's speed scaling mode changes.
Definition DtObserver.h:613
void setSpeedScalingMslModeOffset(double offset, bool forwardToObserverModeManager=true)
int linearSpeedGain() const
DtDe & de()
Get the observer's DtDe.
Definition DtObserver.h:52
void slot_observerModeSensorChanged(int observerMode)
virtual void setColorControlBrightness(double value, bool forwardToObserverModeManager=true)
Sets the current color control brightness value. Defines the grayscale brightness in the image.
bool attached() const
Check if the observer is attached to elements.
double modelScaleFactor() const
double calcLinearSpeed() const
void slot_observerModeNorthTypeChanged(int observerMode)
double terrainLodScale() const
Get this observer's LOD scale (used for terrain visuals).
void slot_observerModeIs2DChanged(int observerMode)
DtTaitBryan observerCameraOrientation(bool includeShake=true) const
void getObserverOffsetVector(double &x, double &y, double &z) const
Needed public for CIGI request position packets.
DtObserverObject::AttachType myAttachType
Definition DtObserver.h:766
virtual void setColorControlEnabled(bool enabled, bool forwardToObserverModeManager=true)
Sets the color control enabled value. Defines if the color control should be used for an observer mod...
virtual DtVector observerCameraFront(bool includeShake=true) const
virtual void synchronize()
bool orientToTargetConstraint() const
bool myHideModelOnAttach
Definition DtObserver.h:764
makArchives::DtObserverSettingsRecord::AttachType convertObserverAttachType(DtObserverObject::AttachType type) const
bool myConnectedToElementDataSignals
Definition DtObserver.h:773
void setIsFrustumBasedViewMagnificationEnabled(bool enabled, bool forwardToObserverModeManager=true)
Set whether or not an effective zoom is calculated.
bool getRecord(makArchives::DtObserverSettingsRecord &recOut) const
Returns true if recOut was filled with all the setting of this object.
std::string paperMapLayer() const
Get this observer's paper map layer.
void setLocalModelScalingAmount(float amount)
void setTopographicOrientation(double psi, double theta, double phi)
Go to this topographic orientation.
double maxModelScaleFactor() const
bool observerObjectMoving() const
Check to see if the observer object is moving.
const ElementList & primaryAttachments() const
Get the primary attachments.
void setRotationSpeed(double speed)
const DtObserverConfiguration & configuration() const
bool projectionIs2D() const
float myDelayedAttachedXValue
Definition DtObserver.h:795
boost::signalslib::signal< void(DtObserver *, int)> signal_linearUnscaledSpeedGainChanged
Boost signal called when the unscaled linear speed gain is changed.
Definition DtObserver.h:578
virtual void setSensor(const std::string &sensorName)
Set the sensor to use on channels rendering with this observer.
void setAttachType(DtObserverObject::AttachType type)
boost::signalslib::signal< void(DtObserver *, std::string)> signal_modelScaleTypeChanged
Boost signal called when the model scale type is changed.
Definition DtObserver.h:593
void setName(const std::string &name)
void slot_observerModeColorControlEnabledChanged(int observerMode)
DtObserverConfiguration * myConfiguration
Definition DtObserver.h:758
void slot_observerModeLinearUnscaledSpeedGainChanged(int observerMode)
virtual void setColorControlInvert(bool enabled, bool forwardToObserverModeManager=true)
Sets the current color control invert value. Defines if the grayscale computed output should be inver...
void slot_oceanLayerDeleted(const std::string &)
boost::signalslib::signal< void(DtObserver *, int)> signal_linearScaledSpeedGainChanged
Boost signal called when the scaled linear speed gain is changed.
Definition DtObserver.h:575
std::vector< DtUniqueID > mySecondaryAttachments
Definition DtObserver.h:768
boost::signalslib::signal< void(DtObserver *, int)> signal_gainPrecisionChanged
Boost signal called when the gain precision is changed.
Definition DtObserver.h:587
void slot_observerModeGainPrecisionChanged(int observerMode)
boost::signalslib::signal< void(DtObserver *, int)> signal_orbitSpeedGainChanged
Boost signal called when the orbit speed gain is changed.
Definition DtObserver.h:584
void setObserverOffsetVector(double x, double y, double z)
void getOrientation(double &psi, double &theta, double &phi) const
Get the observer's orientation from the local observer object.
virtual void setColorControlContrast(double value, bool forwardToObserverModeManager=true)
Sets the current color control contrast value. Defines the grayscale contrast in the image.
DtVector linearVelocity() const
boost::signalslib::signal< void(DtObserver *, int)> signal_rotationSpeedGainChanged
Boost signal called when the rotation speed gain is changed.
Definition DtObserver.h:581
const DtObserverObjectAgent & agent() const
Get the terrain patch object agent.
void setAttachedX(double x)
void getDisplayNamesFromUniqueIds(const std::vector< DtUniqueID > &idsIn, std::set< std::string > &displayNamesOut) const
void slot_observerModeColorControlColorMixChanged(int observerMode)
void setPaperMapLayer(const std::string &paperMapLayer)
Set the observer's paper map layer.
float myDelayedAttachedPitchValue
Definition DtObserver.h:799
DtVector observerCameraPosition() const
Get the position of the observer's camera.
bool myAttachedRollDelayedFlag
Definition DtObserver.h:794
void setViewResolutionFromHeightAboveTerrain(double hat)
Set the observer's resolution (2D). In meters per pixel.
void slot_observerModeAdded(int observerMode)
void setProjectionIs2D(bool is2d)
boost::signalslib::signal< void(DtObserver *, double)> signal_terrainLodScaleChanged
Boost signal called when the observer's LOD Distance Scale used for terrain visuals is changed.
Definition DtObserver.h:599
void slot_observerModeKeyMapChanged(int observerMode)
DtVector location() const
Get the observer's position from the remote object (no observer camera offset).
void rotateUnit(const DtTaitBryan &rotation)
double rotationSpeed() const
Agent class for the scene object class: DtObserverObject.
Definition DtObserverObjectAgent.hpp:27
AttachType
Definition DtObserverObject.h:43
NorthType
Definition DtObserverObject.h:63
SpeedScalingMode
Definition DtObserverObject.h:57
The ocean layer is a type of terrain layer which contains information about an area that should be re...
Definition DtOceanLayer.h:26
Class to manage disconnection of boost connections on deletion.
Definition DtSignalConnectionManager.h:21
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
DtUniqueID DtElementID
Definition DtUniqueID.h:23
unsigned long long DtUniqueID
Definition DtUniqueID.h:19
Definition DtObserverObject.h:72
#define DT_DLL_VRVCORE
Definition vrvCore.h:20