Public Types | Public Member Functions | List of all members
icmm::TColorGradient< GradientFunction > Class Template Reference

Simple implementation of gradient based on interpolation beetween the start und end colors. More...

#include <TColorGradient.h>

Inheritance diagram for icmm::TColorGradient< GradientFunction >:
icmm::IColorTransformation imath::TIMathFunction< icmm::CVarColor, icmm::CVarColor > istd::IPolymorphic

Public Types

typedef
IColorTransformation::ResultType 
GradientColor
 
- Public Types inherited from imath::TIMathFunction< icmm::CVarColor, icmm::CVarColor >
typedef icmm::CVarColor ArgumentType
 
typedef icmm::CVarColor ResultType
 

Public Member Functions

 TColorGradient (const GradientColor &startColor, const GradientColor &endColor)
 
virtual bool GetValueAt (const ArgumentType &argument, ResultType &result) const
 Get function value for specified argument value. More...
 
virtual ResultType GetValueAt (const ArgumentType &argument) const
 Get function value for specified argument value. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

template<class GradientFunction>
class icmm::TColorGradient< GradientFunction >

Simple implementation of gradient based on interpolation beetween the start und end colors.

Definition at line 28 of file TColorGradient.h.

Member Typedef Documentation

template<class GradientFunction >
typedef IColorTransformation::ResultType icmm::TColorGradient< GradientFunction >::GradientColor

Definition at line 31 of file TColorGradient.h.

Constructor & Destructor Documentation

template<class GradientFunction >
icmm::TColorGradient< GradientFunction >::TColorGradient ( const GradientColor startColor,
const GradientColor endColor 
)

Definition at line 46 of file TColorGradient.h.

Member Function Documentation

template<class GradientFunction >
bool icmm::TColorGradient< GradientFunction >::GetValueAt ( const ArgumentType argument,
ResultType result 
) const
virtual

Get function value for specified argument value.

Parameters
argumentfunction argument.
resultfunction value for specified argument.
Returns
true if result was correctly calculated.

Implements imath::TIMathFunction< icmm::CVarColor, icmm::CVarColor >.

Definition at line 56 of file TColorGradient.h.

References imath::CVarVector::GetElementsCount().

template<class GradientFunction >
TColorGradient< GradientFunction >::ResultType icmm::TColorGradient< GradientFunction >::GetValueAt ( const ArgumentType argument) const
virtual

Get function value for specified argument value.

This overloaded menthod is provided only for convinence.

Parameters
argumentfunction argument.
Returns
function value for specified argument.

Implements imath::TIMathFunction< icmm::CVarColor, icmm::CVarColor >.

Definition at line 84 of file TColorGradient.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy