00001 /*************************************************************************** 00002 * Copyright (C) 2007 by Universidad Nacional de Colombia * 00003 * http://www.unal.edu.co * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 #ifndef POINT_H 00021 #define POINT_H 00022 00023 #define PointList list<Point> 00024 #define PointVector vector<Point> 00025 00033 class Point{ 00034 public: 00035 Point(); 00036 Point( int id, double x, double y, double z ); 00037 Point( double x, double y, double z ); 00038 Point( const Point& p ) ; 00039 void operator = ( const Point& p ) ; 00040 bool operator == ( const Point& p ) ; 00041 ~Point(); 00042 00043 void setId( int id ); 00044 void setX( double x ); 00045 void setY( double y ); 00046 void setZ( double z ); 00047 00048 int getId() const; 00049 double getX() const; 00050 double getY() const; 00051 double getZ() const; 00052 00053 void setProcessed( bool processed ); 00054 bool isProcessed() const; 00055 00056 private: 00057 double x ; 00058 double y ; 00059 double z ; 00060 int id ; 00061 bool processed ; 00062 }; 00063 00064 #endif
1.5.4