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

#include <Predicates0D.h>

Inherited by Freestyle::Predicates0D::FalseUP0D, and Freestyle::Predicates0D::TrueUP0D.

Public Member Functions

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

Public Attributes

bool result
 
void * py_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 43 of file Predicates0D.h.

Constructor & Destructor Documentation

◆ UnaryPredicate0D()

Freestyle::UnaryPredicate0D::UnaryPredicate0D ( )
inline

Default constructor.

Definition at line 49 of file Predicates0D.h.

References py_up0D.

◆ ~UnaryPredicate0D()

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

Destructor.

Definition at line 55 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 60 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 27 of file Predicates0D.cpp.

References Director_BPy_UnaryPredicate0D___call__().

Member Data Documentation

◆ py_up0D

void* Freestyle::UnaryPredicate0D::py_up0D

Definition at line 46 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: