VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
15 #include <boost/signals.hpp>
16 
17 namespace makVrv
18 {
19  class DtChannel;
20  class DtChannelManager;
21  class DtDe;
22 
26  {
27 
28  public:
29 
32 
34  virtual void realize();
35 
37  virtual ~DtWindow();
38 
41  virtual bool isValid() const = 0;
42 
44  virtual bool canResize() const;
45 
47  virtual void setPosition(int x,int y) = 0;
48 
50  virtual void resize(int width,int height) = 0;
51 
55  virtual void sizeChanged(int width,int height) = 0;
56 
58  virtual int width() const;
59 
61  virtual int height() const;
62 
64  virtual const DtWindowConfiguration& configuration() const;
65 
67  virtual bool tick();
68 
70  virtual DtChannelManager& channelManager();
71 
73  virtual const DtChannelManager& channelManager() const;
74 
76  virtual DtChannel* findChannel(const std::string& name);
77 
79  inline DtDe& de() { return myDe;}
80 
82  virtual void clearEmptyWindow();
83 
86  virtual void toggleFullScreen() {}
87 
88  virtual bool isFullScreen() const { return false; }
89 
91  virtual int screenNumber() const { return 0; }
92 
94  boost::signal<void(bool)> signal_fullScreenModeChanged;
95 
96  protected:
97 
101 
102  };
103 
109  {
110  public:
111 
113  DtWindowCreator();
114 
116  virtual ~DtWindowCreator();
117 
119  virtual DtWindow* create(DtDe&, DtWindowConfiguration&) = 0;
120  };
121 }
122 
123 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)