This is the sole component permitted to send WindowOperationMessage. It reacts to messages from DtDroneControlLogic and DtLauncherControlLogic and to attribute changes published by those components in order to create, modify, and destroy stealth channels.
#include <remoteSensorViewLogic.h>
◆ DtRemoteSensorViewLogic()
| makVre::DtRemoteSensorViewLogic::DtRemoteSensorViewLogic |
( |
| ) |
|
◆ ~DtRemoteSensorViewLogic()
| virtual makVre::DtRemoteSensorViewLogic::~DtRemoteSensorViewLogic |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
Initializes the component.
- Parameters
-
| player | Pointer to the player station that owns this component |
| config | Configuration table with component settings |
- Returns
- True if initialization was successful, false otherwise
Called when the component is first created during player station initialization. This method performs initial setup and calls initializeStateAttributes(). Components should override this method to perform type-specific initialization, but must call the base class implementation first.
Reimplemented from makVre::DtPlayerComponent.
References makVre::DtPlayerComponent::player().
◆ postInitialize()
| virtual bool makVre::DtRemoteSensorViewLogic::postInitialize |
( |
| ) |
|
|
overridevirtual |
Performs post-initialization setup.
- Returns
- True if post-initialization was successful, false otherwise
Called after all components have been created and initialized. This is when required but not owned state attributes can be looked up in the state, or dependent components can be located. Components can use this phase to establish connections with other components in the player station.
Reimplemented from makVre::DtPlayerComponent.
◆ tick()
| virtual void makVre::DtRemoteSensorViewLogic::tick |
( |
double | dt | ) |
|
|
overridevirtual |
Updates the component.
- Parameters
-
| dt | Time in seconds since the last tick |
Called once per frame to update the component's state. All concrete component classes must implement this method.
Implements makVre::DtPlayerComponent.
◆ shutdown()
| virtual void makVre::DtRemoteSensorViewLogic::shutdown |
( |
| ) |
|
|
overridevirtual |
Shuts down the component.
Called when the player station is shutting down. Components should override this method to release resources and perform cleanup operations.
Reimplemented from makVre::DtPlayerComponent.
◆ type()
| virtual const char * makVre::DtRemoteSensorViewLogic::type |
( |
| ) |
const |
|
overridevirtual |
Gets the component type identifier.
- Returns
- Reference to the component type string
Returns the unique type identifier for this component class. The type string is used by the component system to identify and instantiate components based on role configuration. Each component class should return a consistent, descriptive type name (e.g., "DtDriverControlLogic", "DtObserverUpdater").
- Note
- This is a pure virtual method that must be implemented by all derived classes.
Implements makVre::DtPlayerComponent.
◆ openRemoteSensorView()
| virtual void makVre::DtRemoteSensorViewLogic::openRemoteSensorView |
( |
const DtEntityIdentifier & | viewEntity | ) |
|
|
virtual |
◆ closeRemoteSensorView()
| virtual void makVre::DtRemoteSensorViewLogic::closeRemoteSensorView |
( |
| ) |
|
|
virtual |
◆ toggleRemoteViewViewport()
| virtual void makVre::DtRemoteSensorViewLogic::toggleRemoteViewViewport |
( |
double | val | ) |
|
|
virtual |
◆ setRemoteViewZoomLevel()
| virtual void makVre::DtRemoteSensorViewLogic::setRemoteViewZoomLevel |
( |
double | val | ) |
|
|
virtual |
◆ scopeChannelName()
| virtual std::string makVre::DtRemoteSensorViewLogic::scopeChannelName |
( |
| ) |
const |
|
virtual |
◆ scopeExists()
| virtual bool makVre::DtRemoteSensorViewLogic::scopeExists |
( |
DtEntityIdentifier & | ownshipId, |
|
|
std::string & | channelName ) |
|
protectedvirtual |
◆ handleOpenDroneRemoteView()
◆ handleCloseDroneRemoteView()
◆ handleSetDroneRemoteViewVisibility()
◆ handleBlankDroneRemoteView()
◆ handleOpenLauncherRemoteView()
◆ handleCloseLauncherRemoteView()
◆ handleMenuActionMessage()
◆ handleEntityRemoved()
◆ handleWindowCreated()
Applies the configured drone camera offset when its remote channel is created.
◆ nextSensor()
| void makVre::DtRemoteSensorViewLogic::nextSensor |
( |
double | val | ) |
|
|
protected |
◆ activeViewportKey()
| std::string makVre::DtRemoteSensorViewLogic::activeViewportKey |
( |
| ) |
const |
|
protected |
Returns the viewport configuration key matching the currently open remote view.
- Returns
"drone" when a drone view is active, otherwise "launcher".
◆ applyCurrentViewport()
| void makVre::DtRemoteSensorViewLogic::applyCurrentViewport |
( |
WindowOperationMessage * | msg, |
|
|
const std::string & | key ) |
|
protected |
Applies the currently selected viewport rectangle for key to msg.
Does nothing if no viewport configurations were supplied for key.
- Parameters
-
| msg | Message to populate. Must not be null. Ownership is not transferred. |
| key | Viewport configuration key, typically "drone" or "launcher". |
◆ publishViewportAttributes()
| void makVre::DtRemoteSensorViewLogic::publishViewportAttributes |
( |
const ChannelViewport & | viewport | ) |
|
|
protected |
Publishes viewport edges as screen-percentage player attributes.
- Parameters
-
| viewport | Viewport rectangle to publish. |
◆ onMissileIdChanged()
| void makVre::DtRemoteSensorViewLogic::onMissileIdChanged |
( |
DtEntityIdentifier | id | ) |
|
|
protected |
◆ onMissileTargetIdChanged()
| void makVre::DtRemoteSensorViewLogic::onMissileTargetIdChanged |
( |
makVrv::DtUniqueID | id | ) |
|
|
protected |
◆ onMissileTargetChanged()
| void makVre::DtRemoteSensorViewLogic::onMissileTargetChanged |
( |
DtVector | location | ) |
|
|
protected |
◆ onDroneCurrentSensorChanged()
| void makVre::DtRemoteSensorViewLogic::onDroneCurrentSensorChanged |
( |
int | sensor | ) |
|
|
protected |
◆ computeLauncherId()
| DtEntityIdentifier makVre::DtRemoteSensorViewLogic::computeLauncherId |
( |
| ) |
const |
|
protected |
◆ myRemoteViewChannelName
| std::string makVre::DtRemoteSensorViewLogic::myRemoteViewChannelName |
|
protected |
◆ myRemoteViewSensorMode
| std::string makVre::DtRemoteSensorViewLogic::myRemoteViewSensorMode |
|
protected |
◆ myViewportConfigurations
| std::map<std::string, std::vector<ChannelViewport> > makVre::DtRemoteSensorViewLogic::myViewportConfigurations |
|
protected |
◆ myCurrentViewportIndex
| std::map<std::string, int> makVre::DtRemoteSensorViewLogic::myCurrentViewportIndex |
|
protected |
◆ myRemoteViewAttachToMunition
| bool makVre::DtRemoteSensorViewLogic::myRemoteViewAttachToMunition |
|
protected |
◆ myRemoteViewResetTime
| double makVre::DtRemoteSensorViewLogic::myRemoteViewResetTime |
|
protected |
◆ myRemoteViewZoomLevel
| double makVre::DtRemoteSensorViewLogic::myRemoteViewZoomLevel |
|
protected |
◆ myDroneCameraOffset
| DtVector makVre::DtRemoteSensorViewLogic::myDroneCameraOffset |
|
protected |
Camera-relative drone view offset in meters: forward, right, up.
◆ mySensorModes
| std::map<enum SensorViews, std::string> makVre::DtRemoteSensorViewLogic::mySensorModes |
|
protected |
◆ myLastSensorViewMode
| SensorViews makVre::DtRemoteSensorViewLogic::myLastSensorViewMode |
|
protected |
◆ myRemoteViewEntityId
| DtEntityIdentifier makVre::DtRemoteSensorViewLogic::myRemoteViewEntityId |
|
protected |
◆ myCurrentDroneId
| DtEntityIdentifier makVre::DtRemoteSensorViewLogic::myCurrentDroneId |
|
protected |
◆ myCurrentLauncherId
| DtEntityIdentifier makVre::DtRemoteSensorViewLogic::myCurrentLauncherId |
|
protected |
◆ myCurrentMissileId
| DtEntityIdentifier makVre::DtRemoteSensorViewLogic::myCurrentMissileId |
|
protected |
◆ myCurrentMissileMarking
| std::string makVre::DtRemoteSensorViewLogic::myCurrentMissileMarking |
|
protected |
◆ myDroneCurrentSensorAttr
◆ myDroneSensorModesAttr
◆ myDroneCurrentSensorNameAttr
◆ myLauncherMissileIdAttr
◆ myLauncherMissileNameAttr
◆ myMissileTargetLocationAttr
◆ myMissileTargetIdAttr
◆ myMissileInFlightAttr
◆ myLauncherTypeAttr
◆ myLauncherEntityIdAttr
◆ myRemoteViewOpenAttr
◆ myShowDroneFrameAttr
◆ myShowDroneHUDElementsAttr
◆ myShowHumanOverlayAttr
◆ myRemoteViewChannelNameAttr
The documentation for this class was generated from the following file: