VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgSensorViewOverlaySection.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 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 windowWidth, unsigned int windowHeight);
42 
44  virtual void setWindowSize(unsigned int windowWidth, unsigned int windowHeight);
45 
48  virtual double currentToInitialSizeRatio() const;
49 
51  virtual void update(const DtOsgObserverObject& observer,
52  const DtSensorFieldOfViewData& state) = 0;
53 
54  protected:
55 
59 
60  protected:
61 
63  unsigned int myWindowWidth;
64  unsigned int myWindowHeight;
65  unsigned int myInitialWindowWidth;
66  unsigned int myInitialWindowHeight;
67  };
68 
72  public DtVirtualBaseClass
73  {
74  public:
75 
77  virtual DtOsgSensorViewOverlaySection* create(DtDe& de) = 0;
78 
80  virtual DtOsgSensorViewOverlaySectionCreator* clone() const = 0;
81  };
82 
83  typedef std::list<DtOsgSensorViewOverlaySectionCreator*> DtOsgSensorViewOverlaySectionCreators;
84 }
85 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)