Blender V4.3
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
 
void * py_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 60 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 66 of file Functions0D.h.

Constructor & Destructor Documentation

◆ UnaryFunction0D()

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

Default constructor.

Definition at line 69 of file Functions0D.h.

References Freestyle::UnaryFunction0D< T >::py_uf0D.

◆ ~UnaryFunction0D()

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

Destructor.

Definition at line 75 of file Functions0D.h.

Member Function Documentation

◆ getName()

◆ operator()()

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

Member Data Documentation

◆ py_uf0D

◆ result


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