Blender  V3.3
Public Types | Public Member Functions | Public Attributes | List of all members
Freestyle::UnaryFunction0D< T > Class Template Reference

#include <Functions0D.h>

Public Types

typedef T ReturnedValueType
 

Public Member Functions

 UnaryFunction0D ()
 
virtual ~UnaryFunction0D ()
 
virtual string getName () const
 
virtual int operator() (Interface0DIterator &iter)
 

Public Attributes

T result
 
voidpy_uf0D
 

Detailed Description

template<class T>
class Freestyle::UnaryFunction0D< T >

Base class for Unary Functions (functors) working on Interface0DIterator. A unary function will be used by calling its operator() on an Interface0DIterator.

Attention
In the scripting language, there exists several prototypes depending on the returned value type. For example, you would inherit from a UnaryFunction0DDouble if you wish to define a function that returns a double. The different existing prototypes are:
  • UnaryFunction0DDouble
  • UnaryFunction0DEdgeNature
  • UnaryFunction0DFloat
  • UnaryFunction0DId
  • UnaryFunction0DMaterial
  • UnaryFunction0DUnsigned
  • UnaryFunction0DVec2f
  • UnaryFunction0DVec3f
  • UnaryFunction0DVectorViewShape
  • UnaryFunction0DViewShape
  • UnaryFunction0DVoid

Definition at line 58 of file Functions0D.h.

Member Typedef Documentation

◆ ReturnedValueType

template<class T >
typedef T Freestyle::UnaryFunction0D< T >::ReturnedValueType

The type of the value returned by the functor.

Definition at line 64 of file Functions0D.h.

Constructor & Destructor Documentation

◆ UnaryFunction0D()

template<class T >
Freestyle::UnaryFunction0D< T >::UnaryFunction0D ( )
inline

Default constructor.

Definition at line 67 of file Functions0D.h.

References NULL.

◆ ~UnaryFunction0D()

template<class T >
virtual Freestyle::UnaryFunction0D< T >::~UnaryFunction0D ( )
inlinevirtual

Destructor;

Definition at line 73 of file Functions0D.h.

Member Function Documentation

◆ getName()

template<class T >
virtual string Freestyle::UnaryFunction0D< T >::getName ( ) const
inlinevirtual

◆ operator()()

template<class T >
virtual int Freestyle::UnaryFunction0D< T >::operator() ( Interface0DIterator iter)
inlinevirtual

Member Data Documentation

◆ py_uf0D

template<class T >
void* Freestyle::UnaryFunction0D< T >::py_uf0D

Definition at line 61 of file Functions0D.h.

Referenced by UnaryFunction0DVectorViewShape___init__().

◆ result

template<class T >
T Freestyle::UnaryFunction0D< T >::result

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