VR-Forces 4.8 Class Documentation
 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) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgWindowQt.h,v $ $Revision: 1.11 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOsgWindowQt_H_
14 #define DtOsgWindowQt_H_
15 
16 #include <vrvOsgQt/vrvOsgQt.h>
17 #include <vrvOsg/DtOsgWindow.h>
18 
20 
21 namespace makVrv
22 {
23  class DtWindowConfiguration;
24  class DtOsgAdapterQtWidget;
25 
29  {
30  public:
31 
34  DtOsgWindowQt(DtDe& de, DtWindowConfiguration& wc, bool fullscreen = false);
35 
37  virtual ~DtOsgWindowQt();
38 
40  virtual int width() const;
41 
43  virtual int height() const;
44 
46  virtual float pixelRatio() const;
47 
49  virtual bool isValid() const;
50 
52  virtual void setPosition(int x,int y);
53 
55  virtual void resize(int width, int height);
56 
57  void changeResolution( int width, int height );
58 
60  virtual void toggleFullScreen();
61 
63  virtual bool isFullScreen() const;
64 
66  virtual int screenNumber() const;
67 
69  DtOsgAdapterQtWidget* adapterWidget();
70 
71  protected:
72 
73  virtual void slot_windowResizeabilityChanged( DtWindow* window );
74 
75  protected:
76 
78  unsigned int myScreenWidth;
79  unsigned int myScreenHeight;
82 
83  //this are used for cache the window state before go to fullscreen for restore purpose
89  };
90 
94  {
95  public:
97  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
98  };
99 
103  {
104  public:
106  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
107  };
108 }
109 
110 #endif
111 
Abstract Base class.
Definition: DtWindow.h:25
A creator class for DtWindow instances.
Definition: DtWindow.h:116
DtOsgAdapterQtWidget provides the mechanism for embedding an OSG context into a Qt widget...
Definition: DtOsgAdapterQtWidget.h:46
int myWindowHeightBeforeFullscreen
Definition: DtOsgWindowQt.h:88
DtOsgAdapterQtWidget * myAdapter
Definition: DtOsgWindowQt.h:77
int myWindowStateBeforeFullscreen
Definition: DtOsgWindowQt.h:84
int myWindowYBeforeFullscreen
Definition: DtOsgWindowQt.h:86
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:31
Creator for registering DtOsgWindowQt.
Definition: DtOsgWindowQt.h:93
OpenSceneGraph window integration with Qt.
Definition: DtOsgWindowQt.h:28
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
unsigned int myScreenWidth
Definition: DtOsgWindowQt.h:78
unsigned int myScreenHeight
Definition: DtOsgWindowQt.h:79
Contains DLL export macros.
DtSignalConnectionManager mySignals
Definition: DtOsgWindowQt.h:81
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Creator for registering fullscreen variant of DtOsgWindowQt.
Definition: DtOsgWindowQt.h:102
Base class to provide boost signal/slot management.
int myWindowWidthBeforeFullscreen
Definition: DtOsgWindowQt.h:87
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
int myWindowXBeforeFullscreen
Definition: DtOsgWindowQt.h:85
Contains makVrv::DtOsgView class.
bool myFullScreen
Definition: DtOsgWindowQt.h:80
A basic OSG display window, used to get the osg context for a display window.
Definition: DtOsgWindow.h:36

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)