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

#include <AdvancedFunctions1D.h>

Inheritance diagram for Freestyle::Functions1D::DensityF1D:
Freestyle::UnaryFunction1D< double >

Public Member Functions

 DensityF1D (double sigma=2, IntegrationType iType=MEAN, float sampling=2.0f)
 
virtual ~DensityF1D ()
 
string getName () const
 
int operator() (Interface1D &inter)
 
- Public Member Functions inherited from Freestyle::UnaryFunction1D< double >
 UnaryFunction1D ()
 
 UnaryFunction1D (IntegrationType iType)
 
virtual ~UnaryFunction1D ()
 
void setIntegrationType (IntegrationType integration)
 
IntegrationType getIntegrationType () const
 

Additional Inherited Members

- Public Types inherited from Freestyle::UnaryFunction1D< double >
typedef double ReturnedValueType
 
- Public Attributes inherited from Freestyle::UnaryFunction1D< double >
double result
 
voidpy_uf1D
 
- Protected Attributes inherited from Freestyle::UnaryFunction1D< double >
IntegrationType _integration
 

Detailed Description

Returns the density evaluated for an Interface1D. The density is evaluated for a set of points along the Interface1D (using the DensityF0D functor) with a user-defined sampling and then integrated into a single value using a user-defined integration method.

Definition at line 29 of file AdvancedFunctions1D.h.

Constructor & Destructor Documentation

◆ DensityF1D()

Freestyle::Functions1D::DensityF1D::DensityF1D ( double  sigma = 2,
IntegrationType  iType = MEAN,
float  sampling = 2.0f 
)
inline

Builds the functor.

Parameters
sigmaThesigma used in DensityF0D and determining the window size used in each density query.
iTypeThe integration method used to compute a single value from a set of values.
samplingThe resolution used to sample the chain: the corresponding 0D function is evaluated at each sample point and the result is obtained by combining the resulting values into a single one, following the method specified by iType.

Definition at line 44 of file AdvancedFunctions1D.h.

◆ ~DensityF1D()

virtual Freestyle::Functions1D::DensityF1D::~DensityF1D ( )
inlinevirtual

Destructor

Definition at line 51 of file AdvancedFunctions1D.h.

Member Function Documentation

◆ getName()

string Freestyle::Functions1D::DensityF1D::getName ( ) const
inlinevirtual

Returns the string "DensityF1D".

Reimplemented from Freestyle::UnaryFunction1D< double >.

Definition at line 56 of file AdvancedFunctions1D.h.

◆ operator()()

int Freestyle::Functions1D::DensityF1D::operator() ( Interface1D inter)
inlinevirtual

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