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

#include <Predicates0D.h>

Inheritance diagram for Freestyle::UnaryPredicate0D:
Freestyle::Predicates0D::FalseUP0D Freestyle::Predicates0D::TrueUP0D

Public Member Functions

 UnaryPredicate0D ()
 
virtual ~UnaryPredicate0D ()
 
virtual string getName () const
 
virtual int operator() (Interface0DIterator &it)
 

Public Attributes

bool result
 
voidpy_up0D
 

Detailed Description

Base class for Unary Predicates that work on Interface0DIterator. A UnaryPredicate0D is a functor that evaluates a condition on a Interface0DIterator and returns true or false depending on whether this condition is satisfied or not. The UnaryPredicate0D is used by calling its () operator. Any inherited class must overload the () operator.

Definition at line 29 of file Predicates0D.h.

Constructor & Destructor Documentation

◆ UnaryPredicate0D()

Freestyle::UnaryPredicate0D::UnaryPredicate0D ( )
inline

Default constructor.

Definition at line 35 of file Predicates0D.h.

References py_up0D.

◆ ~UnaryPredicate0D()

virtual Freestyle::UnaryPredicate0D::~UnaryPredicate0D ( )
inlinevirtual

Destructor.

Definition at line 41 of file Predicates0D.h.

Member Function Documentation

◆ getName()

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

Returns the string of the name of the UnaryPredicate0D.

Reimplemented in Freestyle::Predicates0D::FalseUP0D, and Freestyle::Predicates0D::TrueUP0D.

Definition at line 46 of file Predicates0D.h.

◆ operator()()

int Freestyle::UnaryPredicate0D::operator() ( Interface0DIterator it)
virtual

The () operator. Must be overload by inherited classes.

Parameters
itThe Interface0DIterator pointing onto the Interface0D at which we wish to evaluate the predicate.
Returns
true if the condition is satisfied, false otherwise.

Reimplemented in Freestyle::Predicates0D::FalseUP0D, and Freestyle::Predicates0D::TrueUP0D.

Definition at line 13 of file Predicates0D.cpp.

References Director_BPy_UnaryPredicate0D___call__().

Member Data Documentation

◆ py_up0D

void* Freestyle::UnaryPredicate0D::py_up0D

Definition at line 32 of file Predicates0D.h.

Referenced by Director_BPy_UnaryPredicate0D___call__(), and UnaryPredicate0D().

◆ result

bool Freestyle::UnaryPredicate0D::result

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