VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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();
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 
84  {
85  public:
87  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
88  };
89 
93  {
94  public:
96  virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
97  };
98 }
99 
100 #endif
101 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)