VR-Forces 4.10 Class Documentation
 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) 2020 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  unsigned int myInitialChannelWidth;
68  unsigned int myInitialChannelHeight;
69 
70  unsigned int myXOffset;
71  unsigned int myYOffset;
72  };
73 
77  public DtVirtualBaseClass
78  {
79  public:
80 
82  virtual DtOsgSensorViewOverlaySection* create(DtDe& de) = 0;
83 
85  virtual DtOsgSensorViewOverlaySectionCreator* clone() const = 0;
86 
89  };
90 
91  typedef std::list<DtOsgSensorViewOverlaySectionCreator*> DtOsgSensorViewOverlaySectionCreators;
92 }
93 
unsigned int myChannelHeight
Definition: DtOsgSensorViewOverlaySection.h:66
Virtual base class.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned int myInitialChannelHeight
Definition: DtOsgSensorViewOverlaySection.h:68
Responsible for creating new DtOsgSensorViewOverlaySections.
Definition: DtOsgSensorViewOverlaySection.h:76
DtOsgSensorViewOverlaySection is an abstract base class representing a class responsible for creating...
Definition: DtOsgSensorViewOverlaySection.h:31
makVrv::DtDe & myDe
Definition: DtOsgSensorViewOverlaySection.h:64
unsigned int myInitialChannelWidth
Definition: DtOsgSensorViewOverlaySection.h:67
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
Contains makVrv::DtVirtualBaseClass class.
unsigned int myXOffset
Definition: DtOsgSensorViewOverlaySection.h:70
unsigned int myYOffset
Definition: DtOsgSensorViewOverlaySection.h:71
unsigned int myChannelWidth
Definition: DtOsgSensorViewOverlaySection.h:65
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
This abstract base class defines the interface for OS-specific keyboard and mouse event listeners...
Definition: DtOsgObserverObject.h:45
The DtOverlayRenderer implements the overlay concept.
Definition: DtOverlayRenderer.h:23

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)