Main Page | Namespace List | Class List | File List | Namespace Members | Class Members

Vertex.h

00001 #ifndef _VERTEX_H_ 00002 #define _VERTEX_H_ 00003 00004 00005 /* 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 00021 file : Vertex.h 00022 00023 */ 00024 00025 00026 #include <qstring.h> 00027 00028 00029 00031 00036 class Vertex 00037 { 00038 00039 public: 00040 00041 00042 enum State { none, active, passive }; 00043 00044 Vertex(const QString& id, double x, double y); 00045 00046 QString ID() const { return _id; } 00047 00048 double x() const { return _x; } 00049 double y() const { return _y; } 00050 00051 void write_XML(QTextStream& cout); 00052 00053 State state; 00054 00055 int grad; 00056 bool used; 00057 00058 00059 private: 00060 00061 double _x, _y; 00062 00063 QString _id; 00064 00065 State _state; 00066 00067 }; 00068 00069 00070 #endif

Generated on Sun Sep 12 12:59:34 2004 for DelaunayMeshGenerator by doxygen 1.3.7