Lines Matching defs:Event
103 struct Event {
108 Event(EventType t, Node *v, double p) : type(t),v(v),e(NULL),pos(p) {};
109 Event(EventType t, Edge *e, double p) : type(t),v(NULL),e(e),pos(p) {};
111 Event **events;
113 Event *ea=*(Event**)a;
114 Event *eb=*(Event**)b;
201 events=new Event*[nevents];
208 events[ctr++]=new Event(Open,v,v->ymin+0.01);
209 events[ctr++]=new Event(Close,v,v->ymax-0.01);
213 events[ctr++]=new Event(Open,e,e->ymin-1);
214 events[ctr++]=new Event(Close,e,e->ymax+1);
221 events[ctr++]=new Event(Open,v,v->xmin+0.01);
222 events[ctr++]=new Event(Close,v,v->xmax-0.01);
226 events[ctr++]=new Event(Open,e,e->xmin-1);
227 events[ctr++]=new Event(Close,e,e->xmax+1);
230 qsort((Event*)events, (size_t)nevents, sizeof(Event*), compare_events );
235 Event *e=events[i];