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

#include <AdvancedPredicates1D.h>

Inherits Freestyle::UnaryPredicate1D.

Public Member Functions

 DensityLowerThanUP1D (double threshold, double sigma=2)
 
string getName () const
 
int operator() (Interface1D &inter)
 
- Public Member Functions inherited from Freestyle::UnaryPredicate1D
 UnaryPredicate1D ()
 
virtual ~UnaryPredicate1D ()
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::UnaryPredicate1D
bool result
 
void * py_up1D
 

Detailed Description

Returns true if the density evaluated for the Interface1D is less than a user-defined density value.

Definition at line 44 of file AdvancedPredicates1D.h.

Constructor & Destructor Documentation

◆ DensityLowerThanUP1D()

Freestyle::Predicates1D::DensityLowerThanUP1D::DensityLowerThanUP1D ( double  threshold,
double  sigma = 2 
)
inline

Builds the functor.

Parameters
thresholdThe value of the threshold density. Any Interface1D having a density lower than this threshold will match.
sigmaThe sigma value defining the density evaluation window size used in the DensityF0D functor.

Definition at line 53 of file AdvancedPredicates1D.h.

Member Function Documentation

◆ getName()

string Freestyle::Predicates1D::DensityLowerThanUP1D::getName ( ) const
inlinevirtual

Returns the string "DensityLowerThanUP1D"

Reimplemented from Freestyle::UnaryPredicate1D.

Definition at line 60 of file AdvancedPredicates1D.h.

◆ operator()()

int Freestyle::Predicates1D::DensityLowerThanUP1D::operator() ( Interface1D inter)
inlinevirtual

The () operator.

Reimplemented from Freestyle::UnaryPredicate1D.

Definition at line 66 of file AdvancedPredicates1D.h.

References Freestyle::UnaryPredicate1D::result, and Freestyle::UnaryFunction1D< T >::result.


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