VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDeMainWindowEmbeddedOsgWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsgQt/vrvOsgQt.h>
12 #include <vrvOsg/DtOsgWindow.h>
14 
15 class QMainWindow;
16 class QWidget;
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtQtDeMainWindow;
22  class DtOsgAdapterQtWidget;
23  class DtQtOsgKeyAdapter;
24  class DtWindowConfiguration;
25 
29  {
30  public:
31 
36 
39 
41  virtual int width() const;
42 
44  virtual int height() const;
45 
47  virtual int pixelRatio() const;
48 
50  virtual float pixelRatioF() const;
51 
53  virtual int physicalDpiX() const;
54 
56  virtual int physicalDpiY() const;
57 
59  virtual bool isValid() const;
60 
62  virtual void setPosition(int x,int y);
63 
65  virtual void resize(int width, int height);
66 
68  virtual void toggleFullScreen();
69 
71  virtual bool isFullScreen() const;
72 
74  virtual int screenNumber() const;
75 
77  DtOsgAdapterQtWidget* adapterWidget();
78 
82  virtual void mainWindowFullScreenToggle(bool fullScreen);
83 
84  protected:
85 
88  void createAdapterAndContext(QWidget* parent);
89 
90  protected:
91 
95  QWidget* myWidgetHolder;
97  };
98 
103  : public DtWindowCreator
104  {
105  public:
106 
108 
110 
112  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
113  };
114 }
Abstract Base class.
Definition: DtWindow.h:25
QWidget * myWidgetHolder
Definition: DtDeMainWindowEmbeddedOsgWindow.h:95
A creator class for DtWindow instances.
Definition: DtWindow.h:130
DtOsgAdapterQtWidget provides the mechanism for embedding an OSG context into a Qt widget...
Definition: DtOsgAdapterQtWidget.h:47
DtSignalConnectionManager myConnections
Definition: DtDeMainWindowEmbeddedOsgWindow.h:96
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
DtOsgAdapterQtWidget * myAdapter
Definition: DtDeMainWindowEmbeddedOsgWindow.h:93
Contains DLL export macros.
DtQtDeMainWindow * myMainWindow
Definition: DtDeMainWindowEmbeddedOsgWindow.h:92
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Adapter to get Qt key events into OpenSceneGraph.
Definition: DtQtOsgKeyAdapter.h:22
DtDeMainWindowEmbeddedOsgWindowCreator is the creator class for DtDeMainWindowEmbeddedOsgWindow.
Definition: DtDeMainWindowEmbeddedOsgWindow.h:102
DtQtOsgKeyAdapter * myKeyAdapter
Definition: DtDeMainWindowEmbeddedOsgWindow.h:94
Base class to provide boost signal/slot management.
The Qt IG main window embedded OSG window.
Definition: DtDeMainWindowEmbeddedOsgWindow.h:28
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
Contains makVrv::DtOsgView class.
A basic OSG display window, used to get the osg context for a display window.
Definition: DtOsgWindow.h:36
The Qt main window. There will be only one of these per DtDe instance. Note, this window will be dest...
Definition: DtQtDeMainWindow.h:43

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)