|
Blender V5.0
|
#include <Functions1D.h>
Public Types | |
| typedef T | ReturnedValueType |
Public Member Functions | |
| UnaryFunction1D () | |
| UnaryFunction1D (IntegrationType iType) | |
| virtual | ~UnaryFunction1D () |
| virtual string | getName () const |
| virtual int | operator() (Interface1D &inter) |
| void | setIntegrationType (IntegrationType integration) |
| IntegrationType | getIntegrationType () const |
Public Attributes | |
| T | result |
| void * | py_uf1D |
Protected Attributes | |
| IntegrationType | _integration |
Base class for Unary Functions (functors) working on Interface1D. A unary function will be used by calling its operator() on an Interface1D.
Definition at line 45 of file Functions1D.h.
| typedef T Freestyle::UnaryFunction1D< T >::ReturnedValueType |
The type of the value returned by the functor.
Definition at line 51 of file Functions1D.h.
|
inline |
Default constructor
Definition at line 54 of file Functions1D.h.
References _integration, and Freestyle::MEAN.
|
inline |
Builds a UnaryFunction1D from an integration type.
| iType | In case the result for the Interface1D would be obtained by evaluating a 0D function over the different Interface0D of the Interface1D, iType tells which integration method to use. The default integration method is the MEAN. |
Definition at line 65 of file Functions1D.h.
References _integration.
|
inlinevirtual |
destructor.
Definition at line 71 of file Functions1D.h.
|
inline |
Returns the integration method.
Definition at line 97 of file Functions1D.h.
References _integration.
|
inlinevirtual |
returns the string "UnaryFunction1D".
Reimplemented in Freestyle::Functions1D::Curvature2DAngleF1D, Freestyle::Functions1D::CurveNatureF1D, Freestyle::Functions1D::DensityF1D, Freestyle::Functions1D::GetCompleteViewMapDensityF1D, Freestyle::Functions1D::GetDirectionalViewMapDensityF1D, Freestyle::Functions1D::GetOccludeeF1D, Freestyle::Functions1D::GetOccludersF1D, Freestyle::Functions1D::GetProjectedXF1D, Freestyle::Functions1D::GetProjectedYF1D, Freestyle::Functions1D::GetProjectedZF1D, Freestyle::Functions1D::GetShapeF1D, Freestyle::Functions1D::GetSteerableViewMapDensityF1D, Freestyle::Functions1D::GetViewMapGradientNormF1D, Freestyle::Functions1D::GetXF1D, Freestyle::Functions1D::GetYF1D, Freestyle::Functions1D::GetZF1D, Freestyle::Functions1D::LocalAverageDepthF1D, Freestyle::Functions1D::Normal2DF1D, Freestyle::Functions1D::Orientation2DF1D, Freestyle::Functions1D::Orientation3DF1D, Freestyle::Functions1D::QuantitativeInvisibilityF1D, and Freestyle::Functions1D::ZDiscontinuityF1D.
Definition at line 74 of file Functions1D.h.
|
inlinevirtual |
The operator ().
| inter | The Interface1D on which we wish to evaluate the function. |
Reimplemented in Freestyle::Functions1D::Curvature2DAngleF1D, Freestyle::Functions1D::CurveNatureF1D, Freestyle::Functions1D::DensityF1D, Freestyle::Functions1D::GetCompleteViewMapDensityF1D, Freestyle::Functions1D::GetDirectionalViewMapDensityF1D, Freestyle::Functions1D::GetOccludeeF1D, Freestyle::Functions1D::GetOccludersF1D, Freestyle::Functions1D::GetProjectedXF1D, Freestyle::Functions1D::GetProjectedYF1D, Freestyle::Functions1D::GetProjectedZF1D, Freestyle::Functions1D::GetShapeF1D, Freestyle::Functions1D::GetSteerableViewMapDensityF1D, Freestyle::Functions1D::GetViewMapGradientNormF1D, Freestyle::Functions1D::GetXF1D, Freestyle::Functions1D::GetYF1D, Freestyle::Functions1D::GetZF1D, Freestyle::Functions1D::LocalAverageDepthF1D, Freestyle::Functions1D::Normal2DF1D, Freestyle::Functions1D::Orientation2DF1D, Freestyle::Functions1D::Orientation3DF1D, Freestyle::Functions1D::QuantitativeInvisibilityF1D, and Freestyle::Functions1D::ZDiscontinuityF1D.
Definition at line 85 of file Functions1D.h.
References Director_BPy_UnaryFunction1D___call__(), and py_uf1D.
|
inline |
|
protected |
Definition at line 103 of file Functions1D.h.
Referenced by getIntegrationType(), setIntegrationType(), UnaryFunction1D(), and UnaryFunction1D().
| void* Freestyle::UnaryFunction1D< T >::py_uf1D |
Definition at line 48 of file Functions1D.h.
Referenced by operator()().
| T Freestyle::UnaryFunction1D< T >::result |
Definition at line 47 of file Functions1D.h.
Referenced by Freestyle::Predicates1D::DensityLowerThanUP1D::operator()(), Freestyle::Predicates1D::QuantitativeInvisibilityUP1D::operator()(), and Freestyle::StrokeShaders::GuidingLinesShader::shade().