VR-Forces 5.0.1 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) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvOsg/vrvOsg.h>
16 
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtOsgObserverObject;
22  class DtOverlayRenderer;
23 
33  {
34  public:
36 
38  virtual ~DtOsgSensorViewOverlay();
39 
41  virtual void initialize(const std::string& windowName, const std::string& channelName);
42 
44  virtual void update(const std::string& observerName,
45  const DtSensorFieldOfViewData& state);
46 
47  protected:
48 
52  DtOsgSensorViewOverlaySectionCreators& sectionCreators);
53 
54  protected:
55 
56  std::string myWindowName;
57  std::string myChannelName;
58 
61  int myXOffset;
62  int myYOffset;
64  std::list<DtOsgSensorViewOverlaySection*> myOverlaySections;
65 
66  };
67 
74  {
75  public:
76 
80  static void registerInstance(DtDe& de,
81  DtOsgSensorViewOverlaySectionCreators* sectionCreators = 0);
82 
86  static void defaultOverlaySectionCreators(DtOsgSensorViewOverlaySectionCreators& sectionCreators);
87 
90  virtual const DtOsgSensorViewOverlaySectionCreators& overlaySectionCreators() const;
91 
94  virtual void setOverlaySectionCreators(const DtOsgSensorViewOverlaySectionCreators&);
95 
97  virtual DtSensorViewOverlay* create(DtDe& de);
98 
101 
103  static void deleteOverlaySectionCreators(DtOsgSensorViewOverlaySectionCreators& sectionCreators);
104  protected:
105 
109  };
110 }
int myXOffset
Definition: DtOsgSensorViewOverlay.h:61
int myChannelWidth
Definition: DtOsgSensorViewOverlay.h:59
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
std::list< DtOsgSensorViewOverlaySection * > myOverlaySections
The list of overlay sections.
Definition: DtOsgSensorViewOverlay.h:64
DtOsgSensorViewOverlaySectionCreators mySectionCreators
The list of overlay section creators to be used when creating a new sensor view overlay.
Definition: DtOsgSensorViewOverlay.h:108
Contains the data defining the current state of a sensor field of view.
Definition: DtSensorFieldOfViewData.h:23
std::list< DtOsgSensorViewOverlaySectionCreator * > DtOsgSensorViewOverlaySectionCreators
Definition: DtOsgSensorViewOverlaySection.h:91
int myYOffset
Definition: DtOsgSensorViewOverlay.h:62
std::string myChannelName
Definition: DtOsgSensorViewOverlay.h:57
int myChannelHeight
Definition: DtOsgSensorViewOverlay.h:60
DtOsgSensorViewOverlay is responsible for creating and updating the overlay information on a sensor v...
Definition: DtOsgSensorViewOverlay.h:32
std::string myWindowName
Definition: DtOsgSensorViewOverlay.h:56
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:70
Definition: DtSensorViewOverlay.h:54
Responsible for creating new DtOsgSensorViewOverlays. Provides a list of overlay section creators to ...
Definition: DtOsgSensorViewOverlay.h:72

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)