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

Point.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*-
00002  *
00003  * HippoPlot Point  class interface
00004  *
00005  * Copyright (C) 2000, 2001, 2003  The Board of Trustees of The Leland
00006  * Stanford Junior University.  All Rights Reserved.
00007  *
00008  * $Id: Point.h,v 1.17 2004/05/02 17:18:35 pfkeb Exp $
00009  */
00010 
00011 #ifndef _POINT_H_
00012 #define _POINT_H_
00013 
00014 #include "pattern/libhippo.h"
00015 
00020 class MDL_HIPPOPLOT_API Point
00021 {
00022  private:
00023   double m_x;
00024   double m_y;
00025   double m_z;
00026 
00027  public:
00028   //Point( double x = 0.0, double y = 0.0 );
00029   Point( double x = 0.0, double y = 0.0, double z = 0.0 );
00030  
00031   void setPoint( double x, double y );
00032   void setPoint( double x, double y, double z );
00033 
00035   void moveBy ( double x, double y );
00036 
00038   inline double getX() const;
00039 
00041   inline double getY() const;
00042 
00044   inline double getZ() const;
00045 
00047   void setZ ( double );
00048 
00049 };
00050 
00051 inline
00052 double 
00053 Point::
00054 getX() const 
00055 {
00056   return m_x;
00057 }
00058 
00059 inline 
00060 double
00061 Point::
00062 getY() const 
00063 {
00064   return m_y;
00065 }
00066 
00067 inline double 
00068 Point::
00069 getZ() const 
00070 {
00071   return m_z;
00072 }
00073 
00074 #endif // _POINT_H_

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3