|
VR-Engage
2.2
|
DtBinocularsZoomOverlay extends the basic binoculars overlay with functionality specific to maximum zoom level indication. The overlay is only visible when the binoculars are at their maximum zoom level, providing a visual indication to the user that they cannot zoom in any further. It inherits core functionality from the DtBinocularsOverlay class.
#include <vreBinocularsZoomOverlay.h>
Public Member Functions | |
| DtBinocularsZoomOverlay () | |
| virtual | ~DtBinocularsZoomOverlay () override |
| virtual bool | initialize (makVre::DtPlayerStation *player, makVre::DtInitTable &config) override |
| virtual bool | postInitialize () override |
| virtual void | tick (double dt) override |
| virtual bool | isOverlayVisible () override |
| virtual const char * | type () const override |
Public Member Functions inherited from makVre::DtBinocularsOverlay | |
| DtBinocularsOverlay (const std::string &className="DtBinocularsOverlay") | |
| virtual | ~DtBinocularsOverlay () override |
| virtual void | shutdown () override |
| void | setReticleHeight (float height) |
| void | setVisible (bool visible) |
Public Member Functions inherited from makVre::DtQtQuickOverlay | |
| DtQtQuickOverlay () | |
| virtual | ~DtQtQuickOverlay () override |
| virtual void | setRoot (QQuickItem *root) |
| virtual void | initdoc (QQuickItem *root) |
| virtual DtVreMessageResult | handleEnterPlayerState (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleExitPlayerState (DtVreMessage *msg) |
| virtual void | setVisibility (bool visible) |
| virtual bool | isVisible () |
| virtual void | setMenuState (bool on) |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
Additional Inherited Members | |
Protected Member Functions inherited from makVre::DtBinocularsOverlay | |
| virtual void | computeReticleDimensions () |
| virtual void | slot_channelConfigurationModified (const std::string &deName, const std::string &winName, const std::string &oldChannelName, const makVrv::DtChannelConfiguration &config) |
| virtual void | slot_channelDestroyed (makVrv::DtChannelManager *channelManager, makVrv::DtChannel *channel) |
Protected Member Functions inherited from makVre::DtQtQuickOverlay | |
| virtual void | updateVals (double dt) |
| virtual void | disconnect () |
| virtual bool | buildConnections (DtInitTable &connections) |
| virtual void | onVisibilityAttributeChanged (bool on) |
| virtual void | removeModelSetAndSkyFromChannel () |
| virtual void | restoreModelSetAndSkyToChannel () |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
Protected Attributes inherited from makVre::DtBinocularsOverlay | |
| float | myReticleTotalMils |
| bool | myUsePostEffect |
| makVrv::DtOsgChannel * | myChannel |
| makVre::DtInitTable | myConfig |
Protected Attributes inherited from makVre::DtQtQuickOverlay | |
| DtInitTable | myBindQmlPropertyToAttribute |
| QQuickItem * | myRoot |
| std::string | myTargetWindow |
| std::vector< Connection > | myConnections |
| std::string | myQmlFile |
| std::string | myQmlDataItemName |
| bool | myIsInMenuState |
| bool | myCachedVisibility |
| DtAttributeHandleType< bool > | myVisibilityAttribute |
| bool | myRenderOverlayOnly |
| bool | myWantSceneHidden |
| makVrv::DtOsgChannel * | myChannel |
| makVrv::DtObserverObject * | myObserver |
| QObject | myQObject |
| bool | myHasTickFunction |
Protected Attributes inherited from makVre::DtPlayerComponent | |
| std::string | myName |
| DtInitTable | myConfig |
| DtPlayerStation * | myPlayer |
| makVrv::DtDe * | myDe |
| DtEntityResolver * | myResolver |
| DtAttributeCallbackManager | myAttributeCallbacks |
| makVre::DtBinocularsZoomOverlay::DtBinocularsZoomOverlay | ( | ) |
Constructor for DtBinocularsZoomOverlay.
Initializes the component with default settings
|
overridevirtual |
Virtual destructor for DtBinocularsZoomOverlay.
|
overridevirtual |
Initializes the binoculars zoom overlay component.
| player | Pointer to the player station this component belongs to |
| config | Configuration table containing overlay settings |
Forwards initialization to the base class and performs any specialized setup
Reimplemented from makVre::DtBinocularsOverlay.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Performs post-initialization after all components are initialized.
Completes initialization by calling the base class post-initialize
Reimplemented from makVre::DtBinocularsOverlay.
|
overridevirtual |
Called every frame to update the overlay state.
| dt | Delta time since the last frame in seconds |
Updates overlay visibility and other state based on current zoom level
Reimplemented from makVre::DtBinocularsOverlay.
|
overridevirtual |
Determines if the zoom overlay should be visible.
Checks if base binoculars overlay is visible and if the current view magnification is at the maximum allowed value
Reimplemented from makVre::DtBinocularsOverlay.
|
overridevirtual |
Returns the type identifier for this component.
Reimplemented from makVre::DtBinocularsOverlay.