Blender  V3.3
Functions | Variables
BPy_UnaryPredicate1D.cpp File Reference
#include "BPy_UnaryPredicate1D.h"
#include "BPy_Convert.h"
#include "BPy_Interface1D.h"
#include "UnaryPredicate1D/BPy_ContourUP1D.h"
#include "UnaryPredicate1D/BPy_DensityLowerThanUP1D.h"
#include "UnaryPredicate1D/BPy_EqualToChainingTimeStampUP1D.h"
#include "UnaryPredicate1D/BPy_EqualToTimeStampUP1D.h"
#include "UnaryPredicate1D/BPy_ExternalContourUP1D.h"
#include "UnaryPredicate1D/BPy_FalseUP1D.h"
#include "UnaryPredicate1D/BPy_QuantitativeInvisibilityUP1D.h"
#include "UnaryPredicate1D/BPy_ShapeUP1D.h"
#include "UnaryPredicate1D/BPy_TrueUP1D.h"
#include "UnaryPredicate1D/BPy_WithinImageBoundaryUP1D.h"

Go to the source code of this file.

Functions

int UnaryPredicate1D_Init (PyObject *module)
 
static int UnaryPredicate1D___init__ (BPy_UnaryPredicate1D *self, PyObject *args, PyObject *kwds)
 
static void UnaryPredicate1D___dealloc__ (BPy_UnaryPredicate1D *self)
 
static PyObject * UnaryPredicate1D___repr__ (BPy_UnaryPredicate1D *self)
 
static PyObject * UnaryPredicate1D___call__ (BPy_UnaryPredicate1D *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (UnaryPredicate1D_name_doc, "The name of the unary 1D predicate.\n" "\n" ":type: str")
 
static PyObject * UnaryPredicate1D_name_get (BPy_UnaryPredicate1D *self, void *UNUSED(closure))
 

Variables

static char UnaryPredicate1D___doc__ []
 
static PyGetSetDef BPy_UnaryPredicate1D_getseters []
 
PyTypeObject UnaryPredicate1D_Type
 

Function Documentation

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( UnaryPredicate1D_name_doc  ,
"The name of the unary 1D predicate.\n" "\n" ":type: str  
)

◆ UnaryPredicate1D___call__()

static PyObject* UnaryPredicate1D___call__ ( BPy_UnaryPredicate1D self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 155 of file BPy_UnaryPredicate1D.cpp.

References Interface1D_Type, PyBool_from_bool(), and self.

◆ UnaryPredicate1D___dealloc__()

static void UnaryPredicate1D___dealloc__ ( BPy_UnaryPredicate1D self)
static

Definition at line 144 of file BPy_UnaryPredicate1D.cpp.

◆ UnaryPredicate1D___init__()

static int UnaryPredicate1D___init__ ( BPy_UnaryPredicate1D self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 132 of file BPy_UnaryPredicate1D.cpp.

◆ UnaryPredicate1D___repr__()

static PyObject* UnaryPredicate1D___repr__ ( BPy_UnaryPredicate1D self)
static

Definition at line 150 of file BPy_UnaryPredicate1D.cpp.

References self.

◆ UnaryPredicate1D_Init()

int UnaryPredicate1D_Init ( PyObject *  module)

◆ UnaryPredicate1D_name_get()

static PyObject* UnaryPredicate1D_name_get ( BPy_UnaryPredicate1D self,
void UNUSEDclosure 
)
static

Definition at line 195 of file BPy_UnaryPredicate1D.cpp.

Variable Documentation

◆ BPy_UnaryPredicate1D_getseters

PyGetSetDef BPy_UnaryPredicate1D_getseters[]
static
Initial value:
= {
{"name",
(setter) nullptr,
UnaryPredicate1D_name_doc,
nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * UnaryPredicate1D_name_get(BPy_UnaryPredicate1D *self, void *UNUSED(closure))

Definition at line 200 of file BPy_UnaryPredicate1D.cpp.

◆ UnaryPredicate1D___doc__

char UnaryPredicate1D___doc__[]
static
Initial value:
=
"Base class for unary predicates that work on :class:`Interface1D`. A\n"
"UnaryPredicate1D is a functor that evaluates a condition on a\n"
"Interface1D and returns true or false depending on whether this\n"
"condition is satisfied or not. The UnaryPredicate1D is used by\n"
"invoking its __call__() method. Any inherited class must overload the\n"
"__call__() method.\n"
"\n"
".. method:: __init__()\n"
"\n"
" Default constructor.\n"
"\n"
".. method:: __call__(inter)\n"
"\n"
" Must be overload by inherited classes.\n"
"\n"
" :arg inter: The Interface1D on which we wish to evaluate the predicate.\n"
" :type inter: :class:`Interface1D`\n"
" :return: True if the condition is satisfied, false otherwise.\n"
" :rtype: bool\n"

Definition at line 111 of file BPy_UnaryPredicate1D.cpp.

◆ UnaryPredicate1D_Type

PyTypeObject UnaryPredicate1D_Type