00001
#ifndef _VERTEX_H_
00002
#define _VERTEX_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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