VR-Forces 4.8 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 float pixelRatio() const;
65 
67  virtual const DtWindowConfiguration& configuration() const;
68 
70  virtual bool tick();
71 
73  virtual DtChannelManager& channelManager();
74 
76  virtual const DtChannelManager& channelManager() const;
77 
79  virtual DtChannel* findChannel(const std::string& name);
80 
82  inline DtDe& de() { return myDe;}
83 
85  virtual void clearEmptyWindow(const std::string& messageLine1,
86  const std::string& messageLine2,
87  const std::string& messageLine3);
88 
91  virtual void toggleFullScreen() {}
92 
93  virtual bool isFullScreen() const { return false; }
94 
96  virtual int screenNumber() const { return 0; }
97 
99  boost::signal<void(bool)> signal_fullScreenModeChanged;
100 
102  boost::signal<void(float)> signal_pixelRatioChanged;
103 
104  protected:
105 
109 
110  };
111 
117  {
118  public:
119 
121  DtWindowCreator();
122 
124  virtual ~DtWindowCreator();
125 
127  virtual DtWindow* create(DtDe&, DtWindowConfiguration&) = 0;
128  };
129 }
130 
131 
virtual void toggleFullScreen()
toggle fullscreen mode, for windows that support it.
Definition: DtWindow.h:91
Abstract Base class.
Definition: DtWindow.h:25
A creator class for DtWindow instances.
Definition: DtWindow.h:116
DtWindowConfiguration & myWindowConfiguration
Definition: DtWindow.h:108
DtDe & de()
Accessor to get the de;.
Definition: DtWindow.h:82
boost::signal< void(bool)> signal_fullScreenModeChanged
Signal that indicates when the window toggles between full screen and Windowed mode.
Definition: DtWindow.h:99
virtual bool isFullScreen() const
Definition: DtWindow.h:93
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:31
boost::signal< void(float)> signal_pixelRatioChanged
Signal that indicates when the high dpi scaling factor has changed.
Definition: DtWindow.h:102
The abstract Channel Class.
Definition: DtChannel.h:29
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtChannelManager * myChannelManager
Definition: DtWindow.h:107
Base class for handling DtChannels.
Definition: DtChannelManager.h:35
DtDe & myDe
Definition: DtWindow.h:106
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual int screenNumber() const
Get the screen number of the screen that this window is on.
Definition: DtWindow.h:96
Contains makVrv::DtViewConfiguration class.
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)