21#ifdef WITH_CXX_GUARDEDALLOC
55 return "UnaryPredicate1D";
65#ifdef WITH_CXX_GUARDEDALLOC
66 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:UnaryPredicate1D")
97 return "BinaryPredicate1D";
110#ifdef WITH_CXX_GUARDEDALLOC
111 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:BinaryPredicate1D")
120namespace Predicates1D {
179 return "QuantitativeInvisibilityUP1D";
186 if (func(inter) < 0) {
189 result = (func.
result == _qi);
209 return "ContourUP1D";
215 if (_getNature(inter) < 0) {
220 for (; !it.isEnd(); ++it) {
244 return "ExternalContourUP1D";
250 if (_getNature(inter) < 0) {
254 set<ViewShape *> occluded;
256 for (set<ViewShape *>::iterator os = occluded.begin(), osend = occluded.end(); os != osend;
285 return "EqualToTimeStampUP1D";
311 return "EqualToChainingTimeStampUP1D";
322 result = (edge->getChainingTimeStamp() >=
_timeStamp);
343 _id =
Id(idFirst, idSecond);
355 set<ViewShape *> shapes;
357 for (set<ViewShape *>::iterator s = shapes.begin(), send = shapes.end(); s != send; ++s) {
358 if ((*s)->getId() == _id) {
372 real _xmin, _ymin, _xmax, _ymax;
386 : _xmin(xmin), _ymin(ymin), _xmax(xmax), _ymax(ymax)
393 return "WithinImageBoundaryUP1D";
401 for (; it != itend; ++it) {
402 real x = (*it).getProjectedX();
403 real y = (*it).getProjectedY();
404 if (_xmin <= x && x <= _xmax && _ymin <= y && y <= _ymax) {
412 Vec2r pmin(_xmin, _ymin);
413 Vec2r pmax(_xmax, _ymax);
414 Vec2r prev((*it).getPoint2D());
416 for (; it != itend; ++it) {
417 Vec2r p((*it).getPoint2D());
479 return "Length2DBP1D";
497 return "SameShapeIdBP1D";
503 set<ViewShape *> shapes1;
505 set<ViewShape *> shapes2;
508 for (set<ViewShape *>::iterator s = shapes1.begin(), send = shapes1.end(); s != send; ++s) {
509 Id current = (*s)->getId();
510 for (set<ViewShape *>::iterator s2 = shapes2.begin(), s2end = shapes2.end(); s2 != s2end;
513 if ((*s2)->getId() == current) {
540 return "ViewMapGradientNormBP1D";
Functions taking 1D input.
Functions taking 1D input.
Interface 1D and related tools definitions.
Read Guarded memory(de)allocation.
Class defining a singleton used as timestamp.
virtual string getName() const
virtual ~BinaryPredicate1D()
virtual int operator()(Interface1D &inter1, Interface1D &inter2)
virtual Interface0DIterator verticesEnd()
virtual Interface0DIterator verticesBegin()
virtual uint getTimeStamp() const
virtual real getLength2D() const
int operator()(Interface1D &inter)
EqualToChainingTimeStampUP1D(uint ts)
int operator()(Interface1D &inter)
EqualToTimeStampUP1D(uint ts)
int operator()(Interface1D &inter)
int operator()(Interface1D &inter)
int operator()(Interface1D &, Interface1D &)
int operator()(Interface1D &)
int operator()(Interface1D &i1, Interface1D &i2)
int operator()(Interface1D &inter)
QuantitativeInvisibilityUP1D(uint qi=0)
int operator()(Interface1D &i1, Interface1D &i2)
int operator()(Interface1D &inter)
ShapeUP1D(uint idFirst, uint idSecond=0)
int operator()(Interface1D &, Interface1D &)
int operator()(Interface1D &)
int operator()(Interface1D &i1, Interface1D &i2)
ViewMapGradientNormBP1D(int level, IntegrationType iType=MEAN, float sampling=2.0)
WithinImageBoundaryUP1D(const real xmin, const real ymin, const real xmax, const real ymax)
int operator()(Interface1D &inter)
virtual int operator()(Interface1D &inter)
virtual ~UnaryPredicate1D()
virtual string getName() const
ViewShape * getShapeF0D(Interface0DIterator &it)
ViewShape * getOccludeeF0D(Interface0DIterator &it)
void getOccludeeF1D(Interface1D &inter, set< ViewShape * > &oShapes)
void getShapeF1D(Interface1D &inter, set< ViewShape * > &oShapes)
bool intersect2dSeg2dArea(const Vec2r &min, const Vec2r &max, const Vec2r &A, const Vec2r &B)
static const EdgeNature BORDER
static const EdgeNature SILHOUETTE