28 #include "../system/TimeStamp.h"
30 #include "../view_map/Functions1D.h"
31 #include "../view_map/Interface1D.h"
33 #ifdef WITH_CXX_GUARDEDALLOC
69 return "UnaryPredicate1D";
79 #ifdef WITH_CXX_GUARDEDALLOC
80 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:UnaryPredicate1D")
113 return "BinaryPredicate1D";
126 #ifdef WITH_CXX_GUARDEDALLOC
127 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:BinaryPredicate1D")
136 namespace Predicates1D {
201 return "QuantitativeInvisibilityUP1D";
208 if (func(inter) < 0) {
231 return "ContourUP1D";
237 if (_getNature(inter) < 0) {
242 for (; !it.
isEnd(); ++it) {
266 return "ExternalContourUP1D";
272 if (_getNature(inter) < 0) {
276 set<ViewShape *> occluded;
278 for (set<ViewShape *>::iterator os = occluded.begin(), osend = occluded.end(); os != osend;
306 return "EqualToTimeStampUP1D";
332 return "EqualToChainingTimeStampUP1D";
364 _id =
Id(idFirst, idSecond);
376 set<ViewShape *> shapes;
378 for (set<ViewShape *>::iterator s = shapes.begin(), send = shapes.end(); s != send; ++s) {
379 if ((*s)->getId() == _id) {
393 real _xmin, _ymin, _xmax, _ymax;
407 : _xmin(xmin), _ymin(ymin), _xmax(xmax), _ymax(ymax)
414 return "WithinImageBoundaryUP1D";
422 for (; it != itend; ++it) {
423 real x = (*it).getProjectedX();
424 real y = (*it).getProjectedY();
425 if (_xmin <=
x &&
x <= _xmax && _ymin <=
y &&
y <= _ymax) {
433 Vec2r pmin(_xmin, _ymin);
434 Vec2r pmax(_xmax, _ymax);
435 Vec2r prev((*it).getPoint2D());
437 for (; it != itend; ++it) {
438 Vec2r p((*it).getPoint2D());
500 return "Length2DBP1D";
518 return "SameShapeIdBP1D";
524 set<ViewShape *> shapes1;
526 set<ViewShape *> shapes2;
529 for (set<ViewShape *>::iterator s = shapes1.begin(), send = shapes1.end(); s != send; ++s) {
530 Id current = (*s)->getId();
531 for (set<ViewShape *>::iterator s2 = shapes2.begin(), s2end = shapes2.end(); s2 != s2end;
533 if ((*s2)->getId() == current) {
560 return "ViewMapGradientNormBP1D";
Functions taking 1D input.
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint i1
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
Read Guarded memory(de)allocation.
virtual string getName() const
virtual ~BinaryPredicate1D()
virtual int operator()(Interface1D &inter1, Interface1D &inter2)
virtual bool isEnd() const
virtual Interface0DIterator verticesEnd()
virtual unsigned getTimeStamp() const
virtual Interface0DIterator verticesBegin()
virtual real getLength2D() const
int operator()(Interface1D &inter)
EqualToChainingTimeStampUP1D(unsigned ts)
int operator()(Interface1D &inter)
int operator()(Interface1D &inter)
EqualToTimeStampUP1D(unsigned ts)
int operator()(Interface1D &inter)
int operator()(Interface1D &, Interface1D &)
int operator()(Interface1D &)
int operator()(Interface1D &i1, Interface1D &i2)
QuantitativeInvisibilityUP1D(unsigned qi=0)
int operator()(Interface1D &inter)
int operator()(Interface1D &i1, Interface1D &i2)
int operator()(Interface1D &inter)
ShapeUP1D(unsigned idFirst, unsigned 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
unsigned getChainingTimeStamp()
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