VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWindowQt.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtOsgWindowQt_H_
11 #define DtOsgWindowQt_H_
12 
13 #include <vrvOsgQt/vrvOsgQt.h>
14 #include <vrvOsg/DtOsgWindow.h>
15 
17 
18 namespace makVrv
19 {
20  class DtWindowConfiguration;
21  class DtOsgAdapterQtWidget;
22 
26  {
27  public:
28 
31  DtOsgWindowQt(DtDe& de, DtWindowConfiguration& wc, bool fullscreen = false);
32 
34  virtual ~DtOsgWindowQt();
35 
37  virtual int width() const;
38 
40  virtual int height() const;
41 
43  virtual int pixelRatio() const;
44 
46  virtual float pixelRatioF() const;
47 
49  virtual int physicalDpiX() const;
50 
52  virtual int physicalDpiY() const;
53 
55  virtual bool isValid() const;
56 
58  virtual void setPosition(int x,int y);
59 
61  virtual void resize(int width, int height);
62 
63  void changeResolution( int width, int height );
64 
66  virtual void toggleFullScreen();
67 
69  virtual bool isFullScreen() const;
70 
72  virtual int screenNumber() const;
73 
75  DtOsgAdapterQtWidget* adapterWidget();
76 
77  protected:
78 
79  virtual void slot_windowResizeabilityChanged( DtWindow* window );
80 
81  protected:
82 
84  unsigned int myScreenWidth;
85  unsigned int myScreenHeight;
88 
89  //this are used for cache the window state before go to fullscreen for restore purpose
95  };
96 
100  {
101  public:
103  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
104  };
105 
109  {
110  public:
112  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
113  };
114 }
115 
116 #endif
117 
Abstract Base class.
Definition: DtWindow.h:25
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
int myWindowHeightBeforeFullscreen
Definition: DtOsgWindowQt.h:94
DtOsgAdapterQtWidget * myAdapter
Definition: DtOsgWindowQt.h:83
int myWindowStateBeforeFullscreen
Definition: DtOsgWindowQt.h:90
int myWindowYBeforeFullscreen
Definition: DtOsgWindowQt.h:92
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
Creator for registering DtOsgWindowQt.
Definition: DtOsgWindowQt.h:99
OpenSceneGraph window integration with Qt.
Definition: DtOsgWindowQt.h:25
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
unsigned int myScreenWidth
Definition: DtOsgWindowQt.h:84
unsigned int myScreenHeight
Definition: DtOsgWindowQt.h:85
Contains DLL export macros.
DtSignalConnectionManager mySignals
Definition: DtOsgWindowQt.h:87
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Creator for registering fullscreen variant of DtOsgWindowQt.
Definition: DtOsgWindowQt.h:108
Base class to provide boost signal/slot management.
int myWindowWidthBeforeFullscreen
Definition: DtOsgWindowQt.h:93
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
int myWindowXBeforeFullscreen
Definition: DtOsgWindowQt.h:91
Contains makVrv::DtOsgView class.
bool myFullScreen
Definition: DtOsgWindowQt.h:86
A basic OSG display window, used to get the osg context for a display window.
Definition: DtOsgWindow.h:36

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)