h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

UnaryFunction0D Class Template Reference

#include <Functions0D.h>

List of all members.


Detailed Description

template<class T>
class 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:
  • UnaryFunction0DVoid
  • UnaryFunction0DUnsigned
  • UnaryFunction0DReal
  • UnaryFunction0DFloat
  • UnaryFunction0DDouble
  • UnaryFunction0DVec2f
  • UnaryFunction0DVec3f


Public Types

typedef T ReturnedValueType

Public Member Functions

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

Member Typedef Documentation

typedef T ReturnedValueType
 

The type of the value returned by the functor.


Constructor & Destructor Documentation

UnaryFunction0D  )  [inline]
 

Default constructor.

virtual ~UnaryFunction0D  )  [inline, virtual]
 

Destructor;


Member Function Documentation

virtual string getName  )  const [inline, virtual]
 

Returns the string "UnaryFunction0D"

Reimplemented in GetXF0D, GetYF0D, GetZF0D, GetProjectedXF0D, GetProjectedYF0D, GetProjectedZF0D, GetCurvilinearAbscissaF0D, GetParameterF0D, VertexOrientation2DF0D, VertexOrientation3DF0D, Curvature2DAngleF0D, ZDiscontinuityF0D, Normal2DF0D, MaterialF0D, ShapeIdF0D, QuantitativeInvisibilityF0D, CurveNatureF0D, GetShapeF0D, GetOccludersF0D, GetOccludeeF0D, DensityF0D, LocalAverageDepthF0D, ReadMapPixelF0D, ReadSteerableViewMapPixelF0D, ReadCompleteViewMapPixelF0D, and GetViewMapGradientNormF0D.

virtual T operator() Interface0DIterator iter  )  [inline, virtual]
 

The operator ().

Parameters:
iter An Interface0DIterator pointing onto the point at which we wish to evaluate the function.
Returns:
the result of the function of type T.

Reimplemented in GetXF0D, GetYF0D, GetZF0D, GetProjectedXF0D, GetProjectedYF0D, GetProjectedZF0D, GetCurvilinearAbscissaF0D, GetParameterF0D, VertexOrientation2DF0D, VertexOrientation3DF0D, Curvature2DAngleF0D, ZDiscontinuityF0D, Normal2DF0D, MaterialF0D, ShapeIdF0D, QuantitativeInvisibilityF0D, CurveNatureF0D, GetShapeF0D, GetOccludersF0D, GetOccludeeF0D, DensityF0D, LocalAverageDepthF0D, ReadMapPixelF0D, ReadSteerableViewMapPixelF0D, ReadCompleteViewMapPixelF0D, and GetViewMapGradientNormF0D.


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