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) 2023 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 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtOsgObserverObject;
22  class DtOverlayRenderer;
23  class DtSensorFieldOfViewData;
24 
32  {
33  public:
35 
38 
40  virtual void initialize( DtOverlayRenderer& overlayRenderer,
41  unsigned int channelWidth, unsigned int channelHeight, unsigned int channelXOffset,
42  unsigned int channelYOffset);
43 
45  virtual void setChannelSize( unsigned int channelWidth, unsigned int channelHeight,
46  unsigned int channelXOffset, unsigned int channelYOffset );
47 
50  virtual double currentToInitialSizeRatio() const;
51 
53  virtual void update(const DtOsgObserverObject& observer,
54  const DtSensorFieldOfViewData& state) = 0;
55 
56  protected:
57 
61 
62  protected:
63 
65  unsigned int myChannelWidth;
66  unsigned int myChannelHeight;
67 
68  unsigned int myBaseChannelWidth;
69  unsigned int myBaseChannelHeight;
70 
71  unsigned int myXOffset;
72  unsigned int myYOffset;
73  };
74 
78  public DtVirtualBaseClass
79  {
80  public:
81 
83  virtual DtOsgSensorViewOverlaySection* create(DtDe& de) = 0;
84 
86  virtual DtOsgSensorViewOverlaySectionCreator* clone() const = 0;
87 
90  };
91 
92  typedef std::list<DtOsgSensorViewOverlaySectionCreator*> DtOsgSensorViewOverlaySectionCreators;
93 }
94 
unsigned int myChannelHeight
Definition: DtOsgSensorViewOverlaySection.h:66
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:77
DtOsgSensorViewOverlaySection is an abstract base class representing a class responsible for creating...
Definition: DtOsgSensorViewOverlaySection.h:31
makVrv::DtDe & myDe
Definition: DtOsgSensorViewOverlaySection.h:64
Contains the data defining the current state of a sensor field of view.
Definition: DtSensorFieldOfViewData.h:23
std::list< DtOsgSensorViewOverlaySectionCreator * > DtOsgSensorViewOverlaySectionCreators
Definition: DtOsgSensorViewOverlaySection.h:92
Contains makVrv::DtVirtualBaseClass class.
unsigned int myXOffset
Definition: DtOsgSensorViewOverlaySection.h:71
unsigned int myYOffset
Definition: DtOsgSensorViewOverlaySection.h:72
unsigned int myChannelWidth
Definition: DtOsgSensorViewOverlaySection.h:65
unsigned int myBaseChannelWidth
Definition: DtOsgSensorViewOverlaySection.h:68
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:72
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:69
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:69

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)