VR-Forces 5.0.1 Developer's Guide
 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) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
15 #include <vrvUtil/signalslib.h>
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 
62  virtual bool isChildWindow() const;
63 
65  virtual int height() const;
66 
68  virtual int pixelRatio() const;
69 
71  virtual float pixelRatioF() const;
72 
74  virtual int physicalDpiX() const;
75 
77  virtual int physicalDpiY() const;
78 
80  virtual const DtWindowConfiguration& configuration() const;
81 
83  virtual bool tick();
84 
86  virtual DtChannelManager& channelManager();
87 
89  virtual const DtChannelManager& channelManager() const;
90 
92  virtual DtChannel* findChannel(const std::string& name);
93 
95  inline DtDe& de() { return myDe;}
96 
98  virtual void clearEmptyWindow(const std::string& messageLine1,
99  const std::string& messageLine2,
100  const std::string& messageLine3);
101 
104  virtual void toggleFullScreen() {}
105 
106  virtual bool isFullScreen() const { return false; }
107 
109  virtual int screenNumber() const { return 0; }
110 
112  boost::signalslib::signal<void(bool)> signal_fullScreenModeChanged;
113 
115  boost::signalslib::signal<void(float)> signal_pixelRatioChanged;
116 
117  protected:
118 
123 
124  };
125 
131  {
132  public:
133 
135  DtWindowCreator();
136 
138  virtual ~DtWindowCreator();
139 
141  virtual DtWindow* create(DtDe&, DtWindowConfiguration&) = 0;
142  };
143 }
144 
145 
virtual void toggleFullScreen()
toggle fullscreen mode, for windows that support it. The base class does nothing
Definition: DtWindow.h:104
Abstract Base class.
Definition: DtWindow.h:25
A creator class for DtWindow instances.
Definition: DtWindow.h:130
DtWindowConfiguration & myWindowConfiguration
Definition: DtWindow.h:121
DtDe & de()
Accessor to get the de;.
Definition: DtWindow.h:95
virtual bool isFullScreen() const
Definition: DtWindow.h:106
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
boost::signalslib::signal< void(float)> signal_pixelRatioChanged
Signal that indicates when the high dpi scaling factor has changed.
Definition: DtWindow.h:115
The abstract Channel Class.
Definition: DtChannel.h:35
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtChannelManager * myChannelManager
Definition: DtWindow.h:120
Base class for handling DtChannels. Derived classes should override the tick() method and advance the...
Definition: DtChannelManager.h:32
boost::signalslib::signal< void(bool)> signal_fullScreenModeChanged
Signal that indicates when the window toggles between full screen and Windowed mode.
Definition: DtWindow.h:112
bool myIsChildWindow
Definition: DtWindow.h:122
DtDe & myDe
Definition: DtWindow.h:119
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
virtual int screenNumber() const
Get the screen number of the screen that this window is on.
Definition: DtWindow.h:109
Contains makVrv::DtWindowConfiguration class.
Contains DLL export macros.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)