Blender V5.0
Freestyle::BinaryPredicate1D Class Reference

#include <Predicates1D.h>

Inherited by Freestyle::Predicates1D::FalseBP1D, Freestyle::Predicates1D::Length2DBP1D, Freestyle::Predicates1D::SameShapeIdBP1D, Freestyle::Predicates1D::TrueBP1D, and Freestyle::Predicates1D::ViewMapGradientNormBP1D.

Public Member Functions

 BinaryPredicate1D ()
virtual ~BinaryPredicate1D ()
virtual string getName () const
virtual int operator() (Interface1D &inter1, Interface1D &inter2)

Public Attributes

bool result
void * py_bp1D

Detailed Description

Base class for Binary Predicates working on Interface1D. A BinaryPredicate1D is typically an ordering relation between two Interface1D. It evaluates a relation between 2 Interface1D and returns true or false. It is used by calling the () operator.

Definition at line 76 of file Predicates1D.h.

Constructor & Destructor Documentation

◆ BinaryPredicate1D()

Freestyle::BinaryPredicate1D::BinaryPredicate1D ( )
inline

Default constructor.

Definition at line 82 of file Predicates1D.h.

References py_bp1D.

Referenced by Freestyle::Predicates1D::ViewMapGradientNormBP1D::ViewMapGradientNormBP1D().

◆ ~BinaryPredicate1D()

virtual Freestyle::BinaryPredicate1D::~BinaryPredicate1D ( )
inlinevirtual

Destructor.

Definition at line 88 of file Predicates1D.h.

Member Function Documentation

◆ getName()

virtual string Freestyle::BinaryPredicate1D::getName ( ) const
inlinevirtual

◆ operator()()

int Freestyle::BinaryPredicate1D::operator() ( Interface1D & inter1,
Interface1D & inter2 )
virtual

The () operator. Must be overload by inherited classes. It evaluates a relation between 2 Interface1D.

Parameters
inter1The first Interface1D.
inter2The second Interface1D.
Returns
true or false.

Reimplemented in Freestyle::Predicates1D::FalseBP1D, Freestyle::Predicates1D::Length2DBP1D, Freestyle::Predicates1D::SameShapeIdBP1D, Freestyle::Predicates1D::TrueBP1D, and Freestyle::Predicates1D::ViewMapGradientNormBP1D.

Definition at line 20 of file Predicates1D.cpp.

References Director_BPy_BinaryPredicate1D___call__().

Member Data Documentation

◆ py_bp1D

void* Freestyle::BinaryPredicate1D::py_bp1D

Definition at line 79 of file Predicates1D.h.

Referenced by BinaryPredicate1D(), and Director_BPy_BinaryPredicate1D___call__().

◆ result


The documentation for this class was generated from the following files: