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_8h-source.html,v 1.40 2008/03/24 19:27:34 pfkeb Exp $
00009  */
00010 
00011 #ifndef _SIZE_H_
00012 #define _SIZE_H_
00013 
00014 #include "pattern/libhippo.h"
00015 
00016 namespace hippodraw {
00017 
00022 class MDL_HIPPOPLOT_API Size
00023 {
00024  private:
00025   double m_width;
00026   double m_height;
00027   double m_depth;
00028 
00029 
00030  public:
00031   Size();
00032   Size( double width, double height );
00033   Size( double width, double height, double depth );
00034 
00035   void setSize( double width, double height );
00036   void setSize( double width, double height, double depth );
00037 
00039   inline double getHeight() const;
00040 
00042   inline double getWidth() const;
00043 
00045   inline double getDepth() const;
00046 
00048   void setDepth ( double );
00049  
00050 
00051 };
00052 
00053 inline
00054 double
00055 Size::
00056 getWidth() const
00057 {
00058   return m_width;
00059 }
00060 
00061 inline
00062 double
00063 Size::
00064 getHeight() const
00065 {
00066   return m_height;
00067 }
00068 
00069 inline
00070 double
00071 Size::
00072 getDepth() const
00073 {
00074   return m_depth;
00075 }
00076 
00077 } // namespace hippodraw
00078 
00079 #endif // _SIZE_H_

Generated for HippoDraw Class Library by doxygen