14 #include "../system/TimeStamp.h"
16 #include "../view_map/Functions1D.h"
17 #include "../view_map/Interface1D.h"
19 #ifdef WITH_CXX_GUARDEDALLOC
55 return "UnaryPredicate1D";
65 #ifdef WITH_CXX_GUARDEDALLOC
66 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:UnaryPredicate1D")
99 return "BinaryPredicate1D";
112 #ifdef WITH_CXX_GUARDEDALLOC
113 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:BinaryPredicate1D")
122 namespace Predicates1D {
187 return "QuantitativeInvisibilityUP1D";
194 if (func(inter) < 0) {
217 return "ContourUP1D";
223 if (_getNature(inter) < 0) {
228 for (; !it.
isEnd(); ++it) {
252 return "ExternalContourUP1D";
258 if (_getNature(inter) < 0) {
262 set<ViewShape *> occluded;
264 for (set<ViewShape *>::iterator os = occluded.begin(), osend = occluded.end(); os != osend;
292 return "EqualToTimeStampUP1D";
318 return "EqualToChainingTimeStampUP1D";
350 _id =
Id(idFirst, idSecond);
362 set<ViewShape *> shapes;
364 for (set<ViewShape *>::iterator s = shapes.begin(), send = shapes.end(); s != send; ++s) {
365 if ((*s)->getId() == _id) {
379 real _xmin, _ymin, _xmax, _ymax;
393 : _xmin(xmin), _ymin(ymin), _xmax(xmax), _ymax(ymax)
400 return "WithinImageBoundaryUP1D";
408 for (; it != itend; ++it) {
409 real x = (*it).getProjectedX();
410 real y = (*it).getProjectedY();
411 if (_xmin <=
x &&
x <= _xmax && _ymin <=
y &&
y <= _ymax) {
419 Vec2r pmin(_xmin, _ymin);
420 Vec2r pmax(_xmax, _ymax);
423 for (; it != itend; ++it) {
424 Vec2r p((*it).getPoint2D());
486 return "Length2DBP1D";
504 return "SameShapeIdBP1D";
510 set<ViewShape *> shapes1;
512 set<ViewShape *> shapes2;
515 for (set<ViewShape *>::iterator s = shapes1.begin(), send = shapes1.end(); s != send; ++s) {
516 Id current = (*s)->getId();
517 for (set<ViewShape *>::iterator s2 = shapes2.begin(), s2end = shapes2.end(); s2 != s2end;
519 if ((*s2)->getId() == current) {
546 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 y
_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
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
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
SymEdge< T > * prev(const SymEdge< T > *se)