VR-Forces 4.10 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) 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 float pixelRatio() const;
69 
71  virtual const DtWindowConfiguration& configuration() const;
72 
74  virtual bool tick();
75 
77  virtual DtChannelManager& channelManager();
78 
80  virtual const DtChannelManager& channelManager() const;
81 
83  virtual DtChannel* findChannel(const std::string& name);
84 
86  inline DtDe& de() { return myDe;}
87 
89  virtual void clearEmptyWindow(const std::string& messageLine1,
90  const std::string& messageLine2,
91  const std::string& messageLine3);
92 
95  virtual void toggleFullScreen() {}
96 
97  virtual bool isFullScreen() const { return false; }
98 
100  virtual int screenNumber() const { return 0; }
101 
103  boost::signalslib::signal<void(bool)> signal_fullScreenModeChanged;
104 
106  boost::signalslib::signal<void(float)> signal_pixelRatioChanged;
107 
108  protected:
109 
114 
115  };
116 
122  {
123  public:
124 
126  DtWindowCreator();
127 
129  virtual ~DtWindowCreator();
130 
132  virtual DtWindow* create(DtDe&, DtWindowConfiguration&) = 0;
133  };
134 }
135 
136 
virtual void toggleFullScreen()
toggle fullscreen mode, for windows that support it.
Definition: DtWindow.h:95
Abstract Base class.
Definition: DtWindow.h:25
A creator class for DtWindow instances.
Definition: DtWindow.h:121
DtWindowConfiguration & myWindowConfiguration
Definition: DtWindow.h:112
DtDe & de()
Accessor to get the de;.
Definition: DtWindow.h:86
virtual bool isFullScreen() const
Definition: DtWindow.h:97
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:106
The abstract Channel Class.
Definition: DtChannel.h:30
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtChannelManager * myChannelManager
Definition: DtWindow.h:111
Base class for handling DtChannels.
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:103
bool myIsChildWindow
Definition: DtWindow.h:113
DtDe & myDe
Definition: DtWindow.h:110
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:100
Contains makVrv::DtViewConfiguration class.
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)