VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgSensorViewOverlaySection.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>
14 #include <vrvCore/DtUniqueID.h>
16 #include <list>
17 #include <string>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtOsgObserverObject;
23  class DtOverlayRenderer;
24  class DtSensorFieldOfViewData;
25 
33  {
34  public:
36 
39 
41  virtual void initialize( DtOverlayRenderer& overlayRenderer,
42  unsigned int channelWidth, unsigned int channelHeight, unsigned int channelXOffset,
43  unsigned int channelYOffset);
44 
46  virtual void setChannelSize( unsigned int channelWidth, unsigned int channelHeight,
47  unsigned int channelXOffset, unsigned int channelYOffset );
48 
51  virtual double currentToInitialSizeRatio() const;
52 
54  virtual void update(const DtOsgObserverObject& observer,
55  const DtSensorFieldOfViewData& state) = 0;
56 
59  virtual const std::string& sectionName() const = 0;
60 
61  protected:
62 
66 
67  protected:
68 
70  unsigned int myChannelWidth;
71  unsigned int myChannelHeight;
72 
73  unsigned int myBaseChannelWidth;
74  unsigned int myBaseChannelHeight;
75 
76  unsigned int myXOffset;
77  unsigned int myYOffset;
78  };
79 
83  public DtVirtualBaseClass
84  {
85  public:
86 
88  virtual DtOsgSensorViewOverlaySection* create(DtDe& de) = 0;
89 
91  virtual DtOsgSensorViewOverlaySectionCreator* clone() const = 0;
92 
95  };
96 
97  typedef std::list<DtOsgSensorViewOverlaySectionCreator*> DtOsgSensorViewOverlaySectionCreators;
98 }
99 
unsigned int myChannelHeight
Definition: DtOsgSensorViewOverlaySection.h:71
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Responsible for creating new DtOsgSensorViewOverlaySections.
Definition: DtOsgSensorViewOverlaySection.h:82
DtOsgSensorViewOverlaySection is an abstract base class representing a class responsible for creating...
Definition: DtOsgSensorViewOverlaySection.h:32
makVrv::DtDe & myDe
Definition: DtOsgSensorViewOverlaySection.h:69
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
Contains makVrv::DtVirtualBaseClass class.
unsigned int myXOffset
Definition: DtOsgSensorViewOverlaySection.h:76
unsigned int myYOffset
Definition: DtOsgSensorViewOverlaySection.h:77
unsigned int myChannelWidth
Definition: DtOsgSensorViewOverlaySection.h:70
unsigned int myBaseChannelWidth
Definition: DtOsgSensorViewOverlaySection.h:73
Contains makVrv::DtUniqueID type.
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
This abstract base class defines the interface for OS-specific keyboard and mouse event listeners...
Definition: DtOsgObserverObject.h:49
unsigned int myBaseChannelHeight
Definition: DtOsgSensorViewOverlaySection.h:74
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:67

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)