VR-Forces 4.7 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 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 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)