VR-Vantage API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtWindow.h,v $ $Revision: 1.31 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtWindow_H_
14 #define DtWindow_H_
15 
16 #include <vrvCore/vrvCore.h>
19 
20 namespace makVrv
21 {
22  class DtChannel;
23  class DtChannelManager;
24  class DtDe;
25 
29  {
30 
31  public:
32 
35 
37  virtual void realize();
38 
40  virtual ~DtWindow();
41 
44  virtual bool isValid() const = 0;
45 
47  virtual bool canResize() const;
48 
50  virtual void setPosition(int x,int y) = 0;
51 
53  virtual void resize(int width,int height) = 0;
54 
58  virtual void sizeChanged(int width,int height) = 0;
59 
61  virtual int width() const;
62 
64  virtual int height() 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();
86 
89  virtual void toggleFullScreen() {}
90 
91  virtual bool isFullScreen() { return false; }
92 
94  virtual int screenNumber() const { return 0; }
95 
96 
97  protected:
98 
102 
103  };
104 
110  {
111  public:
112 
114  DtWindowCreator();
115 
117  virtual ~DtWindowCreator();
118 
120  virtual DtWindow* create(DtDe&, DtWindowConfiguration&) = 0;
121  };
122 }
123 
124 #endif
125 


Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)