VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgSensorViewOverlay.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvOsg/vrvOsg.h>
16 
17 #include <map>
18 #include <string>
19 
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtOsgObserverObject;
25  class DtOverlayRenderer;
26 
36  {
37  public:
39 
40  typedef std::map<std::string, DtOsgSensorViewOverlaySection*> DtOverlaySectionMap;
41 
43  virtual ~DtOsgSensorViewOverlay();
44 
46  virtual void initialize(const std::string& windowName, const std::string& channelName);
47 
49  virtual void update(const std::string& observerName,
50  const DtSensorFieldOfViewData& state);
51 
53  virtual DtOverlaySectionMap& overlaySections();
54 
56  virtual const DtOverlaySectionMap& overlaySections() const;
57 
60  virtual DtOsgSensorViewOverlaySection* findOverlaySection(const std::string& name);
61 
62  protected:
63 
67  DtOsgSensorViewOverlaySectionCreators& sectionCreators);
68 
69  protected:
70 
71  std::string myWindowName;
72  std::string myChannelName;
73 
76  int myXOffset;
77  int myYOffset;
78 
81 
82  };
83 
90  {
91  public:
95  static void registerInstance(DtDe& de,
96  DtOsgSensorViewOverlaySectionCreators* sectionCreators = 0);
97 
101  static void defaultOverlaySectionCreators(DtOsgSensorViewOverlaySectionCreators& sectionCreators);
102 
105  virtual const DtOsgSensorViewOverlaySectionCreators& overlaySectionCreators() const;
106 
109  virtual void setOverlaySectionCreators(const DtOsgSensorViewOverlaySectionCreators&);
110 
112  virtual DtSensorViewOverlay* create(DtDe& de);
113 
116 
118  static void deleteOverlaySectionCreators(DtOsgSensorViewOverlaySectionCreators& sectionCreators);
119  protected:
120 
124  };
125 }
int myXOffset
Definition: DtOsgSensorViewOverlay.h:76
int myChannelWidth
Definition: DtOsgSensorViewOverlay.h:74
DtSensorViewOverlay is responsible for creating and updating the overlay information on a sensor view...
Definition: DtSensorViewOverlay.h:26
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgSensorViewOverlaySection is an abstract base class representing a class responsible for creating...
Definition: DtOsgSensorViewOverlaySection.h:32
std::map< std::string, DtOsgSensorViewOverlaySection * > DtOverlaySectionMap
Definition: DtOsgSensorViewOverlay.h:40
DtOverlaySectionMap myOverlaySections
The map of overlay sections.
Definition: DtOsgSensorViewOverlay.h:80
DtOsgSensorViewOverlaySectionCreators mySectionCreators
The list of overlay section creators to be used when creating a new sensor view overlay.
Definition: DtOsgSensorViewOverlay.h:123
Contains the data defining the current state of a sensor field of view.
Definition: DtSensorFieldOfViewData.h:23
std::list< DtOsgSensorViewOverlaySectionCreator * > DtOsgSensorViewOverlaySectionCreators
Definition: DtOsgSensorViewOverlaySection.h:97
int myYOffset
Definition: DtOsgSensorViewOverlay.h:77
std::string myChannelName
Definition: DtOsgSensorViewOverlay.h:72
int myChannelHeight
Definition: DtOsgSensorViewOverlay.h:75
DtOsgSensorViewOverlay is responsible for creating and updating the overlay information on a sensor v...
Definition: DtOsgSensorViewOverlay.h:35
std::string myWindowName
Definition: DtOsgSensorViewOverlay.h:71
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Definition: DtSensorViewOverlay.h:54
Responsible for creating new DtOsgSensorViewOverlays. Provides a list of overlay section creators to ...
Definition: DtOsgSensorViewOverlay.h:88

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)