VR-Forces 4.10 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 
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 float pixelRatio() const;
44 
46  virtual bool isValid() const;
47 
49  virtual void setPosition(int x,int y);
50 
52  virtual void resize(int width, int height);
53 
54  void changeResolution( int width, int height );
55 
57  virtual void toggleFullScreen();
58 
60  virtual bool isFullScreen() const;
61 
63  virtual int screenNumber() const;
64 
66  DtOsgAdapterQtWidget* adapterWidget();
67 
68  protected:
69 
70  virtual void slot_windowResizeabilityChanged( DtWindow* window );
71 
72  protected:
73 
75  unsigned int myScreenWidth;
76  unsigned int myScreenHeight;
79 
80  //this are used for cache the window state before go to fullscreen for restore purpose
86  };
87 
91  {
92  public:
94  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
95  };
96 
100  {
101  public:
103  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
104  };
105 }
106 
107 #endif
108 
Abstract Base class.
Definition: DtWindow.h:25
A creator class for DtWindow instances.
Definition: DtWindow.h:121
DtOsgAdapterQtWidget provides the mechanism for embedding an OSG context into a Qt widget...
Definition: DtOsgAdapterQtWidget.h:47
int myWindowHeightBeforeFullscreen
Definition: DtOsgWindowQt.h:85
DtOsgAdapterQtWidget * myAdapter
Definition: DtOsgWindowQt.h:74
int myWindowStateBeforeFullscreen
Definition: DtOsgWindowQt.h:81
int myWindowYBeforeFullscreen
Definition: DtOsgWindowQt.h:83
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
Creator for registering DtOsgWindowQt.
Definition: DtOsgWindowQt.h:90
OpenSceneGraph window integration with Qt.
Definition: DtOsgWindowQt.h:25
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
unsigned int myScreenWidth
Definition: DtOsgWindowQt.h:75
unsigned int myScreenHeight
Definition: DtOsgWindowQt.h:76
Contains DLL export macros.
DtSignalConnectionManager mySignals
Definition: DtOsgWindowQt.h:78
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Creator for registering fullscreen variant of DtOsgWindowQt.
Definition: DtOsgWindowQt.h:99
Base class to provide boost signal/slot management.
int myWindowWidthBeforeFullscreen
Definition: DtOsgWindowQt.h:84
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
int myWindowXBeforeFullscreen
Definition: DtOsgWindowQt.h:82
Contains makVrv::DtOsgView class.
bool myFullScreen
Definition: DtOsgWindowQt.h:77
A basic OSG display window, used to get the osg context for a display window.
Definition: DtOsgWindow.h:36

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)