VR-Engage  2.3
Loading...
Searching...
No Matches
vreOsgSensorViewCompassOverlaySection.h
Go to the documentation of this file.
1//! \file
2//! \brief Defines the VR-Engage compass overlay section and its creator.
3
4#pragma once
6
7#include <vrvOsg/DtOsgSensorViewCompassOverlaySection.h>
8#include <vrvCore/DtDisplayUnitsSettingsManager.h>
9
10namespace makVre
11{
12//! \brief Compass overlay that shows north, entity heading, and relative azimuth.
13//!
14//! Uses the sensor observer heading and the host scene object's orientation to
15//! update the compass indicators in the sensor view.
16//! \ingroup vrePlayerStation
17class PLAYERSTATION_DLL DtVreOsgSensorViewCompassOverlaySection : public makVrv::DtOsgSensorViewCompassOverlaySection
18{
19public:
20 //! \brief Name used to register and identify this overlay section.
21 static const std::string SectionName;
22
23 //! \brief Allows the creator to construct this section.
25
26 //! \brief Destroys the compass overlay section.
28
29 //! \brief Returns the registered name of this overlay section.
30 //! \return Reference to the section name.
31 virtual const std::string& sectionName() const override;
32
33 //! \brief Updates compass headings and the relative azimuth scale.
34 //! \param observer Sensor observer whose heading is displayed.
35 //! \param state Sensor field-of-view data identifying the host entity.
36 //!
37 //! The north indicator follows the observer heading. The entity indicator
38 //! and azimuth scale use the host scene object's heading.
39 virtual void update(const makVrv::DtOsgObserverObject& observer,
40 const makVrv::DtSensorFieldOfViewData& state) override;
41
42protected:
43 //! \brief Creates the overlay section for a display engine.
44 //! \param de Display engine used by the overlay section.
46};
47
48
49//! \brief Creates VR-Engage compass overlay sections.
50//!
51//! The creator registers the VreCompassOverlay section with the sensor-view
52//! overlay system.
53//! \ingroup vrePlayerStation
55 public makVrv::DtOsgSensorViewOverlaySectionCreator
56{
57 //! \brief Creates a compass overlay section for a display engine.
58 //! \param de Display engine used by the new section.
59 //! \return Newly allocated overlay section, managed by the sensor-view overlay.
60 virtual makVrv::DtOsgSensorViewOverlaySection* create(makVrv::DtDe& de) override;
61
62
63 //! \brief Creates a copy of this creator.
64 //! \return Newly allocated creator. The caller is responsible for deleting it.
65 virtual makVrv::DtOsgSensorViewOverlaySectionCreator* clone() const override;
66
67 //! \brief Destroys the creator.
69};
70} // namespace makVre
Creates VR-Engage compass overlay sections.
Definition vreOsgSensorViewCompassOverlaySection.h:56
virtual ~DtVreOsgSensorViewCompassOverlaySectionCreator() override
Destroys the creator.
virtual makVrv::DtOsgSensorViewOverlaySectionCreator * clone() const override
Creates a copy of this creator.
virtual makVrv::DtOsgSensorViewOverlaySection * create(makVrv::DtDe &de) override
Creates a compass overlay section for a display engine.
virtual ~DtVreOsgSensorViewCompassOverlaySection() override
Destroys the compass overlay section.
friend class DtVreOsgSensorViewCompassOverlaySectionCreator
Allows the creator to construct this section.
Definition vreOsgSensorViewCompassOverlaySection.h:24
virtual void update(const makVrv::DtOsgObserverObject &observer, const makVrv::DtSensorFieldOfViewData &state) override
Updates compass headings and the relative azimuth scale.
static const std::string SectionName
Name used to register and identify this overlay section.
Definition vreOsgSensorViewCompassOverlaySection.h:21
DtVreOsgSensorViewCompassOverlaySection(makVrv::DtDe &de)
Creates the overlay section for a display engine.
virtual const std::string & sectionName() const override
Returns the registered name of this overlay section.
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
!
Definition glsVreMessageUtil.h:50
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.