VR-Forces 4.1.1 Class Documentation
displaySize.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: displaySize.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DISPLAYSIZE_H
13 #define DISPLAYSIZE_H
14 
16 #include <iosfwd>
17 
18 class DtDisplayPoint;
19 
23 
25 {
26 
27  friend std::ostream& operator<<(std::ostream& os,
28  const DtDisplayPoint& point);
29  friend std::istream& operator>>(std::istream& is, DtDisplayPoint& point);
30 
31 public:
32 
34  DtDisplaySize();
35 
37  DtDisplaySize(const int& w, const int& h);
38 
39  DtDisplaySize(const DtDisplayPoint& upperLeft,
40  const DtDisplayPoint& lowerRight);
41 
43  virtual ~DtDisplaySize();
44 
46  DtDisplaySize(const DtDisplaySize& orig);
47 
49  DtDisplaySize& operator=(const DtDisplaySize& rhs);
50 
52  virtual bool operator==(const DtDisplaySize& rhs) const;
53  virtual bool operator!=(const DtDisplaySize& rhs) const;
54 
56  virtual const int& w() const;
57  virtual void setW(const int& w);
58 
60  virtual const int& h() const;
61  virtual void setH(const int& h);
62 
64  virtual bool isDefault() const;
65 
66 protected:
67 
68  int myW;
69  int myH;
70 
71  static const int theDefaultW;
72  static const int theDefaultH;
73 
74 };
75 
76 #endif
77 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)