Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Size.h

Go to the documentation of this file.
00001 /* -*- mode:c++ -*-
00002  *
00003  * HippoPlot Size  class interface
00004  *
00005  * Copyright (C) 2000, 2003   The Board of Trustees of The Leland
00006  * Stanford Junior University.  All Rights Reserved.
00007  *
00008  * $Id: Size.h,v 1.10 2004/05/02 17:18:35 pfkeb Exp $
00009  */
00010 
00011 #ifndef _SIZE_H_
00012 #define _SIZE_H_
00013 
00014 #include "pattern/libhippo.h"
00015 
00020 class MDL_HIPPOPLOT_API Size
00021 {
00022  private:
00023   double m_width;
00024   double m_height;
00025   double m_depth;
00026 
00027  public:
00028   Size();
00029   Size( double width, double height );
00030   Size( double width, double height, double depth );
00031 
00032   void setSize( double width, double height );
00033   void setSize( double width, double height, double depth );
00034 
00036   inline double getHeight() const;
00037 
00039   inline double getWidth() const;
00040 
00042   inline double getDepth() const;
00043 
00045   void setDepth ( double );
00046 
00047 };
00048 
00049 inline
00050 double
00051 Size::
00052 getWidth() const
00053 {
00054   return m_width;
00055 }
00056 
00057 inline
00058 double
00059 Size::
00060 getHeight() const
00061 {
00062   return m_height;
00063 }
00064 
00065 inline
00066 double
00067 Size::
00068 getDepth() const
00069 {
00070   return m_depth;
00071 }
00072 
00073 #endif // _SIZE_H_

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3