straightener.h revision cc0a7f11008a887c51ab7fd899e0e374d21d48a9
/*
** vim: set cindent
** vim: ts=4 sw=4 et tw=0 wm=0
*/
#ifndef STRAIGHTENER_H
#define STRAIGHTENER_H
#include <set>
#include <libvpsc/generate-constraints.h>
#include "gradient_projection.h"
struct Route {
}
for(unsigned i=0;i<n;i++) {
}
}
unsigned n;
double *xs;
double *ys;
};
struct Edge {
unsigned id;
unsigned openInd; // position in openEdges
{
}
}
route=r;
}
bool isEnd(unsigned n) {
return false;
}
void createRouteFromPath(double* X, double* Y) {
}
setRoute(r);
}
// search line segments for intersection points with y pos
for(unsigned i=1;i<route->n;i++) {
// as long as y is between ay and by then r>0
if(r>0&&r<=1) {
}
}
}
// search line segments for intersection points with x pos
for(unsigned i=1;i<route->n;i++) {
// as long as y is between ax and bx then r>0
if(r>0&&r<=1) {
}
}
}
};
unsigned id;
double x,y;
double scanpos;
bool dummy;
double weight;
bool open;
}
};
struct CmpNodePos {
return true;
}
return false;
}
return u < v;
}
};
void generateConstraints(std::vector<Node*>& nodes, std::vector<Edge*>& edges, std::vector<SimpleConstraint*>& cs, Dim dim);
}
#endif