Size.h
Go to the documentation of this file.
1 /* -*- mode:c++ -*-
2  *
3  * HippoPlot Size class interface
4  *
5  * Copyright (C) 2000, 2003 The Board of Trustees of The Leland
6  * Stanford Junior University. All Rights Reserved.
7  *
8  * $Id: Size.h,v 1.12 2005/10/30 00:10:12 pfkeb Exp $
9  */
10 
11 #ifndef _SIZE_H_
12 #define _SIZE_H_
13 
14 #include "pattern/libhippo.h"
15 
16 namespace hippodraw {
17 
23 {
24  private:
25  double m_width;
26  double m_height;
27  double m_depth;
28 
29 
30  public:
31  Size();
32  Size( double width, double height );
33  Size( double width, double height, double depth );
34 
35  void setSize( double width, double height );
36  void setSize( double width, double height, double depth );
37 
39  inline double getHeight() const;
40 
42  inline double getWidth() const;
43 
45  inline double getDepth() const;
46 
48  void setDepth ( double );
49 
50 
51 };
52 
53 inline
54 double
55 Size::
56 getWidth() const
57 {
58  return m_width;
59 }
60 
61 inline
62 double
63 Size::
64 getHeight() const
65 {
66  return m_height;
67 }
68 
69 inline
70 double
71 Size::
72 getDepth() const
73 {
74  return m_depth;
75 }
76 
77 } // namespace hippodraw
78 
79 #endif // _SIZE_H_

Generated for HippoDraw Class Library by doxygen