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

Vertex.cpp

00001 // 00002 // file : Vertex.cpp 00003 // author : jh 00004 // date : 15 jul 2002 00005 // changed : 18 sep 2003 00006 // 00007 00008 00009 #include "Vertex.h" 00010 #include <qtextstream.h> 00011 00012 00013 00014 Vertex::Vertex(const QString& id, double x, double y) 00015 { 00016 #ifdef _DEBUG_ 00017 fprintf(stderr, "<Vertex::Vertex(%s,%f,%f)>\n", 00018 id.latin1(), x, y ); 00019 #endif 00020 00021 _id = id; 00022 00023 _x = x; 00024 _y = y; 00025 00026 _state = none; 00027 grad = 0; 00028 used = false; 00029 00030 #ifdef _DEBUG_ 00031 fprintf(stderr, "</Vertex::Vertex()\n"); 00032 #endif 00033 00034 } 00035 00036 00037 void 00038 Vertex::write_XML(QTextStream& cout) 00039 { 00040 cout << "<point id=\"" << ID() << "\" "; 00041 cout << "x=\"" << x() << "\" "; 00042 cout << "y=\"" << y() << "\"/>\n"; 00043 }

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