VR-Forces 4.0.4 Class Documentation
include/vrvOsgQt/DtOsgWindowQt.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtOsgWindowQt.h,v $ $Revision: 1.11 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtOsgWindowQt_H_
00014 #define DtOsgWindowQt_H_
00015 
00016 #include <vrvOsgQt/vrvOsgQt.h>
00017 #include <vrvOsg/DtOsgWindow.h>
00018 
00019 namespace makVrv
00020 {
00021    class DtWindowConfiguration;
00022    class DtOsgAdapterQtWidget;
00023 
00026    class DT_DLL_VRVOSGQT DtOsgWindowQt : public DtOsgWindow
00027    {
00028    public:
00029 
00032       DtOsgWindowQt(DtDe& de, DtWindowConfiguration& wc, bool fullscreen = false);
00033 
00035       virtual ~DtOsgWindowQt();
00036 
00038       virtual int width() const;
00039 
00041       virtual int height() const;
00042 
00044       virtual bool isValid() const;
00045 
00047       virtual void setPosition(int x,int y);
00048 
00050       virtual void resize(int width, int height);
00051 
00052       void changeResolution( int width, int height );
00053 
00055       virtual void toggleFullScreen();
00056 
00058       virtual bool isFullScreen();
00059 
00061       virtual int screenNumber() const;
00062 
00063    protected:
00064 
00065       DtOsgAdapterQtWidget* myAdapter;
00066       unsigned int myScreenWidth;
00067       unsigned int myScreenHeight;
00068       bool myFullScreen;
00069    };
00070 
00073    class DT_DLL_VRVOSGQT DtOsgWindowQtCreator : public DtWindowCreator
00074    {
00075    public:
00077       virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
00078    };
00079 
00082    class DT_DLL_VRVOSGQT DtFullscreenOsgWindowQtCreator : public DtWindowCreator
00083    {
00084    public:
00086       virtual DtWindow* create(DtDe&, DtWindowConfiguration&);
00087    };
00088 }
00089 
00090 #endif
00091 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)