Blender  V3.3
Public Member Functions | Public Attributes | List of all members
Freestyle::BinaryPredicate1D Class Reference

#include <Predicates1D.h>

Inheritance diagram for Freestyle::BinaryPredicate1D:
Freestyle::Predicates1D::FalseBP1D Freestyle::Predicates1D::Length2DBP1D Freestyle::Predicates1D::SameShapeIdBP1D Freestyle::Predicates1D::TrueBP1D Freestyle::Predicates1D::ViewMapGradientNormBP1D

Public Member Functions

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

Public Attributes

bool result
 
voidpy_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 80 of file Predicates1D.h.

Constructor & Destructor Documentation

◆ BinaryPredicate1D()

Freestyle::BinaryPredicate1D::BinaryPredicate1D ( )
inline

Default constructor.

Definition at line 86 of file Predicates1D.h.

References NULL, and py_bp1D.

◆ ~BinaryPredicate1D()

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

Destructor.

Definition at line 92 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::ViewMapGradientNormBP1D, Freestyle::Predicates1D::SameShapeIdBP1D, Freestyle::Predicates1D::Length2DBP1D, Freestyle::Predicates1D::FalseBP1D, and Freestyle::Predicates1D::TrueBP1D.

Definition at line 18 of file Predicates1D.cpp.

References Director_BPy_BinaryPredicate1D___call__().

Member Data Documentation

◆ py_bp1D

void* Freestyle::BinaryPredicate1D::py_bp1D

Definition at line 83 of file Predicates1D.h.

Referenced by BinaryPredicate1D(), and Director_BPy_BinaryPredicate1D___call__().

◆ result

bool Freestyle::BinaryPredicate1D::result

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